summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2011-02-18 17:19:05 +1000
committerAndrew den Exter <andrew.den-exter@nokia.com>2011-02-18 17:22:30 +1000
commit9e063f7e4790cc15b279a44807ff59c620d53ce6 (patch)
tree65bebd9ef6a8af92ecdeae74a1bb7283209891ab
parentb1d036fd9fc45060bf2886114051eef8db735311 (diff)
Fix TextEdit auto test failure on windows.
A leaked window from a previous test held focus meaning events weren't being delivered to the expected widget. Delete the offending widget.
-rw-r--r--tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
index 87c2c60b65..a052752fc0 100644
--- a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
+++ b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
@@ -1179,6 +1179,8 @@ void tst_qdeclarativetextedit::dragMouseSelection()
QVERIFY(str2.length() > 3);
QVERIFY(str1 != str2); // Verify the second press and drag is a new selection and doesn't not the first moved.
+
+ delete canvas;
}
void tst_qdeclarativetextedit::mouseSelectionMode_data()