summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativewebview
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-07-01 08:39:34 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-07-01 08:39:34 (GMT)
commitfa0ef7a2c36afffb45a7954eb8a230953578f55e (patch)
tree1e8a254815f545c803133cb3312f34d7d2aab461 /tests/auto/declarative/qdeclarativewebview
parenta12cd98dda74b9ffa8729a58959bc7ab41118cf0 (diff)
downloadQt-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/declarative/qdeclarativewebview')
-rw-r--r--tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp2
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"));