aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-07-07 14:22:39 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-07-07 14:00:41 +0000
commit8024cb734c07a5c29a12f75d74fa1333f203ca47 (patch)
tree9f1860653c06300dc7fc2f2244ee14d211ee4b4f
parent1badc06b810603b27092a74232e60da316d7fb1b (diff)
tst_control: fix TextArea::test_pressedReleased
An empty TextArea has an implicit height of 0. Give it some textual content so it gains a valid height, which is needed for testing mouse event delivery. Change-Id: I8e93b5fef08e4ac714233adad9493f70d4a0150b Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r--tests/auto/controls/data/tst_textarea.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_textarea.qml b/tests/auto/controls/data/tst_textarea.qml
index e3699759..13bde08f 100644
--- a/tests/auto/controls/data/tst_textarea.qml
+++ b/tests/auto/controls/data/tst_textarea.qml
@@ -254,7 +254,7 @@ TestCase {
function test_pressedReleased(data) {
var mouseArea = mouseAreaComponent.createObject(testCase)
verify(mouseArea)
- var control = textArea.createObject(mouseArea)
+ var control = textArea.createObject(mouseArea, {text: "TextArea"})
verify(control)
// Give enough room to check presses outside of the control and on the parent.