diff options
Diffstat (limited to 'tests/auto/tst_qtgraphicaleffects.cpp')
-rw-r--r-- | tests/auto/tst_qtgraphicaleffects.cpp | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/tests/auto/tst_qtgraphicaleffects.cpp b/tests/auto/tst_qtgraphicaleffects.cpp index 4f29d1e..a2576d9 100644 --- a/tests/auto/tst_qtgraphicaleffects.cpp +++ b/tests/auto/tst_qtgraphicaleffects.cpp @@ -59,7 +59,6 @@ private slots: void displace(); void dropShadow(); void fastBlur(); - void fastDropShadow(); void fastInnerShadow(); void gammaAdjust(); void gaussianBlur(); @@ -406,37 +405,11 @@ void tst_qtgraphicaleffects::dropShadow() QCOMPARE(obj->property("color").toString(), QString("#000000")); QCOMPARE(obj->property("spread").toDouble(), 0.0); QCOMPARE(obj->property("transparentBorder").toBool(), false); + QCOMPARE(obj->property("fast").toBool(), false); delete obj; } -void tst_qtgraphicaleffects::fastDropShadow() -{ - // Creation - QString componentStr = "import QtQuick 2.0\n" - "import effects 0.1\n" - "FastDropShadow {" - "source: ShaderEffectSource {sourceItem: Rectangle {width: 100; height: 100}}" - "width: 50; height: 50\n" - "}"; - QDeclarativeComponent component(&engine); - component.setData(componentStr.toLatin1(), QUrl::fromLocalFile("")); - QObject *obj = component.create(); - QTest::qWait(100); - QVERIFY(obj != 0); - - // Default values - QCOMPARE(obj->property("blur").toDouble(), 0.0); - QCOMPARE(obj->property("horizontalOffset").toDouble(), 0.0); - QCOMPARE(obj->property("verticalOffset").toDouble(), 0.0); - QCOMPARE(obj->property("cached").toBool(), false); - QCOMPARE(obj->property("source").toInt(), 0); - QCOMPARE(obj->property("color").toString(), QString("#000000")); - QCOMPARE(obj->property("spread").toDouble(), 0.0); - QCOMPARE(obj->property("transparentBorder").toBool(), false); - - delete obj; -} void tst_qtgraphicaleffects::innerShadow() { |