diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-03-18 04:00:25 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-03-18 04:00:25 (GMT) |
commit | a096555227b39c3107ab5eea497176746083cd4b (patch) | |
tree | d3fc7229f1349f7544b8bd1f334195fd2e6a47da /tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp | |
parent | 37a3b34867c8dec305a9b4aab69a08fb8f9d0590 (diff) | |
download | Qt-a096555227b39c3107ab5eea497176746083cd4b.zip Qt-a096555227b39c3107ab5eea497176746083cd4b.tar.gz Qt-a096555227b39c3107ab5eea497176746083cd4b.tar.bz2 |
Adjust test now that redundant contexts are not create due
to commit 26cd94ef47ffc969dc835e98b58eded14e669964.
Diffstat (limited to 'tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp')
-rw-r--r-- | tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp b/tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp index 91115e4..ce389f3 100644 --- a/tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp +++ b/tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp @@ -312,8 +312,8 @@ void tst_qdeclarativewebview::multipleWindows() QDeclarativeGrid *grid = qobject_cast<QDeclarativeGrid*>(component.create()); QVERIFY(grid != 0); - QTRY_COMPARE(grid->children().count(), 2+5); // Component, Loader, 5 WebViews - QDeclarativeItem* popup = qobject_cast<QDeclarativeItem*>(grid->children().at(3)); // first popup after Component, Loaded, original. + QTRY_COMPARE(grid->children().count(), 2+4); // Component, Loader (with 1 WebView), 4 new-window WebViews + QDeclarativeItem* popup = qobject_cast<QDeclarativeItem*>(grid->children().at(2)); // first popup after Component and Loader. QVERIFY(popup != 0); QTRY_COMPARE(popup->x(), 150.0); } |