summaryrefslogtreecommitdiffstats
path: root/tests/auto/qcoreapplication
diff options
context:
space:
mode:
authorRafael Roquetto <rafael.roquetto.qnx@kdab.com>2012-03-26 11:55:58 -0700
committerQt by Nokia <qt-info@nokia.com>2012-04-20 18:32:24 +0200
commit8599a0e6397391634ee52197e164f6b7121f9a4d (patch)
tree16a88bbe99f83ec30358e107cfb20004a395ed19 /tests/auto/qcoreapplication
parent2e897ab99413bb1e4fd3f057f431785e3ac7abb0 (diff)
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.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qcoreapplication/tst_qcoreapplication.cpp b/tests/auto/qcoreapplication/tst_qcoreapplication.cpp
index 24bce0a607..533a3b8696 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