tst_examples::tst_examples()
{
// Add directories you want excluded here
-#ifdef Q_WS_QPA
excludedDirs << "examples/declarative/text/fonts"; // QTBUG-21415
-#endif
// Not run in QQuickView
excludedDirs << "examples/declarative/qtquick1";
qreal h = myText->height();
myText->setLineHeight(1.5);
-#ifdef Q_WS_QPA
QEXPECT_FAIL("", "QTBUG-21009 fails", Continue);
-#endif
QVERIFY(myText->height() == h * 1.5);
myText->setLineHeightMode(QQuickText::FixedHeight);
qreal h = myText->height();
myText->setLineHeight(1.5);
-#ifdef Q_WS_QPA
QEXPECT_FAIL("", "QTBUG-21015 fails", Continue);
-#endif
QVERIFY(myText->height() == h * 1.5);
myText->setLineHeightMode(QDeclarative1Text::FixedHeight);
pos = textinputObject->positionAt(textinputObject->width()/2);
diff = abs(int(fm.width(textinputObject->text().left(pos))-textinputObject->width()/2));
-#ifdef Q_WS_QPA
QEXPECT_FAIL("", "QTBUG-21017 fails", Continue);
-#endif
- // some tollerance for different fonts.
+ // some tolerance for different fonts.
#ifdef Q_OS_LINUX
QVERIFY(diff < 2);
#else
view.show();
QApplication::setActiveWindow(&view);
QTest::qWaitForWindowShown(&view);
-#ifdef Q_WS_QPA
QEXPECT_FAIL("", "QTBUG-21017 fails", Abort);
-#endif
QTRY_COMPARE(input.nbPaint, 1);
input.setHAlign(QDeclarative1TextInput::AlignRight);
QApplication::processEvents();
// test the text is scrolled so the preedit is visible.
ic.sendPreeditText(preeditText.mid(0, 3), 1);
-#ifdef Q_WS_QPA
QEXPECT_FAIL("", "QTBUG-21017 fails", Abort);
-#endif
QVERIFY(input.positionAt(0) != 0);
QVERIFY(input.cursorRectangle().left() < input.boundingRect().width());
QCOMPARE(cursorRectangleSpy.count(), ++cursorRectangleChanges);