summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/sql/tst_sql.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-09-24 04:51:26 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-09-24 04:52:01 (GMT)
commit04ec3b71ff6327a17da2c5044a4086e9eddca5cd (patch)
treed64f349274b7d201d00e8d2b81915b5c61fc27e4 /tests/auto/declarative/sql/tst_sql.cpp
parent9b6a71ec68edf836ab29cc3e5db71b53fe3d9346 (diff)
downloadQt-04ec3b71ff6327a17da2c5044a4086e9eddca5cd.zip
Qt-04ec3b71ff6327a17da2c5044a4086e9eddca5cd.tar.gz
Qt-04ec3b71ff6327a17da2c5044a4086e9eddca5cd.tar.bz2
Track changes from qtwebkit-4.6-snapshot-18092009
Tidy js.
Diffstat (limited to 'tests/auto/declarative/sql/tst_sql.cpp')
-rw-r--r--tests/auto/declarative/sql/tst_sql.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/declarative/sql/tst_sql.cpp b/tests/auto/declarative/sql/tst_sql.cpp
index 3179c99..b0a6021 100644
--- a/tests/auto/declarative/sql/tst_sql.cpp
+++ b/tests/auto/declarative/sql/tst_sql.cpp
@@ -91,6 +91,8 @@ void tst_sql::verifyAgainstWebKit()
QWebPageWithJavaScriptConsoleMessages webpage;
QDir().mkpath(tmpdir);
webpage.settings()->setOfflineStoragePath(tmpdir);
+ webpage.settings()->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, true);
+
webpage.mainFrame()->evaluateJavaScript(js);
QTest::qWait(200); // WebKit db access is asynchronous
QTRY_COMPARE(webpage.mainFrame()->evaluateJavaScript("test()").toString(),result);