aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/debugger
Commit message (Collapse)AuthorAgeFilesLines
* Support JS Array.sort() function for sequence wrappers.Glenn Watson2012-08-081-1/+1
| | | | | | | | | | | | | | The V8 natve sort implementation calls some functions that are incompatible with the way sequence wrappers work. In particular, it calls an internal length() function which does not pass through the length accessor provided by sequence wrappers, so the sort function always thinks the array is zero length. Instead, clone the array prototype and override the sort function with one that is specific to sequence wrappers. Task-number: QTBUG-25269 Change-Id: Ic83b9ee0bd3a0707e512f28057f0f99b432fded4 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Set the Qt API level to compatibility mode in all tests.Thiago Macieira2012-08-0110-0/+10
| | | | | | | | | | Qt 5.0 beta requires changing the default to the 5.0 API, disabling the deprecated code. However, tests should test (and often do) the compatibility API too, so turn it back on. Task-number: QTBUG-25053 Change-Id: I6988c2360e9d88916311374a0c910bfc5b607439 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Don't provide typehint in QQmlExpression::evaluate()Chris Adams2012-07-111-2/+2
| | | | | | | | | | | | Previously, the result returned by QQmlExpression::evaluate() was converted from the actual JavaScript result with a default typehint of QList<QObject*>. This commit removes that typehint so that the engine's conversion code will choose the most appropriate return type for the result JavaScript value, instead. Task-number: QTBUG-17082 Change-Id: I368a018b235e9e001b1b92db3699de377748b74f Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Do not depend on indirect inclusions: #include and forward-declareThiago Macieira2012-06-271-0/+1
| | | | | | | | | | | QObject is now no longer indirectly included by qpair.h, so let's make sure it's forward-declared before use. qpair.h also no longer includes qdatastream.h, so #include "qdatastream.h" before using QDataStream. Change-Id: I698b905cb55d9dce0637f534dc5efeffe5ff882e Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Fix compilation with GCC 4.7 (C++11)Thiago Macieira2012-06-234-6/+6
| | | | | | | | The error was: error: unable to find string literal operator ‘operator"" STR_PORT’ Change-Id: Id4b4e64e296ffc3624be15c20f74a964e6cd1087 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
* Add gui-private to testsGirish Ramakrishnan2012-06-2210-10/+10
| | | | | | | QWindowSystemInterface will be marked as QPA API. Change-Id: Id174a24f8432219adf1425efe1eb59cf67d48bb9 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Fix warnings in declarative tests.Friedemann Kleint2012-06-201-1/+1
| | | | | | | | | | | | - Unused variables and test data. - () around operator &&. - Conversion of false to 0-pointer where QVariant was intended. - Missing enumeration value. - Remove duplicated qqmlecmascript entry from qml.pro (has an internal check for no-widgets). Change-Id: Ie030167e22bce26e3988a4406c630fb460f61a3c Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Debugger: Clearing the ObjectReferenceHashSimjees Abraham2012-05-3013-76/+391
| | | | | | | ObjectReferenceHash is cleared when the Qml file is reloaded. Change-Id: I78da1d88cce2f04fe820f3af14b047cd562e90ed Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* QQmlEngineDebugService: Property Data of type QVariantAurindam Jana2012-05-251-0/+3
| | | | | | | Send property data of type QVariant to the client. Change-Id: I5a18da18f1347935e4ccaafb05e3a877e73bbede Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Debugger: Removing the deleted objects from objectReferenceHashSimjees Abraham2012-05-241-0/+64
| | | | | | | | | | The invalid entries from objectReferenceHash in QQmlDebugService is removed once the Qml object is destroyed. Task-number: QTCREATORBUG_7451 Change-Id: I8d2ccafe81a811ea319f13fd99fbde3c13e6b2be Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Removed CONFIG+=parallel_test from suspected parallel-unsafe testsRohan McGovern2012-05-226-12/+0
| | | | | | | | These tests have failed a parallel stress test and may contribute to instability in test runs. Change-Id: I8d82e9df7df6cac374b8b2eda43de8e96b676972 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Qml : Resetting binding correctedSimjees Abraham2012-05-211-15/+46
| | | | | | | | | Resetting the binding for property corrected in case the property is nested (eg: font.bold) Task-number: QTCREATORBUG-6294 Change-Id: I39cca54c17860c4e6df1cf864cc2f70214d50c8f Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Inspector:Modified Apply changes on Save for unsync. changesSimjees Abraham2012-05-142-2/+50
| | | | | | | | | | Changes done to reload the view if the user opts to do so after making unsynchronizable changes. Inspector informs the QmlEngine about the changes which caches it. The cache is used to load the files which were changed when reloading the view. Change-Id: I22d476cace294d6ecf4e428dac104a557c3f7dde Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Removed CONFIG+=parallel_test from parallel-unsafe testsRohan McGovern2012-05-141-2/+0
| | | | | | | | These tests are marked with CONFIG+=parallel_test, but are observed to fail sometimes if run concurrently with other tests, and pass otherwise. Change-Id: Id59209ca80c7449bdc0689af522c82ff00c4b588 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* QQmlDebugService: Fetch Objects for location infoAurindam Jana2012-05-123-0/+134
| | | | | | | | Fetch Objects for given filename, line number and column number. Change-Id: I9a81e4c7fa75faaf87f02453026c5320b7f86003 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QQmlEngineDebugService: Query ExpressionAurindam Jana2012-05-093-1/+72
| | | | | | | | If the scope object is null or if there no QML context for the scope object, try to use the root context of the engine. Change-Id: I0068ea36f18a179b44791b81a2f6b8ec5423f615 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Set test data directory correctly for QML profiler testsMartin Jones2012-05-092-2/+2
| | | | | Change-Id: I52f41aacb2963699394dc3ea22d6a4723b189a87 Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
* QQmlInspector: Use qmlscene in auto testsAurindam Jana2012-05-046-113/+19
| | | | | Change-Id: I2f265409439183861c0d6d164247348db6097cb3 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Change uses of {to,from}Ascii to {to,from}Latin1Thiago Macieira2012-05-042-2/+2
| | | | | | | | | | This operation should be a no-op anyway, since at this point in time, the fromAscii and toAscii functions simply call their fromLatin1 and toLatin1 counterparts. Task-number: QTBUG-21872 Change-Id: I03084595ddc425a988374b8352fd23e9504ffba6 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* QmlDebugJS: Re-enable autotest on macAurindam Jana2012-04-261-4/+0
| | | | | | | | Execute getScripts() which was previously skipped. Task-number: QTBUG-23475 Change-Id: I8e64b112fe6fa2d032b386f477594c3c21286431 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Debugger: Re-enable autotest on macKai Koehne2012-04-261-1/+0
| | | | | | | | Remove insignificant test after recent changes. Task-number: QTBUG-25288 Change-Id: I4ec6237ede78dee4f362abe3135fcec32031fb75 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* QmlDebugging: Exchange supported QDataStream versionsAurindam Jana2012-04-263-5/+72
| | | | | | | | | Since the client and service needs to pack/unpack datastreams, they need to encode/decode using the lowest common QDataStream version. Change-Id: I3b4886fece59b24950ba618da07a0fefd41a5637 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Debugger: Change name and protocol of QDeclarativeObserverModeAurindam Jana2012-04-251-21/+25
| | | | | | | | | Rename QDeclarativeObserverMode to QmlInspector service. This is because the current protocol has been changed completely and just a version change is misleading. Change-Id: I3b72f081f6ab77eac474dcef7a84375ef69e20dc Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Debugger: Fix warnings about declarative_debug in autotestsKai Koehne2012-04-257-7/+13
| | | | | | | declarative_debug is deprecated and will be removed eventually. Change-Id: I1f5a61c91c25e37ff39e9154bcaa3cd74d60e109 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Debugger: Improve output of autotestsKai Koehne2012-04-259-50/+101
| | | | | Change-Id: Ib938d2f39d8a0928c257ef923df5d5fcfa85c4cf Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Debugger: Make sure stateChanged is called from debugger threadKai Koehne2012-04-243-2/+18
| | | | | | | | | | Make sure stateAboutToBeChanged(), stateChanged() is always called from the debugger thread. This matches how messageReceived() is called. On exit, run an event loop until all stateAboutToBeChanged calls have returned. Change-Id: I9cd6199cc80552ad97e4b7d504ea91aa116a6a34 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Debugger: Improve autotest output on failureKai Koehne2012-04-203-19/+53
| | | | | Change-Id: Ia463b198b5d6dac8e480d141412cb4475e54d204 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* QV8DebugService: v8::AfterCompile EventsAurindam Jana2012-04-172-30/+9
| | | | | | | | Do not send v8::AfterCompile events. This speeds up the debugger. Change-Id: I84f5d90e24878af42d514e5d26c9e051502605f6 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Compile fix for qqmldebugservice testGirish Ramakrishnan2012-04-171-0/+1
| | | | | Change-Id: I8efd3686521c3221be79f5bbf5e28a8ef2bb4e19 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* test: marked tst_qv8profilerservice as insignificant on macRohan McGovern2012-04-131-0/+2
| | | | | | | | | This autotest has repeatedly given different results on consecutive test runs. It seems to fail about 5% of the time in CI. Task-number: QTBUG-25288 Change-Id: If7e8675521f6270877f514b7de81c926606cf232 Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* irrelevant qDebug removedSimjees Abraham2012-03-301-3/+0
| | | | | | | | syncing debugutil with the change done to remove the irrelevant qDebug at stat of debug session. Change-Id: I17520319684e6e213037b09550d1a97b493150cd Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* irrelevant qDebug removedSimjees Abraham2012-03-303-5/+0
| | | | | | | | Irrelevant debug statement which gets printed at start of debug session is removed. The same is removed in Auto-tests as well. Change-Id: If8f44950952f08b55ff884c1fe42670108e2369d Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Debugger: Fix v8profiler failures on macKai Koehne2012-03-302-16/+13
| | | | | | | Make the test more robust. Change-Id: Id4e5d25e9f9cb0bdbe14670a060d7348bceeb823 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* QmlDebugging: Send parent debug id with object infoAurindam Jana2012-03-291-1/+3
| | | | | Change-Id: Ic197656b90a309d1d9e72b9d6648fee86164c3e1 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Use minimal javascript expression for bound signalsChris Adams2012-03-291-1/+1
| | | | | | | | | | | Previously, QQmlBoundSignal used QQmlExpression internally. This commit adds a new, more optimal QQmlJavaScriptExpression subclass specifically designed for QQmlBoundSignal, and converts the code to use it instead of QQmlExpression where appropriate. Task-number: QTBUG-24460 Change-Id: I2865a119ce840235e27a7722d8052ca61c265f69 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Remove QObject parenting from QQmlAbstractBoundSignal.Michael Brasser2012-03-261-9/+2
| | | | | Change-Id: If549cf57bbac18a986a2a0e63fdc76902d2dae43 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Use QQmlAbstractBoundSignal where appropriate.Michael Brasser2012-03-261-3/+3
| | | | | | | Prepare for the addition of another subclass. Change-Id: I340f735503e661d9d735f3316a065f807294921b Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* QmlEngineDebug: Simplify the utility classesAurindam Jana2012-03-194-1747/+776
| | | | | Change-Id: Ie0e1b6e9edd6a09fef565635cc793f8bdb6c42e7 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QmlEngineDebug: Rename to QmlEngineDebugClient in AutoTestAurindam Jana2012-03-195-174/+136
| | | | | Change-Id: If20b53d2e47cdc4ed54df0d9360ae1b0566489c6 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Debugger: Always disable v4 optimizer if v8 debugger is activatedKai Koehne2012-03-192-4/+24
| | | | | | | Don't rely on QML_DISABLE_OPTIMIZER environment variable being set. Change-Id: Ib1a9d83eb9698adcd3c9a5bbcc74cba382836078 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* QmlEngineDebugService: Rename service to QmlDebuggerAurindam Jana2012-03-191-4/+10
| | | | | | | | Rename service from QDeclarativeEngine to QmlDebugger. Send a response for each query. Change-Id: I01cfeaf3e4116bfd7029d170ee228c159973947c Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Debugger: Add optional 'host' argument to -qmljsdebuggerSimjees Abraham2012-03-191-1/+1
| | | | | Change-Id: I5bb2e48e2ad2019b8a92f6f8842b88027fcd2d28 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QmlDebuggingTests: Separate out public and private testsAurindam Jana2012-03-1923-156/+321
| | | | | | | | | Remove dependencies on quick-private from all possible debugging auto tests and list them under public tests. Change-Id: I688b5b36fdf3d6fbcb6cef2a975ecd1bf679af2b Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Make qqmlinspector test work on WindowsCharles Yin2012-03-192-0/+5
| | | | | Change-Id: Ib7399f9a005d3674fcb46c605cea3a8d40c21284 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* QmlDebugging: Object Tree and States ListAurindam Jana2012-03-191-13/+16
| | | | | | | | | All created instances are stored under the root context. Check for the creation context of the object when building up the tree. Do the same when building up the states list. Change-Id: I8716d9966a61b8f7cb3ad4b7ab5acd4c94b4cd03 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Debugger: Print informational messages via qDebugKai Koehne2012-03-143-7/+7
| | | | | | | This allows users to use QT_FATAL_WARNINGS. Change-Id: I114825764c841030418c956d23575159157dfd69 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Debugger: Fix autotest for shadow buildsKai Koehne2012-03-142-2/+1
| | | | | Change-Id: I1b53afeb2a9f0d6e571c5ed87304e85896523488 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Debugger: Fix autotests on WindowsKai Koehne2012-03-142-16/+16
| | | | | | | | Remove export macro logic for internal classes. Change-Id: I4dfa7f8e7bc9b5086e01e40342bd00812d5966bd Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* QmlDebugging: Modify test JSDebug test casesAurindam Jana2012-03-131-4/+12
| | | | | | | | Add signals that are emitted on debugger responses for flaky auto tests. Change-Id: Ic59f559083b2b19fb8eec920dcb76f23125639a8 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Remove unneeded dependencies to QtWidgets and QtOpenGLLars Knoll2012-03-121-1/+1
| | | | | Change-Id: I43bb54524f5786a838073df8812107dda7b0d56e Reviewed-by: Kent Hansen <kent.hansen@nokia.com>