diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-04-04 10:47:50 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-04-04 09:37:57 +0000 |
commit | ab34a0e545230db1a865af918d5a9c2ed6553224 (patch) | |
tree | 8978357b13a6cc02f4b922ad14b91a75dffded29 | |
parent | c7e98f4cb9717dcf267f23bf2e8ca57cdc874b84 (diff) |
tst_combobox: use larger window
test_down() needs to place the popup below the combobox button to be
able to test its pressed and down states while the popup is open. On
some high DPI displays (Chromebook Pixel) the popup did not fit fully
below, but got pushed partly over the button. Consequently, mouse
presses went to the popup instead of the button and the test failed.
Change-Id: I03e5768e00cf1eaf6d704a16ffe2b8d1705021b2
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r-- | tests/auto/controls/data/tst_combobox.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/controls/data/tst_combobox.qml b/tests/auto/controls/data/tst_combobox.qml index fb4dc57c..05eb2de1 100644 --- a/tests/auto/controls/data/tst_combobox.qml +++ b/tests/auto/controls/data/tst_combobox.qml @@ -55,8 +55,8 @@ import QtQuick.Controls 2.2 TestCase { id: testCase - width: 200 - height: 200 + width: 400 + height: 400 visible: true when: windowShown name: "ComboBox" @@ -724,6 +724,8 @@ TestCase { compare(downSpy.count, 3) compare(pressedSpy.count, 2) + compare(control.popup.y, control.height) + control.down = false compare(control.down, false) compare(downSpy.count, 4) |