From 3aba5f184c95fdb2e35acea5029d2b56ea3185d0 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Mon, 6 Jul 2015 23:57:23 +0200 Subject: tst_stackview: ignore warnings Change-Id: I6fb8e1b238a087f8775df87e63ffa515b626226d Reviewed-by: J-P Nurmi --- tests/auto/controls/data/tst_stackview.qml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'tests/auto/controls/data/tst_stackview.qml') 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) -- cgit v1.2.3