Add a test for hinting with ACE editor
This commit is contained in:
parent
3e1583bb1c
commit
522049132b
@ -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()
|
||||
|
||||
|
30
tests/end2end/data/hints/ace/ace.html
Normal file
30
tests/end2end/data/hints/ace/ace.html
Normal 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>
|
19056
tests/end2end/data/hints/ace/ace.js
Normal file
19056
tests/end2end/data/hints/ace/ace.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user