aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/quickcontrols/controls/data/tst_textarea.qml10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/auto/quickcontrols/controls/data/tst_textarea.qml b/tests/auto/quickcontrols/controls/data/tst_textarea.qml
index 1e03947e05..1831700345 100644
--- a/tests/auto/quickcontrols/controls/data/tst_textarea.qml
+++ b/tests/auto/quickcontrols/controls/data/tst_textarea.qml
@@ -207,10 +207,12 @@ TestCase {
}
function test_alignment(data) {
- var control = createTemporaryObject(textArea, testCase, {text: data.text, placeholderText: data.placeholderText, horizontalAlignment: data.textAlignment})
+ var control = createTemporaryObject(textArea, testCase, {text: data.text, placeholderText: data.placeholderText})
- if (data.textAlignment !== undefined)
+ if (data.textAlignment !== undefined) {
+ control.horizontalAlignment = data.textAlignment
compare(control.horizontalAlignment, data.textAlignment)
+ }
// The placeholder text of the Material style doesn't currently respect the alignment of the control.
if (StyleInfo.styleName !== "Material") {
@@ -234,7 +236,7 @@ TestCase {
return [
{tag: "bold", value: true},
{tag: "capitalization", value: Font.Capitalize},
- {tag: "family", value: "Courier"},
+ {tag: "family", value: "Tahoma"},
{tag: "italic", value: true},
{tag: "strikeout", value: true},
{tag: "underline", value: true},
@@ -272,7 +274,7 @@ TestCase {
}
function test_flickable() {
- var control = createTemporaryObject(flickable, testCase, {text:"line0", selectByMouse: true})
+ var control = createTemporaryObject(flickable, testCase)
verify(control)
var textArea = control.TextArea.flickable