Change testlib skipAll function to failure.
authorJason McDonald <jason.mcdonald@nokia.com>
Tue, 17 Jan 2012 06:12:02 +0000 (16:12 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 19 Jan 2012 05:28:12 +0000 (06:28 +0100)
Be more insistent that tests using the obsolete skipAll() function
should change to using skip() by treating calls to skipAll() as test
failures.  After a further grace period the skipAll() function will be
removed.

Change-Id: Ic2448af2f8176909afa151b6e8c29587dfd17f1f
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
src/imports/testlib/TestCase.qml

index 0e49365..182c527 100644 (file)
@@ -313,10 +313,8 @@ Item {
     }
 
     function skipAll(msg) {
-        if (msg === undefined)
-            msg = ""
-        warn("The skipAll function is deprecated and will be removed soon. Please update this test by changing skipAll to skip.")
-        qtest_results.skip(msg, util.callerFile(), util.callerLine())
+        msg = "The skipAll function is no longer available. Please update this test by changing skipAll to skip."
+        qtest_results.fail(msg, util.callerFile(), util.callerLine())
         throw new Error("QtQuickTest::skip")
     }
 
@@ -716,4 +714,4 @@ Item {
         if (when && !completed && !running)
             qtest_run()
     }
-}
\ No newline at end of file
+}