summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2011-03-04 00:52:13 (GMT)
committerAndrew den Exter <andrew.den-exter@nokia.com>2011-03-04 01:54:00 (GMT)
commit818d3e56bda4829398ceb633a7271c5c99fcdbda (patch)
tree31a04f0aa7baabef9d62f7f0fa7cef143b361a9c /tests/auto/declarative
parent7d22f04a0d2af6752fbbcaa970808a6e8d33399b (diff)
downloadQt-818d3e56bda4829398ceb633a7271c5c99fcdbda.zip
Qt-818d3e56bda4829398ceb633a7271c5c99fcdbda.tar.gz
Qt-818d3e56bda4829398ceb633a7271c5c99fcdbda.tar.bz2
Fix TextInput auto test failure on mac.
Disable auto scroll so the relative position of the text isn't changed when inserting text and changing the cursor position. Change-Id: I6a18e91e98014f1e94216bc85241ebb0d604dd84 Reviewed-by: Bea Lam
Diffstat (limited to 'tests/auto/declarative')
-rw-r--r--tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp b/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
index e7235f7..ef64dd9 100644
--- a/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
+++ b/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
@@ -2066,6 +2066,7 @@ void tst_qdeclarativetextinput::preeditMicroFocus()
view.setInputContext(&ic);
QDeclarativeTextInput input;
input.setPos(0, 0);
+ input.setAutoScroll(false);
input.setFocus(true);
scene.addItem(&input);
view.show();