diff options
author | Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> | 2011-08-02 20:31:19 -0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-08-03 01:50:43 +0200 |
commit | 73aa113181fa2295729d24317c187661f740b898 (patch) | |
tree | f32972453fe46b796a94939b4278a5b6919ec450 /src | |
parent | 1f0c9055daf10df1afce8f722c30415c12802ee4 (diff) |
qmltest: Fix SignalSpy to use TestUtil helper functions
Previously the callerFile() and callerLine() functions were exposed as
properties of the QtTest module, but now they are available in the
TestUtil component. TestCase was updated but SignalSpy wasn't.
Change-Id: Ic3f35e6f096b28c443e8aadaa78732a8a15dc284
Reviewed-on: http://codereview.qt.nokia.com/2528
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Charles Yin <charles.yin@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/imports/testlib/SignalSpy.qml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/imports/testlib/SignalSpy.qml b/src/imports/testlib/SignalSpy.qml index 59d44185a1..91b5f03522 100644 --- a/src/imports/testlib/SignalSpy.qml +++ b/src/imports/testlib/SignalSpy.qml @@ -46,6 +46,10 @@ Item { id: spy visible: false + TestUtil { + id: util + } + // Public API. property variant target: null @@ -67,7 +71,7 @@ Item { i += 50 } var success = (count >= expected) - if (!qtest_results.verify(success, "wait for signal " + signalName, QtTest.qtest_caller_file(), QtTest.qtest_caller_line())) + if (!qtest_results.verify(success, "wait for signal " + signalName, util.callerFile(), util.callerLine())) throw new Error("QtQuickTest::fail") } |