projects
/
konrad/qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4f806b3
)
Addd expectFail() to qmltestexmaple to avoid failure report from CI.
author
Charles Yin
<charles.yin@nokia.com>
Fri, 2 Dec 2011 00:47:59 +0000 (10:47 +1000)
committer
Qt 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
patch
|
blob
|
history
diff --git
a/examples/qmltest/tst_basic.qml
b/examples/qmltest/tst_basic.qml
index
5fda569
..
5ab9a97
100644
(file)
--- 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)
}
}