summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/sql/tst_sql.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-09-24 08:18:47 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-09-24 08:18:47 (GMT)
commitdf68368889bcd71d935b916681c70ce178280fef (patch)
tree2a66914d79db9948ae70686b803d657ae2f4fc4a /tests/auto/declarative/sql/tst_sql.cpp
parent686583c37af269137898ab01af4c2b585f91baea (diff)
downloadQt-df68368889bcd71d935b916681c70ce178280fef.zip
Qt-df68368889bcd71d935b916681c70ce178280fef.tar.gz
Qt-df68368889bcd71d935b916681c70ce178280fef.tar.bz2
More tests for QmlSql, more WebKit-tested-validity.
Diffstat (limited to 'tests/auto/declarative/sql/tst_sql.cpp')
-rw-r--r--tests/auto/declarative/sql/tst_sql.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/auto/declarative/sql/tst_sql.cpp b/tests/auto/declarative/sql/tst_sql.cpp
index cb13427..10ce6d8 100644
--- a/tests/auto/declarative/sql/tst_sql.cpp
+++ b/tests/auto/declarative/sql/tst_sql.cpp
@@ -82,9 +82,14 @@ void tst_sql::testQml_data()
QTest::addColumn<QString>("jsfile"); // The input file
QTest::addColumn<QString>("result"); // The required output from the js test() function
QTest::addColumn<int>("databases"); // The number of databases that should have been created
-
- QTest::newRow("basic creation") << "data/test1.js" << "passed" << 1;
- QTest::newRow("basic select") << "data/test2.js" << "passed" << 1;
+ QTest::addColumn<bool>("qmlextension"); // Things WebKit can't do
+
+ QTest::newRow("creation") << "data/1-creation.js" << "passed" << 1 << false;
+ QTest::newRow("selection") << "data/2-selection.js" << "passed" << 1 << false;
+ QTest::newRow("iteration-item-function") << "data/3-iteration-item-function.js" << "passed" << 1 << false;
+ QTest::newRow("iteration-index") << "data/4-iteration-index.js" << "passed" << 1 << true;
+ QTest::newRow("iteration-iterator") << "data/5-iteration-iterator.js" << "passed" << 1 << true;
+ QTest::newRow("iteration-efficient") << "data/6-iteration-efficient.js" << "passed" << 1 << true;
}
void tst_sql::validateAgainstWebkit_data()
@@ -102,6 +107,10 @@ void tst_sql::validateAgainstWebkit()
QFETCH(QString, jsfile);
QFETCH(QString, result);
QFETCH(int, databases);
+ QFETCH(bool, qmlextension);
+
+ if (qmlextension) // WebKit can't do it (yet?)
+ return;
QFile f(jsfile);
QVERIFY(f.open(QIODevice::ReadOnly));