summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-08-26 17:03:21 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-08-26 17:03:38 (GMT)
commit52f5e632da1bd5ef413b3108564b9b47850ce441 (patch)
tree920a7573ea3272ee7e87e837300a2bdffc643ba5 /tests
parentea3955ca80ab6e067c58aa9def4055a53020cd90 (diff)
downloadQt-52f5e632da1bd5ef413b3108564b9b47850ce441.zip
Qt-52f5e632da1bd5ef413b3108564b9b47850ce441.tar.gz
Qt-52f5e632da1bd5ef413b3108564b9b47850ce441.tar.bz2
ignore warning in autotest
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qscriptclass/tst_qscriptclass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qscriptclass/tst_qscriptclass.cpp b/tests/auto/qscriptclass/tst_qscriptclass.cpp
index 11c7f56..33c2c35 100644
--- a/tests/auto/qscriptclass/tst_qscriptclass.cpp
+++ b/tests/auto/qscriptclass/tst_qscriptclass.cpp
@@ -606,6 +606,7 @@ void tst_QScriptClass::newInstance()
QScriptValue arr = eng.newArray();
QVERIFY(arr.isArray());
QCOMPARE(arr.scriptClass(), (QScriptClass*)0);
+ QTest::ignoreMessage(QtWarningMsg, "QScriptValue::setScriptClass() failed: cannot change class of non-QScriptObject");
arr.setScriptClass(&cls);
QEXPECT_FAIL("", "Changing class of arbitrary script object is not allowed (it's OK)", Continue);
QCOMPARE(arr.scriptClass(), (QScriptClass*)&cls);