diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-04-27 21:51:56 +0300 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-04-27 21:52:01 +0300 |
commit | ea470e8d612e5aa8c12eb3393baf057b8e8149e4 (patch) | |
tree | b5b77618de709c2cd818970b42f138d8e4b7c390 /tests/auto/controls/data/tst_spinbox.qml | |
parent | 806b1f7c4ed218d4df67428277f06bdbb1c71e0e (diff) | |
parent | f9552a96a7c6f8ea58d8ea90cf3027cc0636bf64 (diff) |
Merge remote-tracking branch 'origin/5.9' into dev
Change-Id: I47fbec425594386f529623f2dcbddd7ec7a09ee7
Diffstat (limited to 'tests/auto/controls/data/tst_spinbox.qml')
-rw-r--r-- | tests/auto/controls/data/tst_spinbox.qml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_spinbox.qml b/tests/auto/controls/data/tst_spinbox.qml index 6c4f15c5..17e4b592 100644 --- a/tests/auto/controls/data/tst_spinbox.qml +++ b/tests/auto/controls/data/tst_spinbox.qml @@ -51,6 +51,7 @@ import QtQuick 2.2 import QtTest 1.0 import QtQuick.Controls 2.2 +import QtQuick.Window 2.3 TestCase { id: testCase @@ -399,6 +400,16 @@ TestCase { compare(control.value, 100) } + function test_initialFocus() { + var window = testCase.Window.window + verify(window) + compare(window.activeFocusItem, window.contentItem) + + var control = createTemporaryObject(spinBox, testCase, { editable: true, focus: true }) + verify(control) + tryCompare(control.contentItem, "activeFocus", true) + } + function test_editable() { var control = createTemporaryObject(spinBox, testCase) verify(control) |