diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-10-08 04:21:39 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-10-08 04:21:39 (GMT) |
commit | 87504046a111a4154349f6189ecc51ca85c48670 (patch) | |
tree | a896d37e40d4959e94704b8ab22b6dd48063590a /tests/auto | |
parent | f36619d24bc1a2b1e9bef6b4fac7d5d9a1916b7c (diff) | |
download | Qt-87504046a111a4154349f6189ecc51ca85c48670.zip Qt-87504046a111a4154349f6189ecc51ca85c48670.tar.gz Qt-87504046a111a4154349f6189ecc51ca85c48670.tar.bz2 |
WebView auto sizing test.
(image is just for doc, not in testscript)
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/declarative/visual/qfxwebview/autosize/autosize.qml | 60 | ||||
-rw-r--r-- | tests/auto/declarative/visual/qfxwebview/autosize/data/autosize.0.png | bin | 0 -> 6886 bytes | |||
-rw-r--r-- | tests/auto/declarative/visual/qfxwebview/autosize/data/autosize.qml | 83 |
3 files changed, 143 insertions, 0 deletions
diff --git a/tests/auto/declarative/visual/qfxwebview/autosize/autosize.qml b/tests/auto/declarative/visual/qfxwebview/autosize/autosize.qml new file mode 100644 index 0000000..74c6844 --- /dev/null +++ b/tests/auto/declarative/visual/qfxwebview/autosize/autosize.qml @@ -0,0 +1,60 @@ +import Qt 4.6 + +// 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/visual/qfxwebview/autosize/data/autosize.0.png b/tests/auto/declarative/visual/qfxwebview/autosize/data/autosize.0.png Binary files differnew file mode 100644 index 0000000..1f28b9a --- /dev/null +++ b/tests/auto/declarative/visual/qfxwebview/autosize/data/autosize.0.png diff --git a/tests/auto/declarative/visual/qfxwebview/autosize/data/autosize.qml b/tests/auto/declarative/visual/qfxwebview/autosize/data/autosize.qml new file mode 100644 index 0000000..47999be --- /dev/null +++ b/tests/auto/declarative/visual/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" + } +} |