diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-07-01 08:39:34 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-07-01 08:39:34 (GMT) |
commit | fa0ef7a2c36afffb45a7954eb8a230953578f55e (patch) | |
tree | 1e8a254815f545c803133cb3312f34d7d2aab461 /tests/auto | |
parent | a12cd98dda74b9ffa8729a58959bc7ab41118cf0 (diff) | |
download | Qt-fa0ef7a2c36afffb45a7954eb8a230953578f55e.zip Qt-fa0ef7a2c36afffb45a7954eb8a230953578f55e.tar.gz Qt-fa0ef7a2c36afffb45a7954eb8a230953578f55e.tar.bz2 |
Remove arbitrary width checks
Width is not an arbitrary value, it is the size of the rendered page
(which is whatever webkit says it is).
Width should be tested to be correct, but this change should be done by
the maintainers (who should also take the autotest out of declarative).
Task-number: QTBUG-11855
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp b/tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp index f33e5a4..2a220c4 100644 --- a/tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp +++ b/tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp @@ -156,7 +156,6 @@ void tst_qdeclarativewebview::basicProperties() QCOMPARE(qvariant_cast<QPixmap>(wv->property("icon")),QPixmap(SRCDIR "/data/basic.png")); QCOMPARE(wv->property("statusText").toString(),QString("status here")); QCOMPARE(strippedHtml(fileContents(SRCDIR "/data/basic.html")), strippedHtml(wv->property("html").toString())); - QCOMPARE(wv->property("width").toDouble(), 123.0); QCOMPARE(wv->property("preferredWidth").toInt(), 0); QCOMPARE(wv->property("preferredHeight").toInt(), 0); QCOMPARE(wv->property("zoomFactor").toDouble(), 1.0); @@ -258,7 +257,6 @@ void tst_qdeclarativewebview::historyNav() QCOMPARE(qvariant_cast<QPixmap>(wv->property("icon")),QPixmap(SRCDIR "/data/basic.png")); QCOMPARE(wv->property("statusText").toString(),QString("status here")); QCOMPARE(strippedHtml(fileContents(SRCDIR "/data/basic.html")), strippedHtml(wv->property("html").toString())); - QCOMPARE(wv->property("width").toDouble(), 123.0); QCOMPARE(wv->property("preferredWidth").toDouble(), 0.0); QCOMPARE(wv->property("zoomFactor").toDouble(), 1.0); QCOMPARE(wv->property("url").toUrl(), QUrl::fromLocalFile(SRCDIR "/data/basic.html")); |