Commit 4d7e1c43 authored by Robert Loehning's avatar Robert Loehning
Browse files

Squish: Tuning tst_select_all

Change-Id: I14ba2d2eee033a6e779cd1cca47e25572020dc40
Reviewed-by: default avatarChristian Stenger <>
parent f9cb412d
...@@ -34,12 +34,15 @@ def main(): ...@@ -34,12 +34,15 @@ def main():
for key in ["<Up>", "<Down>", "<Left>", "<Right>"]: for key in ["<Up>", "<Down>", "<Left>", "<Right>"]:
test.log("Selecting everything") test.log("Selecting everything")
invokeMenuItem("Edit", "Select All") invokeMenuItem("Edit", "Select All")
waitFor("editor.textCursor().hasSelection()", 1000) test.verify(waitFor("editor.textCursor().hasSelection()", 500),
"verify selecting"), 0), 0), size), size), size), size)
test.log("Pressing key: %s" % key.replace("<", "").replace(">", "")) test.log("Pressing key: %s" % key.replace("<", "").replace(">", ""))
type(editor, key) type(editor, key)
test.verify(waitFor("not editor.textCursor().hasSelection()", 500),
"verify deselecting")
if key == "<Up>": if key == "<Up>":, editor.textCursor().selectionEnd()), editor.textCursor().selectionEnd())
else: else:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment