summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativetextedit
diff options
context:
space:
mode:
authorPekka Vuorela <pekka.ta.vuorela@nokia.com>2012-03-20 19:08:04 +0200
committerQt by Nokia <qt-info@nokia.com>2012-03-23 11:25:06 +0100
commita7b68bf189fbae3a0add5660f8a95ed4359a67d5 (patch)
tree3968019247bb57b56317fbc3884ea51056ae68fa /tests/auto/declarative/qdeclarativetextedit
parentb6c332107372fdcbe64c47eb458d8820e499fd16 (diff)
Fix text editor mouse handler unit tests
QTBUG-24035 - tst_qdeclarativetextedit::inputContextMouseHandler test fails. Change-Id: I61ae74f1f4f19586abbdcae79f05f556a9904740 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Diffstat (limited to 'tests/auto/declarative/qdeclarativetextedit')
-rw-r--r--tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
index 62a3a561..5aaea511 100644
--- a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
+++ b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
@@ -2513,8 +2513,7 @@ void tst_qdeclarativetextedit::inputContextMouseHandler()
edit.setPos(0, 0);
edit.setWidth(200);
edit.setText(text.mid(0, 12));
- edit.setPos(0, 0);
- edit.setCursorPosition(12);
+ edit.setCursorPosition(0);
edit.setFocus(true);
scene.addItem(&edit);
view.show();
@@ -2535,7 +2534,6 @@ void tst_qdeclarativetextedit::inputContextMouseHandler()
QTest::mouseRelease(view.viewport(), Qt::RightButton, Qt::ControlModifier, position2);
QApplication::processEvents();
- QEXPECT_FAIL("", "QTBUG-24035", Abort);
QCOMPARE(ic.m_action, QInputMethod::Click);
QCOMPARE(ic.m_invokeActionCallCount, 1);
QCOMPARE(ic.m_cursorPosition, 2);