diff options
Diffstat (limited to 'tests/auto/declarative/qmlvisual/qdeclarativetextedit/wrap.qml')
-rw-r--r-- | tests/auto/declarative/qmlvisual/qdeclarativetextedit/wrap.qml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlvisual/qdeclarativetextedit/wrap.qml b/tests/auto/declarative/qmlvisual/qdeclarativetextedit/wrap.qml new file mode 100644 index 00000000..63400f1b --- /dev/null +++ b/tests/auto/declarative/qmlvisual/qdeclarativetextedit/wrap.qml @@ -0,0 +1,35 @@ +import QtQuick 1.0 +import "../shared" 1.0 + +Item { + height:400 + width: 200 + TestTextEdit { + width: 200 + height: 100 + wrapMode: TextEdit.WordWrap + focus: true + } + //With QTBUG-6273 only the bottom one would be wrapped + TestTextEdit { + width: 200 + height: 100 + wrapMode: TextEdit.WordWrap + text: "This is a test that text edit wraps correctly." + y:100 + } + TestTextEdit { + width: 150 + height: 100 + wrapMode: TextEdit.WrapAnywhere + text: "This is a test that text edit wraps correctly. thisisaverylongstringwithnospaces" + y:200 + } + TestTextEdit { + width: 150 + height: 100 + wrapMode: TextEdit.Wrap + text: "This is a test that text edit wraps correctly. thisisaverylongstringwithnospaces" + y:300 + } +} |