diff options
author | Charles Yin <charles.yin@nokia.com> | 2012-06-06 12:10:32 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-12 15:40:13 +0200 |
commit | 41e8b0e0d990f34913449de6456a13371f4f9297 (patch) | |
tree | 9a99a253de7b37f8ba191568fa64d853e2887492 /src/imports/testlib/TestCase.qml | |
parent | 7e4d6efadf71d6c8ec5d06cdffcee117f01c6160 (diff) |
Add pixel comparation support to qmltest
Change-Id: Icdee3fab497cc46260bbb9af89f4402fdc027fef
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'src/imports/testlib/TestCase.qml')
-rw-r--r-- | src/imports/testlib/TestCase.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/imports/testlib/TestCase.qml b/src/imports/testlib/TestCase.qml index 41e1686a27..883a864e59 100644 --- a/src/imports/testlib/TestCase.qml +++ b/src/imports/testlib/TestCase.qml @@ -284,6 +284,10 @@ Item { } } + function grabImage(item) { + return qtest_results.grabImage(item); + } + function tryCompare(obj, prop, value, timeout) { if (!timeout) timeout = 5000 |