Remove tst_qquicktextinput::horizontalAlignment()
authorJ-P Nurmi <j-p.nurmi@nokia.com>
Fri, 7 Sep 2012 12:55:36 +0000 (14:55 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 13 Sep 2012 12:20:36 +0000 (14:20 +0200)
These tests are not valid. Will be covered by Lancelot-based scenegraph
rendering tests: https://codereview.qt-project.org/#change,34437

Change-Id: I1bb6261d7849ec00e23acce496c1e2e61152322e
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
tests/auto/quick/qquicktextinput/data/halign_center.png [deleted file]
tests/auto/quick/qquicktextinput/data/halign_left.png [deleted file]
tests/auto/quick/qquicktextinput/data/halign_right.png [deleted file]
tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp

diff --git a/tests/auto/quick/qquicktextinput/data/halign_center.png b/tests/auto/quick/qquicktextinput/data/halign_center.png
deleted file mode 100644 (file)
index 53e09a8..0000000
Binary files a/tests/auto/quick/qquicktextinput/data/halign_center.png and /dev/null differ
diff --git a/tests/auto/quick/qquicktextinput/data/halign_left.png b/tests/auto/quick/qquicktextinput/data/halign_left.png
deleted file mode 100644 (file)
index 247acbc..0000000
Binary files a/tests/auto/quick/qquicktextinput/data/halign_left.png and /dev/null differ
diff --git a/tests/auto/quick/qquicktextinput/data/halign_right.png b/tests/auto/quick/qquicktextinput/data/halign_right.png
deleted file mode 100644 (file)
index 691bc75..0000000
Binary files a/tests/auto/quick/qquicktextinput/data/halign_right.png and /dev/null differ
index b901aea..0879b4b 100644 (file)
@@ -131,8 +131,6 @@ private slots:
     void renderType();
     void tripleClickSelectsAll();
 
-    void horizontalAlignment_data();
-    void horizontalAlignment();
     void horizontalAlignment_RightToLeft();
     void verticalAlignment();
 
@@ -1414,40 +1412,6 @@ void tst_qquicktextinput::renderType()
     QCOMPARE(spy.count(), 2);
 }
 
-void tst_qquicktextinput::horizontalAlignment_data()
-{
-    QTest::addColumn<int>("hAlign");
-    QTest::addColumn<QString>("expectfile");
-
-    QTest::newRow("L") << int(Qt::AlignLeft) << "halign_left";
-    QTest::newRow("R") << int(Qt::AlignRight) << "halign_right";
-    QTest::newRow("C") << int(Qt::AlignHCenter) << "halign_center";
-}
-
-void tst_qquicktextinput::horizontalAlignment()
-{
-    QSKIP("Image comparison of text is almost guaranteed to fail during development");
-
-    QFETCH(int, hAlign);
-    QFETCH(QString, expectfile);
-
-    QQuickView window(testFileUrl("horizontalAlignment.qml"));
-
-    window.show();
-    QVERIFY(QTest::qWaitForWindowExposed(&window));
-
-    QObject *ob = window.rootObject();
-    QVERIFY(ob != 0);
-    ob->setProperty("horizontalAlignment",hAlign);
-    QImage actual = window.grabWindow();
-
-    expectfile = createExpectedFileIfNotFound(expectfile, actual);
-
-    QImage expect(expectfile);
-
-    QCOMPARE(actual,expect);
-}
-
 void tst_qquicktextinput::horizontalAlignment_RightToLeft()
 {
     PlatformInputContext platformInputContext;