summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/qfxwebview
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qmlvisual/qfxwebview')
-rw-r--r--tests/auto/declarative/qmlvisual/qfxwebview/autosize/autosize.qml61
-rw-r--r--tests/auto/declarative/qmlvisual/qfxwebview/autosize/data-X11/autosize.0.pngbin0 -> 6886 bytes
-rw-r--r--tests/auto/declarative/qmlvisual/qfxwebview/autosize/data-X11/autosize.qml83
-rw-r--r--tests/auto/declarative/qmlvisual/qfxwebview/autosize/data/autosize.0.pngbin0 -> 6886 bytes
-rw-r--r--tests/auto/declarative/qmlvisual/qfxwebview/autosize/data/autosize.qml83
5 files changed, 227 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlvisual/qfxwebview/autosize/autosize.qml b/tests/auto/declarative/qmlvisual/qfxwebview/autosize/autosize.qml
new file mode 100644
index 0000000..3c00ee6
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/qfxwebview/autosize/autosize.qml
@@ -0,0 +1,61 @@
+import Qt 4.6
+import org.webkit 1.0
+
+// The WebView size is determined by the width, height,
+// preferredWidth, and preferredHeight properties.
+Rectangle {
+ id: rect
+ color: "white"
+ width: 200
+ height: layout.height
+ Column {
+ id: layout
+ spacing: 2
+ WebView {
+ html: "No width defined."
+ Rectangle { color: "#10000000"
+ anchors.fill: parent
+ }
+ }
+ WebView {
+ width: rect.width
+ html: "The width is full."
+ Rectangle {
+ color: "#10000000"
+ anchors.fill: parent
+ }
+ }
+ WebView {
+ width: rect.width/2
+ html: "The width is half."
+ Rectangle {
+ color: "#10000000"
+ anchors.fill: parent
+ }
+ }
+ WebView {
+ preferredWidth: rect.width/2
+ html: "The preferredWidth is half."
+ Rectangle {
+ color: "#10000000"
+ anchors.fill: parent
+ }
+ }
+ WebView {
+ preferredWidth: rect.width/2
+ html: "The_preferredWidth_is_half."
+ Rectangle {
+ color: "#10000000"
+ anchors.fill: parent
+ }
+ }
+ WebView {
+ width: rect.width/2
+ html: "The_width_is_half."
+ Rectangle {
+ color: "#10000000"
+ anchors.fill: parent
+ }
+ }
+ }
+}
diff --git a/tests/auto/declarative/qmlvisual/qfxwebview/autosize/data-X11/autosize.0.png b/tests/auto/declarative/qmlvisual/qfxwebview/autosize/data-X11/autosize.0.png
new file mode 100644
index 0000000..1f28b9a
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/qfxwebview/autosize/data-X11/autosize.0.png
Binary files differ
diff --git a/tests/auto/declarative/qmlvisual/qfxwebview/autosize/data-X11/autosize.qml b/tests/auto/declarative/qmlvisual/qfxwebview/autosize/data-X11/autosize.qml
new file mode 100644
index 0000000..d920a4c
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/qfxwebview/autosize/data-X11/autosize.qml
@@ -0,0 +1,83 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 32
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 48
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 64
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 80
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 96
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 112
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 128
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 144
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 160
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 176
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 192
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 208
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 224
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 240
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 256
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 272
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 288
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+ Frame {
+ msec: 304
+ hash: "0c70d855adc847fe33d7959ccb98bb8b"
+ }
+}
diff --git a/tests/auto/declarative/qmlvisual/qfxwebview/autosize/data/autosize.0.png b/tests/auto/declarative/qmlvisual/qfxwebview/autosize/data/autosize.0.png
new file mode 100644
index 0000000..1f28b9a
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/qfxwebview/autosize/data/autosize.0.png
Binary files differ
diff --git a/tests/auto/declarative/qmlvisual/qfxwebview/autosize/data/autosize.qml b/tests/auto/declarative/qmlvisual/qfxwebview/autosize/data/autosize.qml
new file mode 100644
index 0000000..47999be
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/qfxwebview/autosize/data/autosize.qml
@@ -0,0 +1,83 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 32
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 48
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 64
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 80
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 96
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 112
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 128
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 144
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 160
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 176
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 192
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 208
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 224
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 240
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 256
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 272
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 288
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 304
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+}