aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2016-06-20 16:36:31 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2016-06-21 10:34:52 +0000
commit99e181a5434389e13b099592f984a2ff1f3583e1 (patch)
tree410f47b2caf879df9885021ceb541e3d51cdd414
parentc15fea6691485501547449e5f78725d3b6f1c968 (diff)
qmltest:doublevalidator - fix locale
The string "1.0" can fail validation due to locale (requiring ',' for example). Task-number: QTBUG-53779 Change-Id: I44b2b6886d96a7a32668bea56b5f34bb8d9db8d3 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
-rw-r--r--tests/auto/qmltest/BLACKLIST2
-rw-r--r--tests/auto/qmltest/textinput/tst_textinput.qml1
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/qmltest/BLACKLIST b/tests/auto/qmltest/BLACKLIST
index 628290f2b4..a53afb1358 100644
--- a/tests/auto/qmltest/BLACKLIST
+++ b/tests/auto/qmltest/BLACKLIST
@@ -10,5 +10,3 @@ linux
[Text::test_linecount]
osx
windows
-[TextInput::test_doublevalidators]
-osx
diff --git a/tests/auto/qmltest/textinput/tst_textinput.qml b/tests/auto/qmltest/textinput/tst_textinput.qml
index 62659a2188..51868ec8aa 100644
--- a/tests/auto/qmltest/textinput/tst_textinput.qml
+++ b/tests/auto/qmltest/textinput/tst_textinput.qml
@@ -277,6 +277,7 @@ Item {
}
function test_doublevalidators(row) {
+ txtdoublevalidator.validator.locale = "C"
compare(txtdoublevalidator.validator.top, 2.0)
compare(txtdoublevalidator.validator.bottom, 1.0)
txtdoublevalidator.text = row.testnumber;