diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-07-10 16:23:06 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2018-07-20 15:55:10 +0000 |
commit | c298fd7eb0c0c262ee2d03768e7d86bb7a5276a0 (patch) | |
tree | 1b92dcfcd03a0912d8391d017ddd980b54c4281e /tests/auto/qml/debugger | |
parent | e2d52543aaf600ce88df457008a0ba88444e18fc (diff) |
Tooling: Allow QML preview to change the language
Change-Id: I9afc5a0e1c7807f19dfcca1270267bbf7f718903
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/debugger')
-rw-r--r-- | tests/auto/qml/debugger/qqmlpreview/data/i18n/qml_qt_QT.qm | 0 | ||||
-rw-r--r-- | tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp | 9 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qml/debugger/qqmlpreview/data/i18n/qml_qt_QT.qm b/tests/auto/qml/debugger/qqmlpreview/data/i18n/qml_qt_QT.qm new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/tests/auto/qml/debugger/qqmlpreview/data/i18n/qml_qt_QT.qm diff --git a/tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp b/tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp index 9477603654..2bf11b6f36 100644 --- a/tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp +++ b/tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp @@ -69,6 +69,7 @@ private slots: void error(); void zoom(); void fps(); + void language(); }; QQmlDebugTest::ConnectResult tst_QQmlPreview::startQmlProcess(const QString &qmlFile) @@ -341,6 +342,14 @@ void tst_QQmlPreview::fps() QSKIP("offscreen rendering doesn't produce any frames"); } +void tst_QQmlPreview::language() +{ + QCOMPARE(startQmlProcess("window.qml"), ConnectSuccess); + QVERIFY(m_client); + m_client->triggerLanguage(dataDirectoryUrl(), "qt_QT"); + QTRY_VERIFY_WITH_TIMEOUT(m_files.contains(testFile("i18n/qml_qt_QT.qm")), 30000); +} + QTEST_MAIN(tst_QQmlPreview) #include "tst_qqmlpreview.moc" |