diff options
Diffstat (limited to 'tests/auto/qtquick1/qdeclarativetext/data')
21 files changed, 149 insertions, 0 deletions
diff --git a/tests/auto/qtquick1/qdeclarativetext/data/alignments.qml b/tests/auto/qtquick1/qdeclarativetext/data/alignments.qml new file mode 100644 index 0000000000..25105f6789 --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/alignments.qml @@ -0,0 +1,41 @@ +import QtQuick 1.0 + +Rectangle { + id: top + width: 70; height: 70; + + property alias horizontalAlignment: t.horizontalAlignment + property alias verticalAlignment: t.verticalAlignment + property alias wrapMode: t.wrapMode + property alias running: timer.running + property string txt: "Test" + + Rectangle { + anchors.centerIn: parent + width: 40 + height: 40 + color: "green" + + Text { + id: t + + anchors.fill: parent + horizontalAlignment: Text.AlignRight + verticalAlignment: Text.AlignBottom + wrapMode: Text.WordWrap + text: top.txt + } + Timer { + id: timer + + interval: 1 + running: true + repeat: true + onTriggered: { + top.txt = top.txt + "<br>more " + top.txt.length; + if (top.txt.length > 50) + running = false + } + } + } +} diff --git a/tests/auto/qtquick1/qdeclarativetext/data/alignments_cb.png b/tests/auto/qtquick1/qdeclarativetext/data/alignments_cb.png Binary files differnew file mode 100644 index 0000000000..cf6199a418 --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/alignments_cb.png diff --git a/tests/auto/qtquick1/qdeclarativetext/data/alignments_cc.png b/tests/auto/qtquick1/qdeclarativetext/data/alignments_cc.png Binary files differnew file mode 100644 index 0000000000..f81ccb4238 --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/alignments_cc.png diff --git a/tests/auto/qtquick1/qdeclarativetext/data/alignments_ct.png b/tests/auto/qtquick1/qdeclarativetext/data/alignments_ct.png Binary files differnew file mode 100644 index 0000000000..9ba64125d5 --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/alignments_ct.png diff --git a/tests/auto/qtquick1/qdeclarativetext/data/alignments_lb.png b/tests/auto/qtquick1/qdeclarativetext/data/alignments_lb.png Binary files differnew file mode 100644 index 0000000000..1b50a81f3d --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/alignments_lb.png diff --git a/tests/auto/qtquick1/qdeclarativetext/data/alignments_lc.png b/tests/auto/qtquick1/qdeclarativetext/data/alignments_lc.png Binary files differnew file mode 100644 index 0000000000..f041b868f8 --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/alignments_lc.png diff --git a/tests/auto/qtquick1/qdeclarativetext/data/alignments_lt.png b/tests/auto/qtquick1/qdeclarativetext/data/alignments_lt.png Binary files differnew file mode 100644 index 0000000000..c75e0d158e --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/alignments_lt.png diff --git a/tests/auto/qtquick1/qdeclarativetext/data/alignments_rb.png b/tests/auto/qtquick1/qdeclarativetext/data/alignments_rb.png Binary files differnew file mode 100644 index 0000000000..b06a5da715 --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/alignments_rb.png diff --git a/tests/auto/qtquick1/qdeclarativetext/data/alignments_rc.png b/tests/auto/qtquick1/qdeclarativetext/data/alignments_rc.png Binary files differnew file mode 100644 index 0000000000..e468857cd0 --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/alignments_rc.png diff --git a/tests/auto/qtquick1/qdeclarativetext/data/alignments_rt.png b/tests/auto/qtquick1/qdeclarativetext/data/alignments_rt.png Binary files differnew file mode 100644 index 0000000000..576715ffce --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/alignments_rt.png diff --git a/tests/auto/qtquick1/qdeclarativetext/data/elideimplicitwidth.qml b/tests/auto/qtquick1/qdeclarativetext/data/elideimplicitwidth.qml new file mode 100644 index 0000000000..60ae15c4e1 --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/elideimplicitwidth.qml @@ -0,0 +1,7 @@ +import QtQuick 1.1 + +Text { + text: "Hello World" + elide: Text.ElideRight + width: 30 +} diff --git a/tests/auto/qtquick1/qdeclarativetext/data/embeddedImagesLocal.qml b/tests/auto/qtquick1/qdeclarativetext/data/embeddedImagesLocal.qml new file mode 100644 index 0000000000..ee9b95a2a7 --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/embeddedImagesLocal.qml @@ -0,0 +1,5 @@ +import QtQuick 1.0 + +Text { + text: "<img src='http/exists.png'>" +} diff --git a/tests/auto/qtquick1/qdeclarativetext/data/embeddedImagesLocalError.qml b/tests/auto/qtquick1/qdeclarativetext/data/embeddedImagesLocalError.qml new file mode 100644 index 0000000000..4dc0d3e16f --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/embeddedImagesLocalError.qml @@ -0,0 +1,5 @@ +import QtQuick 1.0 + +Text { + text: "<img src='http/notexists.png'>" +} diff --git a/tests/auto/qtquick1/qdeclarativetext/data/embeddedImagesRemote.qml b/tests/auto/qtquick1/qdeclarativetext/data/embeddedImagesRemote.qml new file mode 100644 index 0000000000..438f4a06d3 --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/embeddedImagesRemote.qml @@ -0,0 +1,5 @@ +import QtQuick 1.0 + +Text { + text: "<img src='http://127.0.0.1:14453/exists.png'>" +} diff --git a/tests/auto/qtquick1/qdeclarativetext/data/embeddedImagesRemoteError.qml b/tests/auto/qtquick1/qdeclarativetext/data/embeddedImagesRemoteError.qml new file mode 100644 index 0000000000..c24bf24f9c --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/embeddedImagesRemoteError.qml @@ -0,0 +1,5 @@ +import QtQuick 1.0 + +Text { + text: "<img src='http://127.0.0.1:14453/notexists.png'>" +} diff --git a/tests/auto/qtquick1/qdeclarativetext/data/horizontalAlignment_RightToLeft.qml b/tests/auto/qtquick1/qdeclarativetext/data/horizontalAlignment_RightToLeft.qml new file mode 100644 index 0000000000..4f58944672 --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/horizontalAlignment_RightToLeft.qml @@ -0,0 +1,23 @@ +import QtQuick 1.0 + +Rectangle { + id: top + width: 200; height: 70; + + property alias horizontalAlignment: text.horizontalAlignment + property string text: "اختبا" + + Rectangle { + anchors.centerIn: parent + width: 180 + height: 20 + color: "green" + + Text { + id: text + objectName: "text" + anchors.fill: parent + text: top.text + } + } +} diff --git a/tests/auto/qtquick1/qdeclarativetext/data/http/exists.png b/tests/auto/qtquick1/qdeclarativetext/data/http/exists.png Binary files differnew file mode 100644 index 0000000000..399bd0b1d9 --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/http/exists.png diff --git a/tests/auto/qtquick1/qdeclarativetext/data/lineCount.qml b/tests/auto/qtquick1/qdeclarativetext/data/lineCount.qml new file mode 100644 index 0000000000..63817f6f2a --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/lineCount.qml @@ -0,0 +1,15 @@ +import QtQuick 1.1 + +Item { + width: 200 + height: 200 + + Text { + id: myText + objectName: "myText" + width: 200 + wrapMode: Text.WordWrap + maximumLineCount: undefined + 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/qtquick1/qdeclarativetext/data/lineHeight.qml b/tests/auto/qtquick1/qdeclarativetext/data/lineHeight.qml new file mode 100644 index 0000000000..851d871192 --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/lineHeight.qml @@ -0,0 +1,15 @@ +import QtQuick 1.1 + +Item { + width: 200 + height: 200 + + Text { + id: myText + objectName: "myText" + width: 200 + wrapMode: Text.WordWrap + font.pixelSize: 13 + text: "Lorem ipsum sit amet, consectetur adipiscing elit. Integer felis nisl, varius in pretium nec, venenatis non erat. Proin lobortis interdum dictum." + } +} diff --git a/tests/auto/qtquick1/qdeclarativetext/data/qtbug_14734.qml b/tests/auto/qtquick1/qdeclarativetext/data/qtbug_14734.qml new file mode 100644 index 0000000000..bd07d66727 --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/qtbug_14734.qml @@ -0,0 +1,10 @@ +import QtQuick 1.0 + +Rectangle { + width: 640 + height: 480 + + Text { + text: "Ã " + } +} diff --git a/tests/auto/qtquick1/qdeclarativetext/data/rotated.qml b/tests/auto/qtquick1/qdeclarativetext/data/rotated.qml new file mode 100644 index 0000000000..1e893b93fc --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativetext/data/rotated.qml @@ -0,0 +1,18 @@ +import QtQuick 1.0 + +Rectangle { + width : 200 + height : 100 + + Text { + objectName: "text" + x: 20 + y: 20 + height : 20 + width : 80 + text : "Something" + rotation : 30 + transformOrigin : Item.TopLeft + } +} + |