Add a test for hinting with ACE editor

This commit is contained in:
Florian Bruhin 2016-09-07 12:28:12 +02:00
parent 3e1583bb1c
commit 522049132b
4 changed files with 19105 additions and 0 deletions

View File

@ -96,6 +96,15 @@ def update_dmg_makefile():
urllib.request.urlcleanup()
def update_ace():
print("Updating ACE...")
url = 'https://raw.githubusercontent.com/ajaxorg/ace-builds/master/src/ace.js'
target_path = os.path.join('tests', 'end2end', 'data', 'hints', 'ace',
'ace.js')
urllib.request.urlretrieve(url, target_path)
urllib.request.urlcleanup()
def main():
parser = argparse.ArgumentParser()
parser.add_argument(
@ -108,6 +117,7 @@ def main():
args = parser.parse_args()
update_pdfjs(args.pdfjs)
update_ace()
if args.fancy_dmg:
update_dmg_makefile()

View File

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ACE editor</title>
<style type="text/css" media="screen">
body {
overflow: hidden;
}
#editor {
margin: 0;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
</style>
</head>
<body>
<pre id="editor"></pre>
<script src="ace.js" type="text/javascript" charset="utf-8"></script>
<script>
var editor = ace.edit("editor");
</script>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -139,6 +139,15 @@ Feature: Using hints
# The actual check is already done above
Then no crash should happen
@qtwebengine_todo: webelem.classes is not implemented yet
Scenario: Hinting with ACE editor
When I open data/hints/ace/ace.html
And I hint with args "inputs" and follow a
And I wait for "Entering mode KeyMode.insert (reason: click)" in the log
And I run :leave-mode
# The actual check is already done above
Then no crash should happen
### iframes
@qtwebengine_todo: Hinting in iframes is not implemented yet