aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qmltest
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2011-12-02 10:47:59 +1000
committerQt by Nokia <qt-info@nokia.com>2011-12-02 10:13:40 +0100
commit63662f7f0e92c080cb45c99149b36f179f9b1360 (patch)
tree3b8fc4ed7808790d669e15253f2eaa94bbf1a13d /examples/qmltest
parent4f806b3e2490b2890c22a5671290fde94ffddf6b (diff)
Addd expectFail() to qmltestexmaple to avoid failure report from CI.
Change-Id: I35637c9951085d42d216b8eb1eb03ef1206d51d6 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'examples/qmltest')
-rw-r--r--examples/qmltest/tst_basic.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/qmltest/tst_basic.qml b/examples/qmltest/tst_basic.qml
index 5fda569404..5ab9a97d90 100644
--- a/examples/qmltest/tst_basic.qml
+++ b/examples/qmltest/tst_basic.qml
@@ -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)
}
}