aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2017-09-05 21:15:13 +0200
committerAndy Shaw <andy.shaw@qt.io>2017-10-20 06:32:22 +0000
commit95517128d2b5ed6b3e993df3276c012199ec8ab9 (patch)
tree27047d48f3c39e3a2262a351c91d62d2bcc7c16c /tests/auto
parentffca73c79d7733f06416f211d5d544dd037c9532 (diff)
Update the cursor rectangle when select all is triggered
When select all is triggered then the cursor rectangle should be updated to ensure that the selection handles are visible if they are displayed on a given platform. For instance, on iOS the loupe handles should appear in this case. This also has the added effect that when using Backspace on the iOS keyboard, it will delete the selected text as opposed to just a single character as it will handle that situation correctly. The tst_qquicktextedit::inputMethodUpdate() test is modified to account for the extra event sent now when selectAll() is called. Task-number: QTBUG-63835 Change-Id: I94fb0576b286c006dd12c65d0b322d712ed2a96f Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp b/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp
index d58fc6c389..f4fef1f946 100644
--- a/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp
+++ b/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp
@@ -3205,7 +3205,7 @@ void tst_qquicktextedit::inputMethodUpdate()
// programmatical selections trigger update
platformInputContext.clear();
edit->selectAll();
- QCOMPARE(platformInputContext.m_updateCallCount, 1);
+ QVERIFY(platformInputContext.m_updateCallCount > 0);
// font changes
platformInputContext.clear();