aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_spinbox.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/controls/data/tst_spinbox.qml')
-rw-r--r--tests/auto/controls/data/tst_spinbox.qml20
1 files changed, 16 insertions, 4 deletions
diff --git a/tests/auto/controls/data/tst_spinbox.qml b/tests/auto/controls/data/tst_spinbox.qml
index a5c40cd3..5898ff52 100644
--- a/tests/auto/controls/data/tst_spinbox.qml
+++ b/tests/auto/controls/data/tst_spinbox.qml
@@ -48,10 +48,10 @@
**
****************************************************************************/
-import QtQuick 2.14
-import QtTest 1.0
-import QtQuick.Controls 2.12
-import QtQuick.Window 2.12
+import QtQuick
+import QtTest
+import QtQuick.Controls
+import QtQuick.Window
TestCase {
id: testCase
@@ -549,6 +549,12 @@ TestCase {
compare(valueFromTextCalls, data.editable ? 3 : 0)
}
+ function test_callDefaultValueFromText() {
+ var control = createTemporaryObject(spinBox, testCase)
+ verify(control)
+ compare(control.valueFromText("123", control.locale), 123)
+ }
+
function test_autoRepeat() {
var control = createTemporaryObject(spinBox, testCase)
verify(control)
@@ -659,6 +665,12 @@ TestCase {
}
}
+ function test_callDefaultTextFromValue() {
+ var control = createTemporaryObject(spinBox, testCase)
+ verify(control)
+ compare(control.textFromValue(123, control.locale), "123")
+ }
+
Component {
id: overriddenSpinBox
SpinBox {