diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-11-16 05:44:32 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-11-16 06:03:13 (GMT) |
commit | df1a50f6bd25c0955c7d8e4b6b89a7b7957b69f6 (patch) | |
tree | d8a72e5fafc4ec2b2331ee9288a94ebc6dedfdae /tests/auto/declarative/qmlvisual/rect | |
parent | 60436458bbde50b03e10f13d61625b0aef8fbf3d (diff) | |
download | Qt-df1a50f6bd25c0955c7d8e4b6b89a7b7957b69f6.zip Qt-df1a50f6bd25c0955c7d8e4b6b89a7b7957b69f6.tar.gz Qt-df1a50f6bd25c0955c7d8e4b6b89a7b7957b69f6.tar.bz2 |
Update qml visual tests
Added guidelines for size, and shrunk tests that exceeded them.
Also updated the visuals for all text tests now that antialiasing is off
Also some other minor cleanups.
Also had to update the visuals for all tests, due to the bug in
generating the test scripts being fixed (all need to be remade).
Task-number: QTBUG-14792
Diffstat (limited to 'tests/auto/declarative/qmlvisual/rect')
-rw-r--r-- | tests/auto/declarative/qmlvisual/rect/GradientRect.qml | 4 | ||||
-rw-r--r-- | tests/auto/declarative/qmlvisual/rect/MyRect.qml | 4 | ||||
-rw-r--r-- | tests/auto/declarative/qmlvisual/rect/data/rect-painting.0.png | bin | 25197 -> 15272 bytes | |||
-rw-r--r-- | tests/auto/declarative/qmlvisual/rect/rect-painting.qml | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/declarative/qmlvisual/rect/GradientRect.qml b/tests/auto/declarative/qmlvisual/rect/GradientRect.qml index dea5377..5ac7dcf 100644 --- a/tests/auto/declarative/qmlvisual/rect/GradientRect.qml +++ b/tests/auto/declarative/qmlvisual/rect/GradientRect.qml @@ -9,11 +9,11 @@ Item { property int borderWidth property bool smooth: false - width: 80; height: 80 + width: 40; height: 40 Item { anchors.centerIn: parent; rotation: rect.rotation; Rectangle { - anchors.centerIn: parent; width: 80; height: 80 + anchors.centerIn: parent; width: 40; height: 40 border.color: rect.border; border.width: rect.border != Qt.rgba(0,0,0,0) ? 2 : 0 radius: rect.radius; smooth: rect.smooth gradient: Gradient { diff --git a/tests/auto/declarative/qmlvisual/rect/MyRect.qml b/tests/auto/declarative/qmlvisual/rect/MyRect.qml index a595f7d..99226d3 100644 --- a/tests/auto/declarative/qmlvisual/rect/MyRect.qml +++ b/tests/auto/declarative/qmlvisual/rect/MyRect.qml @@ -9,11 +9,11 @@ Item { property int borderWidth property bool smooth: false - width: 80; height: 80 + width: 40; height: 40 Item { anchors.centerIn: parent; rotation: rect.rotation; Rectangle { - anchors.centerIn: parent; width: 80; height: 80 + anchors.centerIn: parent; width: 40; height: 40 color: rect.color; border.color: rect.border; border.width: rect.border != Qt.rgba(0,0,0,0) ? 2 : 0 radius: rect.radius; smooth: rect.smooth } diff --git a/tests/auto/declarative/qmlvisual/rect/data/rect-painting.0.png b/tests/auto/declarative/qmlvisual/rect/data/rect-painting.0.png Binary files differindex 391e760..1dc9372 100644 --- a/tests/auto/declarative/qmlvisual/rect/data/rect-painting.0.png +++ b/tests/auto/declarative/qmlvisual/rect/data/rect-painting.0.png diff --git a/tests/auto/declarative/qmlvisual/rect/rect-painting.qml b/tests/auto/declarative/qmlvisual/rect/rect-painting.qml index 3c5d90c..2de414d 100644 --- a/tests/auto/declarative/qmlvisual/rect/rect-painting.qml +++ b/tests/auto/declarative/qmlvisual/rect/rect-painting.qml @@ -1,7 +1,7 @@ import QtQuick 1.0 Rectangle { - width: 900; height: 500 + width: 450; height: 250 color: "white" Rectangle { @@ -14,7 +14,7 @@ Rectangle { Grid { anchors.centerIn: parent - columns: 8; rows:4; spacing: 30 + columns: 8; rows:4; spacing: 15 MyRect { color: "lightsteelblue" } MyRect { color: "lightsteelblue"; border: "gray" } |