aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_stackview.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-07-06 23:57:23 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-07-08 10:37:50 +0000
commit3aba5f184c95fdb2e35acea5029d2b56ea3185d0 (patch)
tree8b18285b51f27546c554ce092b84da8a2bf20894 /tests/auto/controls/data/tst_stackview.qml
parent397d5a3666d357a61c8f099146dc4ecc67c0cdd0 (diff)
tst_stackview: ignore warnings
Change-Id: I6fb8e1b238a087f8775df87e63ffa515b626226d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests/auto/controls/data/tst_stackview.qml')
-rw-r--r--tests/auto/controls/data/tst_stackview.qml15
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/auto/controls/data/tst_stackview.qml b/tests/auto/controls/data/tst_stackview.qml
index b78b167c..887e139c 100644
--- a/tests/auto/controls/data/tst_stackview.qml
+++ b/tests/auto/controls/data/tst_stackview.qml
@@ -261,10 +261,12 @@ TestCase {
function test_push() {
var control = stackView.createObject(testCase)
- // missing arguments ### TODO: TestCase.ignoreWarning()
+ // missing arguments
+ ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":59:9: QML AbstractStackView: push: missing arguments")
compare(control.push(), null)
- // nothing to push ### TODO: TestCase.ignoreWarning()
+ // nothing to push
+ ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":59:9: QML AbstractStackView: push: nothing to push")
compare(control.push(AbstractStackView.Immediate), null)
// push(item)
@@ -317,7 +319,7 @@ TestCase {
control.push(items, AbstractStackView.Immediate)
- // too many arguments ### TODO: TestCase.ignoreWarning()
+ ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":59:9: QML AbstractStackView: pop: too many arguments")
compare(control.pop(1, 2, 3), null)
// pop the top most item
@@ -336,6 +338,7 @@ TestCase {
compare(control.currentItem, items[2])
// don't pop non-existent item
+ ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":59:9: QML AbstractStackView: pop: unknown argument: " + testCase)
compare(control.pop(testCase, AbstractStackView.Immediate), null)
compare(control.depth, 3)
compare(control.currentItem, items[2])
@@ -351,10 +354,12 @@ TestCase {
function test_replace() {
var control = stackView.createObject(testCase)
- // missing arguments ### TODO: TestCase.ignoreWarning()
+ // missing arguments
+ ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":59:9: QML AbstractStackView: replace: missing arguments")
compare(control.replace(), null)
- // nothing to push ### TODO: TestCase.ignoreWarning()
+ // nothing to push
+ ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":59:9: QML AbstractStackView: replace: nothing to push")
compare(control.replace(AbstractStackView.Immediate), null)
// replace(item)