Addd expectFail() to qmltestexmaple to avoid failure report from CI.
authorCharles Yin <charles.yin@nokia.com>
Fri, 2 Dec 2011 00:47:59 +0000 (10:47 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 2 Dec 2011 09:13:40 +0000 (10:13 +0100)
Change-Id: I35637c9951085d42d216b8eb1eb03ef1206d51d6
Reviewed-by: Martin Jones <martin.jones@nokia.com>

examples/qmltest/tst_basic.qml

index 5fda569..5ab9a97 100644 (file)
@@ -50,6 +50,7 @@ TestCase {
     }
 
     function test_fail() {
+        expectFail("", "this is the fail we wanted")
         compare(2 + 2, 5, "2 + 2")
     }
 
@@ -71,6 +72,8 @@ TestCase {
     }
 
     function test_table(data) {
+        if (data.answer === 5)
+          expectFail("", "this is the fail we wanted")
         compare(data.a + data.b, data.answer)
     }
 }