summaryrefslogtreecommitdiff
path: root/tests/auto/controls/data/tst_combobox.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/controls/data/tst_combobox.qml')
-rw-r--r--tests/auto/controls/data/tst_combobox.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/controls/data/tst_combobox.qml b/tests/auto/controls/data/tst_combobox.qml
index bccac8d2..01ebbf79 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"