Ignore expected warning
authorAaron Kennedy <aaron.kennedy@nokia.com>
Thu, 1 Dec 2011 17:14:19 +0000 (17:14 +0000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 1 Dec 2011 17:55:39 +0000 (18:55 +0100)
Change-Id: I6e90537461fa4939c724b3031f3b3b5f04343d8e
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
tests/auto/declarative/qquicktextinput/tst_qquicktextinput.cpp

index b217f90..a6a9add 100644 (file)
@@ -3276,7 +3276,12 @@ void tst_qquicktextinput::QTBUG_19956()
 
 void tst_qquicktextinput::QTBUG_19956_regexp()
 {
-    QQuickView canvas(QUrl::fromLocalFile(TESTDATA("qtbug-19956regexp.qml")));
+    QUrl url = QUrl::fromLocalFile(TESTDATA("qtbug-19956regexp.qml"));
+
+    QString warning = url.toString() + ":11: Unable to assign [undefined] to QRegExp";
+    QTest::ignoreMessage(QtWarningMsg, qPrintable(warning));
+
+    QQuickView canvas(url);
     canvas.show();
     canvas.requestActivateWindow();
     QTest::qWaitForWindowShown(&canvas);