summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativetextinput
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-05-10 02:04:18 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-05-10 02:04:18 (GMT)
commit6ab242e23832f0ab10ef26a3b7b505cf086ddf43 (patch)
tree1fcb69478827d8efb5379bbd2219185a908071e5 /tests/auto/declarative/qdeclarativetextinput
parentb524e356424fe386eae56f65600077ce52ca6f92 (diff)
downloadQt-6ab242e23832f0ab10ef26a3b7b505cf086ddf43.zip
Qt-6ab242e23832f0ab10ef26a3b7b505cf086ddf43.tar.gz
Qt-6ab242e23832f0ab10ef26a3b7b505cf086ddf43.tar.bz2
Prevent handling of Up/Down on Mac OS X, for consistency with other platforms.
Task-number: QTBUG-10438
Diffstat (limited to 'tests/auto/declarative/qdeclarativetextinput')
-rw-r--r--tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp b/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
index 0065ccf..c00390d 100644
--- a/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
+++ b/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
@@ -576,6 +576,14 @@ void tst_qdeclarativetextinput::navigation()
simulateKey(canvas, Qt::Key_Left);
QVERIFY(input->hasFocus() == true);
+ // Up and Down should NOT do Home/End, even on Mac OS X (QTBUG-10438).
+ input->setCursorPosition(2);
+ QCOMPARE(input->cursorPosition(),2);
+ simulateKey(canvas, Qt::Key_Up);
+ QCOMPARE(input->cursorPosition(),2);
+ simulateKey(canvas, Qt::Key_Down);
+ QCOMPARE(input->cursorPosition(),2);
+
delete canvas;
}