diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-11-03 03:04:03 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-11-03 03:04:03 (GMT) |
commit | 5f19daab6baba7d09853058355a66090a3781430 (patch) | |
tree | 203b5a1abbf8c72c448845b399e5708a82ce9cfa /tools/qmlviewer/main.cpp | |
parent | 1e8034a10d2496d7fb7aa987357333c6e2c3258d (diff) | |
download | Qt-5f19daab6baba7d09853058355a66090a3781430.zip Qt-5f19daab6baba7d09853058355a66090a3781430.tar.gz Qt-5f19daab6baba7d09853058355a66090a3781430.tar.bz2 |
Support Visual (interactive) tests without using images for confirmation.
Diffstat (limited to 'tools/qmlviewer/main.cpp')
-rw-r--r-- | tools/qmlviewer/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/qmlviewer/main.cpp b/tools/qmlviewer/main.cpp index 23194b2..ac0d732 100644 --- a/tools/qmlviewer/main.cpp +++ b/tools/qmlviewer/main.cpp @@ -87,7 +87,8 @@ void scriptOptsUsage() qWarning(" options:"); qWarning(" record ................................... record a new script"); qWarning(" play ..................................... playback an existing script"); - qWarning(" testimages ............................... compare images on playback"); + qWarning(" testimages ............................... record images or compare images on playback"); + qWarning(" testerror ................................ test 'error' property of root item on playback"); qWarning(" exitoncomplete ........................... cleanly exit the viewer on script completion"); qWarning(" exitonfailure ............................ immediately exit the viewer on script failure"); qWarning(" saveonexit ............................... save recording on viewer exit"); @@ -235,6 +236,8 @@ int main(int argc, char ** argv) scriptOptions |= QmlViewer::Record; } else if (option == QLatin1String("testimages")) { scriptOptions |= QmlViewer::TestImages; + } else if (option == QLatin1String("testerror")) { + scriptOptions |= QmlViewer::TestErrorProperty; } else if (option == QLatin1String("exitoncomplete")) { scriptOptions |= QmlViewer::ExitOnComplete; } else if (option == QLatin1String("exitonfailure")) { |