diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2012-04-16 10:12:38 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-01 08:50:57 +0200 |
commit | 283d5bff3dc8c89bd6c5874710e68b694d47bce6 (patch) | |
tree | 702fa1f6684fbf81d53a6a9db05a19fb9855cf19 /tests/auto/quick/qquicktext/data | |
parent | 9a107f47ea50f40ce6b9695fba0190b99f76642a (diff) |
Improve QQuickText tests
Test list support and make sure that we paint the text elements.
This should also improve QQuickTextNode code coverage.
Change-Id: I96c24cc452c6a4cf16064d580738e6764d859812
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquicktext/data')
-rw-r--r-- | tests/auto/quick/qquicktext/data/htmlLists.qml | 12 | ||||
-rw-r--r-- | tests/auto/quick/qquicktext/data/overline.qml | 15 | ||||
-rw-r--r-- | tests/auto/quick/qquicktext/data/strikeout.qml | 15 | ||||
-rw-r--r-- | tests/auto/quick/qquicktext/data/underline.qml | 15 |
4 files changed, 57 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicktext/data/htmlLists.qml b/tests/auto/quick/qquicktext/data/htmlLists.qml new file mode 100644 index 0000000000..18693d2bbb --- /dev/null +++ b/tests/auto/quick/qquicktext/data/htmlLists.qml @@ -0,0 +1,12 @@ +import QtQuick 2.0 + +Item { + width: 400 + height: 400 + + Text { + id: myText + textFormat: Text.RichText + objectName: "myText" + } +} diff --git a/tests/auto/quick/qquicktext/data/overline.qml b/tests/auto/quick/qquicktext/data/overline.qml new file mode 100644 index 0000000000..c40cac0774 --- /dev/null +++ b/tests/auto/quick/qquicktext/data/overline.qml @@ -0,0 +1,15 @@ +import QtQuick 2.0 + +Item { + width: 200 + height: 200 + + Text { + id: myText + objectName: "myText" + width: 200 + wrapMode: Text.WordWrap + font.overline: true + text: "Testing that maximumLines, visibleLines, and totalLines works properly in the autotests. The quick brown fox jumped over the lazy anything with the letter 'g'." + } +} diff --git a/tests/auto/quick/qquicktext/data/strikeout.qml b/tests/auto/quick/qquicktext/data/strikeout.qml new file mode 100644 index 0000000000..d926d94f06 --- /dev/null +++ b/tests/auto/quick/qquicktext/data/strikeout.qml @@ -0,0 +1,15 @@ +import QtQuick 2.0 + +Item { + width: 200 + height: 200 + + Text { + id: myText + objectName: "myText" + width: 200 + wrapMode: Text.WordWrap + font.strikeout: true + text: "Testing that maximumLines, visibleLines, and totalLines works properly in the autotests. The quick brown fox jumped over the lazy anything with the letter 'g'." + } +} diff --git a/tests/auto/quick/qquicktext/data/underline.qml b/tests/auto/quick/qquicktext/data/underline.qml new file mode 100644 index 0000000000..dff97080d5 --- /dev/null +++ b/tests/auto/quick/qquicktext/data/underline.qml @@ -0,0 +1,15 @@ +import QtQuick 2.0 + +Item { + width: 200 + height: 200 + + Text { + id: myText + objectName: "myText" + width: 200 + wrapMode: Text.WordWrap + font.underline: true + text: "Testing that maximumLines, visibleLines, and totalLines works properly in the autotests. The quick brown fox jumped over the lazy anything with the letter 'g'." + } +} |