diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-10 23:01:53 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-11 13:05:36 +0000 |
commit | 57f877bd984a0befb57626421a6e36ed373056ce (patch) | |
tree | ea6162e4fa8806b64b1af0cb4059a6cd0da73d5e /tests | |
parent | aa634f86429ad15fced74a5a65e7d170b5e7e9ff (diff) |
TextArea: fix implicit size
Same as 0cb0962 for TextField.
Change-Id: I1538df1b31a8b7254a219923623c5dd586d65059
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/controls/data/tst_textarea.qml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_textarea.qml b/tests/auto/controls/data/tst_textarea.qml index ba80a721..2b612d07 100644 --- a/tests/auto/controls/data/tst_textarea.qml +++ b/tests/auto/controls/data/tst_textarea.qml @@ -52,7 +52,7 @@ TestCase { Component { id: textArea - TextArea { } + TextArea { background: Item { } } } function test_creation() { @@ -74,4 +74,13 @@ TestCase { pah.pressAndHoldKeepsSelection(control) control.destroy() } + + function test_implicitSize() { + var control = textArea.createObject(testCase) + control.background.implicitWidth = 400 + control.background.implicitHeight = 200 + compare(control.implicitWidth, 400) + compare(control.implicitHeight, 200) + control.destroy() + } } |