From 63662f7f0e92c080cb45c99149b36f179f9b1360 Mon Sep 17 00:00:00 2001 From: Charles Yin Date: Fri, 2 Dec 2011 10:47:59 +1000 Subject: [PATCH] Addd expectFail() to qmltestexmaple to avoid failure report from CI. Change-Id: I35637c9951085d42d216b8eb1eb03ef1206d51d6 Reviewed-by: Martin Jones --- examples/qmltest/tst_basic.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/qmltest/tst_basic.qml b/examples/qmltest/tst_basic.qml index 5fda569..5ab9a97 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) } } -- 2.7.4