summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-03-08 04:19:57 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-03-08 04:19:57 (GMT)
commitb513c31f34b9e5484889697314dc2ecb619b88a3 (patch)
tree46dc6d3d67ec3a526a24df1b02edbedc7046d176 /tests/auto/declarative
parenta7b6bb3537f359a406e3e8d0d0340137a73fc677 (diff)
parentbaed547d0bccabf3ec92cafb54b6642d81c854f0 (diff)
downloadQt-b513c31f34b9e5484889697314dc2ecb619b88a3.zip
Qt-b513c31f34b9e5484889697314dc2ecb619b88a3.tar.gz
Qt-b513c31f34b9e5484889697314dc2ecb619b88a3.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'tests/auto/declarative')
-rw-r--r--tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp18
2 files changed, 2 insertions, 19 deletions
diff --git a/tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro b/tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro
index 0543ff6..e2b31c7 100644
--- a/tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro
+++ b/tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro
@@ -1,6 +1,5 @@
load(qttest_p4)
-contains(QT_CONFIG,declarative): QT += declarative
-QT += script
+contains(QT_CONFIG,declarative): QT += declarative script
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeworkerscript.cpp
diff --git a/tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp b/tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp
index 9adbc28..fe2dac2 100644
--- a/tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp
+++ b/tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp
@@ -60,7 +60,6 @@ public:
tst_QDeclarativeWorkerScript() {}
private slots:
void source();
- void source_data();
void messaging();
void messaging_data();
void messaging_sendQObjectList();
@@ -83,13 +82,7 @@ private:
void tst_QDeclarativeWorkerScript::source()
{
- QFETCH(QUrl, source);
- QFETCH(bool, valid);
-
- if (!valid) {
- QByteArray w = "WorkerScript: Cannot find source file \"" + source.toString().toUtf8() + "\"";
- QTest::ignoreMessage(QtWarningMsg, w.constData());
- }
+ QUrl source = QUrl::fromLocalFile(SRCDIR "/data/worker.qml");
QDeclarativeComponent component(&m_engine);
component.setData("import Qt 4.6\nWorkerScript { source: '" + source.toString().toUtf8() + "'; }", QUrl());
@@ -103,15 +96,6 @@ void tst_QDeclarativeWorkerScript::source()
delete item;
}
-void tst_QDeclarativeWorkerScript::source_data()
-{
- QTest::addColumn<QUrl>("source");
- QTest::addColumn<bool>("valid");
-
- QTest::newRow("valid") << QUrl::fromLocalFile(SRCDIR "/data/worker.qml") << true;
- QTest::newRow("invalid") << QUrl::fromLocalFile("asdjfk.js") << false;
-}
-
void tst_QDeclarativeWorkerScript::messaging()
{
QFETCH(QVariant, value);