QTBUG-21011 has been resolved, hence the qpa platform can be enabled
for this test.
Change-Id: I1a1e76077eb102c389b09c79e069f6d9e25e2637
Reviewed-on: http://codereview.qt-project.org/4624
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
int diff = abs(textWidth - (textLeftWidth+textinputObject->width()/2));
int diff = abs(textWidth - (textLeftWidth+textinputObject->width()/2));
-#ifdef Q_WS_QPA
- QEXPECT_FAIL("", "QTBUG-21011 fails", Continue);
-#endif
-
// some tollerance for different fonts.
#ifdef Q_OS_LINUX
QVERIFY(diff < 2);
// some tollerance for different fonts.
#ifdef Q_OS_LINUX
QVERIFY(diff < 2);
diff = abs(int(textLeftWidth-textinputObject->width()/2));
diff = abs(int(textLeftWidth-textinputObject->width()/2));
-#ifdef Q_WS_QPA
- QEXPECT_FAIL("", "QTBUG-21011 fails", Continue);
-#endif
-
// some tollerance for different fonts.
#ifdef Q_OS_LINUX
QVERIFY(diff < 2);
// some tollerance for different fonts.
#ifdef Q_OS_LINUX
QVERIFY(diff < 2);
// test the text is scrolled so the preedit is visible.
ic.sendPreeditText(preeditText.mid(0, 3), 1);
// test the text is scrolled so the preedit is visible.
ic.sendPreeditText(preeditText.mid(0, 3), 1);
-#ifdef Q_WS_QPA
- QEXPECT_FAIL("", "QTBUG-21011 fails", Abort);
-#endif
QVERIFY(input->positionAt(0) != 0);
QVERIFY(input->cursorRectangle().left() < input->boundingRect().width());
QCOMPARE(cursorRectangleSpy.count(), ++cursorRectangleChanges);
QVERIFY(input->positionAt(0) != 0);
QVERIFY(input->cursorRectangle().left() < input->boundingRect().width());
QCOMPARE(cursorRectangleSpy.count(), ++cursorRectangleChanges);