From 4d7e1c43db29bbcd1ea81b81e9bc140f2821def0 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Tue, 26 Feb 2013 12:56:47 +0100 Subject: [PATCH] Squish: Tuning tst_select_all Change-Id: I14ba2d2eee033a6e779cd1cca47e25572020dc40 Reviewed-by: Christian Stenger --- tests/system/suite_editors/tst_select_all/test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/system/suite_editors/tst_select_all/test.py b/tests/system/suite_editors/tst_select_all/test.py index ddfeea6d911..b1f29259e07 100644 --- a/tests/system/suite_editors/tst_select_all/test.py +++ b/tests/system/suite_editors/tst_select_all/test.py @@ -34,12 +34,15 @@ def main(): for key in ["", "", "", ""]: test.log("Selecting everything") invokeMenuItem("Edit", "Select All") - waitFor("editor.textCursor().hasSelection()", 1000) + test.verify(waitFor("editor.textCursor().hasSelection()", 500), + "verify selecting") test.compare(editor.textCursor().selectionStart(), 0) test.compare(editor.textCursor().selectionEnd(), size) test.compare(editor.textCursor().position(), size) test.log("Pressing key: %s" % key.replace("<", "").replace(">", "")) type(editor, key) + test.verify(waitFor("not editor.textCursor().hasSelection()", 500), + "verify deselecting") if key == "": test.compare(editor.textCursor().selectionStart(), editor.textCursor().selectionEnd()) else: