summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-10-07 05:06:42 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-10-07 05:06:42 (GMT)
commit2fadeec39eec188136d027cfbc4c0872669db92f (patch)
tree7a0b76a7c3f5892c55596549a0519d8797c0ab17 /tests
parentb8d72b6bf833ffd7e02afa1199a5d3beea8fe9a7 (diff)
parent19d080d319dccac15654294af80530bed9ef11ea (diff)
downloadQt-2fadeec39eec188136d027cfbc4c0872669db92f.zip
Qt-2fadeec39eec188136d027cfbc4c0872669db92f.tar.gz
Qt-2fadeec39eec188136d027cfbc4c0872669db92f.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qfxwebview/data/basic.html2
-rw-r--r--tests/auto/declarative/qfxwebview/data/basic.pngbin0 -> 3961 bytes
-rw-r--r--tests/auto/declarative/qfxwebview/tst_qfxwebview.cpp7
-rw-r--r--tests/auto/declarative/visual/bindinganimation/data/bindinganimation.qml4
-rw-r--r--tests/auto/declarative/visual/colorAnimation/data/colorAnimation.qml6
-rw-r--r--tests/auto/declarative/visual/easing/data/easing.qml6
-rw-r--r--tests/auto/declarative/visual/flickable/data/flickable.qml6
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test.qml12
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test2.qml4
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test3.qml20
-rw-r--r--tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.qml12
-rw-r--r--tests/auto/declarative/visual/qfxtext/elide/data/elide.qml2
-rw-r--r--tests/auto/declarative/visual/repeater/data/basic1.qml2
-rw-r--r--tests/auto/declarative/visual/repeater/data/basic2.qml2
-rw-r--r--tests/auto/declarative/visual/repeater/data/basic3.qml2
-rw-r--r--tests/auto/declarative/visual/repeater/data/basic4.qml2
-rw-r--r--tests/auto/declarative/visual/tst_visual.cpp2
17 files changed, 48 insertions, 43 deletions
diff --git a/tests/auto/declarative/qfxwebview/data/basic.html b/tests/auto/declarative/qfxwebview/data/basic.html
index 254317c..c262f12 100644
--- a/tests/auto/declarative/qfxwebview/data/basic.html
+++ b/tests/auto/declarative/qfxwebview/data/basic.html
@@ -1,6 +1,6 @@
<html>
<head><title>Basic</title>
-<link rel="shortcut icon" type="image/x-icon" href="basic.ico">
+<link rel="icon" sizes="48x48" href="basic.png">
</head>
<body leftmargin="0" marginwidth="0">
<table width="123">
diff --git a/tests/auto/declarative/qfxwebview/data/basic.png b/tests/auto/declarative/qfxwebview/data/basic.png
new file mode 100644
index 0000000..35717cc
--- /dev/null
+++ b/tests/auto/declarative/qfxwebview/data/basic.png
Binary files differ
diff --git a/tests/auto/declarative/qfxwebview/tst_qfxwebview.cpp b/tests/auto/declarative/qfxwebview/tst_qfxwebview.cpp
index 834c07f..dc124ce 100644
--- a/tests/auto/declarative/qfxwebview/tst_qfxwebview.cpp
+++ b/tests/auto/declarative/qfxwebview/tst_qfxwebview.cpp
@@ -72,8 +72,8 @@ void tst_qfxwebview::testBasicProperties()
QVERIFY(wv != 0);
QTRY_COMPARE(wv->progress(), 1.0);
QCOMPARE(wv->title(),QString("Basic"));
- wv->icon().save("test.png");
- //QCOMPARE(wv->icon(),QPixmap(SRCDIR "/data/basic.ico"));
+ QTRY_COMPARE(wv->icon().width(), 48);
+ QCOMPARE(wv->icon(),QPixmap(SRCDIR "/data/basic.png"));
QCOMPARE(wv->statusText(),QString(""));
QFile htmlfile(SRCDIR "/data/basic.html");
QVERIFY(htmlfile.open(QIODevice::ReadOnly));
@@ -83,6 +83,9 @@ void tst_qfxwebview::testBasicProperties()
expectedhtml.replace(QRegExp("\\s+"),"");
QCOMPARE(actualhtml____,expectedhtml); // same, ignoring whitespace
QCOMPARE(wv->width(), 123.0);
+ QCOMPARE(wv->webPageWidth(), 0);
+ QCOMPARE(wv->preferredWidth(), 0);
+ QCOMPARE(wv->zoomFactor(), 1.0);
QCOMPARE(wv->url(), QUrl::fromLocalFile(SRCDIR "/data/basic.html"));
QCOMPARE(wv->status(), QFxWebView::Ready);
QVERIFY(wv->reloadAction());
diff --git a/tests/auto/declarative/visual/bindinganimation/data/bindinganimation.qml b/tests/auto/declarative/visual/bindinganimation/data/bindinganimation.qml
index 1d2f6da..2501797 100644
--- a/tests/auto/declarative/visual/bindinganimation/data/bindinganimation.qml
+++ b/tests/auto/declarative/visual/bindinganimation/data/bindinganimation.qml
@@ -242,7 +242,7 @@ VisualTest {
}
Frame {
msec: 960
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/bindinganimation/data/bindinganimation.0.png"
+ image: "bindinganimation.0.png"
}
Frame {
msec: 976
@@ -498,7 +498,7 @@ VisualTest {
}
Frame {
msec: 1920
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/bindinganimation/data/bindinganimation.1.png"
+ image: "bindinganimation.1.png"
}
Frame {
msec: 1936
diff --git a/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.qml b/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.qml
index 8f7f068..6654021 100644
--- a/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.qml
+++ b/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.qml
@@ -258,7 +258,7 @@ VisualTest {
}
Frame {
msec: 960
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.0.png"
+ image: "colorAnimation.0.png"
}
Frame {
msec: 976
@@ -498,7 +498,7 @@ VisualTest {
}
Frame {
msec: 1920
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.1.png"
+ image: "colorAnimation.1.png"
}
Frame {
msec: 1936
@@ -738,7 +738,7 @@ VisualTest {
}
Frame {
msec: 2880
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.2.png"
+ image: "colorAnimation.2.png"
}
Frame {
msec: 2896
diff --git a/tests/auto/declarative/visual/easing/data/easing.qml b/tests/auto/declarative/visual/easing/data/easing.qml
index d991596..c41d676 100644
--- a/tests/auto/declarative/visual/easing/data/easing.qml
+++ b/tests/auto/declarative/visual/easing/data/easing.qml
@@ -258,7 +258,7 @@ VisualTest {
}
Frame {
msec: 960
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/easing/data/easing.0.png"
+ image: "easing.0.png"
}
Frame {
msec: 976
@@ -514,7 +514,7 @@ VisualTest {
}
Frame {
msec: 1920
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/easing/data/easing.1.png"
+ image: "easing.1.png"
}
Frame {
msec: 1936
@@ -770,7 +770,7 @@ VisualTest {
}
Frame {
msec: 2880
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/easing/data/easing.2.png"
+ image: "easing.2.png"
}
Frame {
msec: 2896
diff --git a/tests/auto/declarative/visual/flickable/data/flickable.qml b/tests/auto/declarative/visual/flickable/data/flickable.qml
index 45bb989..730c128 100644
--- a/tests/auto/declarative/visual/flickable/data/flickable.qml
+++ b/tests/auto/declarative/visual/flickable/data/flickable.qml
@@ -298,7 +298,7 @@ VisualTest {
}
Frame {
msec: 960
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/flickable/data/flickable.0.png"
+ image: "flickable.0.png"
}
Frame {
msec: 976
@@ -538,7 +538,7 @@ VisualTest {
}
Frame {
msec: 1920
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/flickable/data/flickable.1.png"
+ image: "flickable.1.png"
}
Frame {
msec: 1936
@@ -786,6 +786,6 @@ VisualTest {
}
Frame {
msec: 2880
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/flickable/data/flickable.2.png"
+ image: "flickable.2.png"
}
}
diff --git a/tests/auto/declarative/visual/focusscope/data/test.qml b/tests/auto/declarative/visual/focusscope/data/test.qml
index 95e23fc..d86c034 100644
--- a/tests/auto/declarative/visual/focusscope/data/test.qml
+++ b/tests/auto/declarative/visual/focusscope/data/test.qml
@@ -242,7 +242,7 @@ VisualTest {
}
Frame {
msec: 960
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test.0.png"
+ image: "test.0.png"
}
Frame {
msec: 976
@@ -506,7 +506,7 @@ VisualTest {
}
Frame {
msec: 1920
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test.1.png"
+ image: "test.1.png"
}
Frame {
msec: 1936
@@ -770,7 +770,7 @@ VisualTest {
}
Frame {
msec: 2880
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test.2.png"
+ image: "test.2.png"
}
Frame {
msec: 2896
@@ -1042,7 +1042,7 @@ VisualTest {
}
Frame {
msec: 3840
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test.3.png"
+ image: "test.3.png"
}
Frame {
msec: 3856
@@ -1306,7 +1306,7 @@ VisualTest {
}
Frame {
msec: 4800
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test.4.png"
+ image: "test.4.png"
}
Frame {
msec: 4816
@@ -1554,7 +1554,7 @@ VisualTest {
}
Frame {
msec: 5760
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test.5.png"
+ image: "test.5.png"
}
Frame {
msec: 5776
diff --git a/tests/auto/declarative/visual/focusscope/data/test2.qml b/tests/auto/declarative/visual/focusscope/data/test2.qml
index 4ad4b89..fedc96a 100644
--- a/tests/auto/declarative/visual/focusscope/data/test2.qml
+++ b/tests/auto/declarative/visual/focusscope/data/test2.qml
@@ -242,7 +242,7 @@ VisualTest {
}
Frame {
msec: 960
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test2.0.png"
+ image: "test2.0.png"
}
Frame {
msec: 976
@@ -482,7 +482,7 @@ VisualTest {
}
Frame {
msec: 1920
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test2.1.png"
+ image: "test2.1.png"
}
Frame {
msec: 1936
diff --git a/tests/auto/declarative/visual/focusscope/data/test3.qml b/tests/auto/declarative/visual/focusscope/data/test3.qml
index 86025a6..8ce7944 100644
--- a/tests/auto/declarative/visual/focusscope/data/test3.qml
+++ b/tests/auto/declarative/visual/focusscope/data/test3.qml
@@ -258,7 +258,7 @@ VisualTest {
}
Frame {
msec: 960
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test3.0.png"
+ image: "test3.0.png"
}
Frame {
msec: 976
@@ -530,7 +530,7 @@ VisualTest {
}
Frame {
msec: 1920
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test3.1.png"
+ image: "test3.1.png"
}
Frame {
msec: 1936
@@ -802,7 +802,7 @@ VisualTest {
}
Frame {
msec: 2880
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test3.2.png"
+ image: "test3.2.png"
}
Frame {
msec: 2896
@@ -1074,7 +1074,7 @@ VisualTest {
}
Frame {
msec: 3840
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test3.3.png"
+ image: "test3.3.png"
}
Frame {
msec: 3856
@@ -1330,7 +1330,7 @@ VisualTest {
}
Frame {
msec: 4800
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test3.4.png"
+ image: "test3.4.png"
}
Frame {
msec: 4816
@@ -1594,7 +1594,7 @@ VisualTest {
}
Frame {
msec: 5760
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test3.5.png"
+ image: "test3.5.png"
}
Frame {
msec: 5776
@@ -1858,7 +1858,7 @@ VisualTest {
}
Frame {
msec: 6720
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test3.6.png"
+ image: "test3.6.png"
}
Frame {
msec: 6736
@@ -2130,7 +2130,7 @@ VisualTest {
}
Frame {
msec: 7680
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test3.7.png"
+ image: "test3.7.png"
}
Frame {
msec: 7696
@@ -2402,7 +2402,7 @@ VisualTest {
}
Frame {
msec: 8640
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test3.8.png"
+ image: "test3.8.png"
}
Frame {
msec: 8656
@@ -2658,7 +2658,7 @@ VisualTest {
}
Frame {
msec: 9600
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/focusscope/data/test3.9.png"
+ image: "test3.9.png"
}
Frame {
msec: 9616
diff --git a/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.qml b/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.qml
index 5d42d03..73c6542 100644
--- a/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.qml
+++ b/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.qml
@@ -242,7 +242,7 @@ VisualTest {
}
Frame {
msec: 960
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.0.png"
+ image: "pauseAnimation.0.png"
}
Frame {
msec: 976
@@ -482,7 +482,7 @@ VisualTest {
}
Frame {
msec: 1920
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.1.png"
+ image: "pauseAnimation.1.png"
}
Frame {
msec: 1936
@@ -722,7 +722,7 @@ VisualTest {
}
Frame {
msec: 2880
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.2.png"
+ image: "pauseAnimation.2.png"
}
Frame {
msec: 2896
@@ -962,7 +962,7 @@ VisualTest {
}
Frame {
msec: 3840
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.3.png"
+ image: "pauseAnimation.3.png"
}
Frame {
msec: 3856
@@ -1202,7 +1202,7 @@ VisualTest {
}
Frame {
msec: 4800
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.4.png"
+ image: "pauseAnimation.4.png"
}
Frame {
msec: 4816
@@ -1442,7 +1442,7 @@ VisualTest {
}
Frame {
msec: 5760
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.5.png"
+ image: "pauseAnimation.5.png"
}
Frame {
msec: 5776
diff --git a/tests/auto/declarative/visual/qfxtext/elide/data/elide.qml b/tests/auto/declarative/visual/qfxtext/elide/data/elide.qml
index e62c1b7..59f17f7 100644
--- a/tests/auto/declarative/visual/qfxtext/elide/data/elide.qml
+++ b/tests/auto/declarative/visual/qfxtext/elide/data/elide.qml
@@ -242,7 +242,7 @@ VisualTest {
}
Frame {
msec: 960
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/qfxtext/elide/data/elide.0.png"
+ image: "elide.0.png"
}
Frame {
msec: 976
diff --git a/tests/auto/declarative/visual/repeater/data/basic1.qml b/tests/auto/declarative/visual/repeater/data/basic1.qml
index ad7e911..9535a2c 100644
--- a/tests/auto/declarative/visual/repeater/data/basic1.qml
+++ b/tests/auto/declarative/visual/repeater/data/basic1.qml
@@ -242,7 +242,7 @@ VisualTest {
}
Frame {
msec: 960
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/repeater/data/basic1.0.png"
+ image: "basic1.0.png"
}
Frame {
msec: 976
diff --git a/tests/auto/declarative/visual/repeater/data/basic2.qml b/tests/auto/declarative/visual/repeater/data/basic2.qml
index 082f349..81bc1f7 100644
--- a/tests/auto/declarative/visual/repeater/data/basic2.qml
+++ b/tests/auto/declarative/visual/repeater/data/basic2.qml
@@ -242,7 +242,7 @@ VisualTest {
}
Frame {
msec: 960
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/repeater/data/basic2.0.png"
+ image: "basic2.0.png"
}
Frame {
msec: 976
diff --git a/tests/auto/declarative/visual/repeater/data/basic3.qml b/tests/auto/declarative/visual/repeater/data/basic3.qml
index e76bf6f..417eaab 100644
--- a/tests/auto/declarative/visual/repeater/data/basic3.qml
+++ b/tests/auto/declarative/visual/repeater/data/basic3.qml
@@ -242,7 +242,7 @@ VisualTest {
}
Frame {
msec: 960
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/repeater/data/basic3.0.png"
+ image: "basic3.0.png"
}
Frame {
msec: 976
diff --git a/tests/auto/declarative/visual/repeater/data/basic4.qml b/tests/auto/declarative/visual/repeater/data/basic4.qml
index cdff83f..264d825 100644
--- a/tests/auto/declarative/visual/repeater/data/basic4.qml
+++ b/tests/auto/declarative/visual/repeater/data/basic4.qml
@@ -242,7 +242,7 @@ VisualTest {
}
Frame {
msec: 960
- image: "/Users/akennedy/Qt/kinetic/tests/auto/declarative/visual/repeater/data/basic4.0.png"
+ image: "basic4.0.png"
}
Frame {
msec: 976
diff --git a/tests/auto/declarative/visual/tst_visual.cpp b/tests/auto/declarative/visual/tst_visual.cpp
index 458b96e..d95fa5b 100644
--- a/tests/auto/declarative/visual/tst_visual.cpp
+++ b/tests/auto/declarative/visual/tst_visual.cpp
@@ -78,6 +78,8 @@ void tst_visual::visual()
QProcess p;
p.start(qmlviewer, arguments);
QVERIFY(p.waitForFinished());
+ if (p.exitCode() != 0)
+ qDebug() << p.readAllStandardError();
QCOMPARE(p.exitStatus(), QProcess::NormalExit);
QCOMPARE(p.exitCode(), 0);
}