aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmltest/textedit
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2013-05-16 09:28:40 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-22 10:27:07 +0200
commit86249e8abe200b1e0114f90d6ffe186f664533c8 (patch)
tree936ec154099d6de6001d4edff7008e9e40dd41a3 /tests/auto/qmltest/textedit
parent64013ae709d59b46f6bacf65a25dbf79bf205b99 (diff)
Autotest: fix misuses of tryCompare
Change-Id: Ia06527a0a3c3cfd68ecb3372316de476e02e6c26 Reviewed-by: Albert Astals Cid <albert.astals@canonical.com> Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'tests/auto/qmltest/textedit')
-rw-r--r--tests/auto/qmltest/textedit/tst_textedit.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/auto/qmltest/textedit/tst_textedit.qml b/tests/auto/qmltest/textedit/tst_textedit.qml
index edfa127c59..6e5124253c 100644
--- a/tests/auto/qmltest/textedit/tst_textedit.qml
+++ b/tests/auto/qmltest/textedit/tst_textedit.qml
@@ -179,11 +179,12 @@ Item {
compare(txtlines.lineCount, 3)
txtlines.text = txtlines.styledtextvalue;
compare(txtlines.text, "Line 1<br>Line 2<br>Line 3")
- tryCompare(txtlines.lineCount, 1)
+ tryCompare(txtlines, 'lineCount', 1)
txtlines.textFormat = Text.StyledText;
- tryCompare(txtlines.lineCount, 3)
+ expectFail("", "QTBUG-31191")
+ tryCompare(txtlines, 'lineCount', 3)
txtlines.textFormat = Text.RichText;
- tryCompare(txtlines.lineCount, 3)
+ tryCompare(txtlines, 'lineCount', 3)
}
}
}