summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2020-03-31 13:46:43 +0200
committerAlex Blasche <alexander.blasche@qt.io>2020-03-31 15:24:06 +0200
commite5658a34159ae32cff7a6c0e1295171c00fe923a (patch)
treef12456298374aad3f2866b4a90e4f6beca0e9cc5 /tests
parenta69544a7b444301c1d3f7956c89eb65ea0b3ab83 (diff)
Push dependency for qtdeclarative and fix resulting test failures
This enables other modules depending on quickcontrols and declarative to resolve their conflicts. Change-Id: Iea28fa75157034d85dc24f44491ca986902db547 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/controls/data/tst_combobox.qml6
-rw-r--r--tests/auto/controls/data/tst_textfield.qml2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/controls/data/tst_combobox.qml b/tests/auto/controls/data/tst_combobox.qml
index bccac8d23..01ebbf791 100644
--- a/tests/auto/controls/data/tst_combobox.qml
+++ b/tests/auto/controls/data/tst_combobox.qml
@@ -155,12 +155,12 @@ TestCase {
}
function test_validator() {
- var comboBox = Qt.createQmlObject('import QtQuick 2.2; \
+ var comboBox = Qt.createQmlObject('import QtQuick 2.14; \
import QtQuick.Controls 1.2; \
ComboBox { \
editable: true; \
- validator: RegExpValidator { \
- regExp: /(red|blue|green)?/ \
+ validator: RegularExpressionValidator { \
+ regularExpression: /(red|blue|green)?/ \
}}', testCase, '')
comboBox.editText = "blu"
diff --git a/tests/auto/controls/data/tst_textfield.qml b/tests/auto/controls/data/tst_textfield.qml
index 64b3fad01..111d01b43 100644
--- a/tests/auto/controls/data/tst_textfield.qml
+++ b/tests/auto/controls/data/tst_textfield.qml
@@ -141,7 +141,7 @@ TestCase {
}
function test_validator() {
- var textfield = Qt.createQmlObject('import QtQuick 2.2; import QtQuick.Controls 1.2; TextField {validator: RegExpValidator { regExp: /(red|blue|green)?/; }}', testCase, '')
+ var textfield = Qt.createQmlObject('import QtQuick 2.14; import QtQuick.Controls 1.2; TextField {validator: RegularExpressionValidator { regularExpression: /(red|blue|green)?/; }}', testCase, '')
textfield.text = "blu"
compare(textfield.acceptableInput, false)