diff options
author | Rafael Roquetto <rafael.roquetto.qnx@kdab.com> | 2012-03-26 18:55:58 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-20 16:32:24 (GMT) |
commit | 8599a0e6397391634ee52197e164f6b7121f9a4d (patch) | |
tree | 16a88bbe99f83ec30358e107cfb20004a395ed19 /tests/auto/qcoreapplication | |
parent | 2e897ab99413bb1e4fd3f057f431785e3ac7abb0 (diff) | |
download | Qt-8599a0e6397391634ee52197e164f6b7121f9a4d.zip Qt-8599a0e6397391634ee52197e164f6b7121f9a4d.tar.gz Qt-8599a0e6397391634ee52197e164f6b7121f9a4d.tar.bz2 |
Moved qmljs_debug_arguments to QCoreApplication
Enable the use of the QML debugger without QtGUI
Based on Qt5's 9a096d9e.
Change-Id: If97502bc5367e0faadfaf3bbe70b0c89ef2c75c2
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/qcoreapplication')
-rw-r--r-- | tests/auto/qcoreapplication/tst_qcoreapplication.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qcoreapplication/tst_qcoreapplication.cpp b/tests/auto/qcoreapplication/tst_qcoreapplication.cpp index 24bce0a..533a3b8 100644 --- a/tests/auto/qcoreapplication/tst_qcoreapplication.cpp +++ b/tests/auto/qcoreapplication/tst_qcoreapplication.cpp @@ -144,6 +144,14 @@ void tst_QCoreApplication::argc() QCOMPARE(argc, 0); QCOMPARE(app.argc(), 0); } + + { + int argc = 2; + char *argv[] = { "tst_qcoreapplication", "-qmljsdebugger=port:3768,block" }; + QCoreApplication app(argc, argv); + QCOMPARE(argc, 1); + QCOMPARE(app.argc(), 1); + } } class EventGenerator : public QObject |