on xenial help sign in
Fixing tests
commit43285a8f5f9865e6feb4bf12ba3b3c3ea863db8a authorDiego Sarmentero <diego.sarmentero@gmail.com> dateTue 17 Sep 2013, 15:07 (13 years ago) parent628cad6
2 files changed+12
Dash/DashPreview.qml+1 tests/qmltests/Dash/tst_DashPreview.qml+11
Dash/DashPreview.qml+1
@@ -129,6 +129,7 @@ Rectangle {
129129
130130 Flickable {
131131 id: leftFlickable
132+ objectName: "leftFlickable"
132133 anchors.top: parent.top
133134 anchors.bottom: parent.bottom
134135 width: root.narrowMode ? contentRow.width : contentRow.width * root.previewWidthRatio
tests/qmltests/Dash/tst_DashPreview.qml+11
@@ -151,5 +151,16 @@ Item {
151151 // reset to false in case any other test wants to use it
152152 root.helper = false
153153 }
154+
155+ function test_keyboard_present() {
156+ var flick = findChild(preview, "leftFlickable");
157+ var column = findChild(preview, "leftColumn");
158+
159+ compare(flick.contentHeight, column.height, "Column and Flickable area don't match");
160+ var defaultValue = flick.contentHeight;
161+ // Simulate that the keyboard is visible
162+ preview.keyboardSize = 500;
163+ compare(flick.contentHeight, defaultValue + 500, "Flickable wasn't expanded on keyboard shown");
164+ }
154165 }
155166}