summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-01-18 03:47:17 (GMT)
committerMartin Jones <martin.jones@nokia.com>2011-01-18 03:47:17 (GMT)
commitf503dc25886e556983fc1bf3efb2e15669f3507c (patch)
treee96ccdac6ff37f4c958478ff215fa8dbc2da5668 /tests
parentdd4243b62379d9a1d6e8a7f13b1f7c4fa3de2984 (diff)
downloadQt-f503dc25886e556983fc1bf3efb2e15669f3507c.zip
Qt-f503dc25886e556983fc1bf3efb2e15669f3507c.tar.gz
Qt-f503dc25886e556983fc1bf3efb2e15669f3507c.tar.bz2
Cleanup view at end of auto test.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp b/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
index d7e6a60..88bff8a 100644
--- a/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
+++ b/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
@@ -619,6 +619,7 @@ void tst_qdeclarativetextinput::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_qdeclarativetextinput::horizontalAlignment_data()
@@ -1129,6 +1130,8 @@ void tst_qdeclarativetextinput::echoMode()
input->setFocus(false);
QVERIFY(input->hasActiveFocus() == false);
QCOMPARE(input->displayText(), QLatin1String("Q"));
+
+ delete canvas;
}
void tst_qdeclarativetextinput::simulateKey(QDeclarativeView *view, int key)