diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-11-04 08:01:36 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-11-04 08:01:36 (GMT) |
commit | d5ed9ed21b67b6e5e884e7c87fabc096b8c677a2 (patch) | |
tree | d1618ef434f005a9f9e30c941257b96b7ea6a4a7 /tests/auto/declarative/qmlvisual/qdeclarativetext/font/plaintext2.qml | |
parent | 032bea71a17e6c79346b2df926a5755a22a3d95b (diff) | |
download | Qt-d5ed9ed21b67b6e5e884e7c87fabc096b8c677a2.zip Qt-d5ed9ed21b67b6e5e884e7c87fabc096b8c677a2.tar.gz Qt-d5ed9ed21b67b6e5e884e7c87fabc096b8c677a2.tar.bz2 |
Make qmlvisual tests more stable
Text elements now use shared components that have the same default
values, instead of using the system defaults (that can vary between
computers). This also removes text edit/input cursor blinking.
Task-number: QTBUG-14792
Diffstat (limited to 'tests/auto/declarative/qmlvisual/qdeclarativetext/font/plaintext2.qml')
-rw-r--r-- | tests/auto/declarative/qmlvisual/qdeclarativetext/font/plaintext2.qml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/auto/declarative/qmlvisual/qdeclarativetext/font/plaintext2.qml b/tests/auto/declarative/qmlvisual/qdeclarativetext/font/plaintext2.qml index 901025a..01de1f0 100644 --- a/tests/auto/declarative/qmlvisual/qdeclarativetext/font/plaintext2.qml +++ b/tests/auto/declarative/qmlvisual/qdeclarativetext/font/plaintext2.qml @@ -1,4 +1,5 @@ import QtQuick 1.0 +import "../../shared" 1.0 Rectangle { width: 400; height: 200 @@ -6,16 +7,16 @@ Rectangle { Row { spacing: 20 anchors.centerIn: parent - Text { + TestText { text: "First line\nSecond line"; wrapMode: Text.Wrap } - Text { + TestText { text: "First line\nSecond line"; width: 70 } - Text { + TestText { text: "First Second\nThird Fourth"; wrapMode: Text.Wrap; width: 50 } - Text { + TestText { text: "First line<br>Second line"; textFormat: Text.StyledText } } |