From 99e181a5434389e13b099592f984a2ff1f3583e1 Mon Sep 17 00:00:00 2001 From: Timur Pocheptsov Date: Mon, 20 Jun 2016 16:36:31 +0200 Subject: 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 --- tests/auto/qmltest/BLACKLIST | 2 -- tests/auto/qmltest/textinput/tst_textinput.qml | 1 + 2 files changed, 1 insertion(+), 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; -- cgit v1.2.3