diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-11-04 05:38:35 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-11-04 05:38:35 (GMT) |
commit | cc06fb21f890613c396936561501737a23d1cd9f (patch) | |
tree | 835d357a26e2a0cc1424c0b933da556e8c4ee050 /tests | |
parent | 63d3766ca2a7f3380d4a67e34497f2f70c42b5f2 (diff) | |
download | Qt-cc06fb21f890613c396936561501737a23d1cd9f.zip Qt-cc06fb21f890613c396936561501737a23d1cd9f.tar.gz Qt-cc06fb21f890613c396936561501737a23d1cd9f.tar.bz2 |
Ensure root object is at least created.
Tweak for QTBUG-5296 (lots of other examples hang too though)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative/examples/data/dummytest.qml | 1 | ||||
-rw-r--r-- | tests/auto/declarative/examples/data/webbrowser/webbrowser.qml | 2 | ||||
-rw-r--r-- | tests/auto/declarative/examples/tst_examples.cpp | 5 |
3 files changed, 5 insertions, 3 deletions
diff --git a/tests/auto/declarative/examples/data/dummytest.qml b/tests/auto/declarative/examples/data/dummytest.qml index cd9d8fb..b20e907 100644 --- a/tests/auto/declarative/examples/data/dummytest.qml +++ b/tests/auto/declarative/examples/data/dummytest.qml @@ -2,4 +2,5 @@ import Qt.VisualTest 4.6 VisualTest { Frame { msec: 0 } + Frame { msec: 10 } } diff --git a/tests/auto/declarative/examples/data/webbrowser/webbrowser.qml b/tests/auto/declarative/examples/data/webbrowser/webbrowser.qml index bdf3290..d31787b 100644 --- a/tests/auto/declarative/examples/data/webbrowser/webbrowser.qml +++ b/tests/auto/declarative/examples/data/webbrowser/webbrowser.qml @@ -2,5 +2,5 @@ import Qt.VisualTest 4.6 VisualTest { Frame { msec: 0 } - Frame { msec: 1000 } + Frame { msec: 2000 } } diff --git a/tests/auto/declarative/examples/tst_examples.cpp b/tests/auto/declarative/examples/tst_examples.cpp index d758101..2cbb916 100644 --- a/tests/auto/declarative/examples/tst_examples.cpp +++ b/tests/auto/declarative/examples/tst_examples.cpp @@ -182,9 +182,10 @@ void tst_examples::examples() QFileInfo fi(file); QFileInfo dir(fi.path()); - QFileInfo testdata("data/"+dir.baseName()+"/"+fi.baseName()); + QString script = "data/"+dir.baseName()+"/"+fi.baseName(); + QFileInfo testdata(script+".qml"); QStringList arguments; - arguments << "-script" << (testdata.exists() ? testdata.filePath() : QLatin1String("data/dummytest")) + arguments << "-script" << (testdata.exists() ? script : QLatin1String("data/dummytest")) << "-scriptopts" << "play,testerror,exitoncomplete,exitonfailure" << file; QProcess p; |