aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/debugger
Commit message (Collapse)AuthorAgeFilesLines
* Rename QDeclarative symbols to QQuick and QQmlMatthew Vogt2012-02-2442-5960/+0
| | | | | | | | | | | | | Symbols beginning with QDeclarative are already exported by the quick1 module. Users can apply the bin/rename-qtdeclarative-symbols.sh script to modify client code using the previous names of the renamed symbols. Task-number: QTBUG-23737 Change-Id: Ifaa482663767634931e8711a8e9bf6e404859e66 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* DebugMessageService: Remove unneeded dataAurindam Jana2012-02-221-6/+3
| | | | | | | Do not send version info of QMessageLogContext. Change-Id: I32dd4a548ee2b918e5d04dcdffd4d5545fd2f54f Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* DebugMessageService: Also pass Debug Context InfoAurindam Jana2012-02-211-5/+31
| | | | | | | | Use QMessageHandler which provides context information such as line, file and function for the debug output. Change-Id: I475faf4a1363d8419dec910b8a23cc44666c1908 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* v8profiler: Actually submit dataKai Koehne2012-02-212-25/+41
| | | | | | | Fix regression introduced in 82dfecab3. Change-Id: Icd90c483b9b2fde8d4cf522f3a35368cd395b120 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* DeclarativeEngineDebugService: Fix CrashAurindam Jana2012-02-211-0/+7
| | | | | | | | Iterate through contents of QVariantMap to convert QObjects to streamable type. Change-Id: I2cb64a84aef674904de43f9a0c0fee539b87a59a Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Console API: Pass context information from js to qt logging frameworkKai Koehne2012-02-201-27/+3
| | | | | | | | Log the file, line, function context from the original calls in js. Also print the stack trace as part of one multi-line message. Change-Id: I53836df081f3ce06e9b52ebb647ba172ff6bdbef Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Stabilize test.Michael Brasser2012-02-201-4/+4
| | | | | Change-Id: I5b4c4298653186216e6e093ce3194cfde0cd51b9 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Debugger: Rename QDeclarativeDebugTrace to QDeclarativeProfilerServiceKai Koehne2012-02-105-53/+53
| | | | | | | | This avoids naming confusion with QDeclarativeTrace + makes it in line with QV8ProfilerService. Change-Id: Ifd801655044cff3ffdb2a9695ffc9868eeb51663 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Debugger: Consistenly use 'state' instead of 'status'Kai Koehne2012-02-1010-67/+67
| | | | | | | | | Fix inconsistent naming e.g. in QtDeclarativeEngineDebug by always using 'state' instead of 'status'. This is in line with the other source code, which also seems to favor 'state'. Change-Id: I65a7a3bd0eb7dfffeb37b5f8dad15b0a4a78de70 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Debugger: Allow trace service to send data on exitKai Koehne2012-02-094-15/+72
| | | | | | | | Add a statusAboutToBeChanged virtual that allows services to send data e.g. on application exit. Change-Id: I28fa513ab2a12d6973c444aac3062d64a0957207 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Remove QtQuick1 elements from qtdeclarativeMatthew Vogt2012-02-033-9/+2
| | | | | | | | QtQuick1 is now contained in a separate repository. Task-number: QTBUG-23737 Change-Id: I09eae67af5693a22b896b916f816f73ccc3a89b1 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Debugger Test Case: Fix failuresAurindam Jana2012-02-021-10/+11
| | | | | | | | | Fix test cases related to verifying debug messages. Task-number: QTBUG-23977 Change-Id: Ieab6a5975bff1ef7fcee3eb1befe0c544a63ea1f Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Revert "Mark tst_qdebugmessageservice as insignificant until it passes again"Alan Alpert2012-02-021-2/+1
| | | | | | | | This reverts commit 27427efbb9c898b08de92e6b0a1b4d890fcdcabc, as it passes again. Change-Id: Ie05729c024c748ff5c4c58c143ee8601f7c466c2 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* QmlProfiling: don't send v8 data if not profilingChristiaan Janssen2012-02-021-2/+7
| | | | | | Change-Id: I41085ed06bcf28e9de0a72f25076b91b9a3b2aea Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Mark tst_qdebugmessageservice as insignificant until it passes againAlan Alpert2012-02-011-1/+2
| | | | | | | Task-number: QTBUG-23977 Change-Id: I1dbbad33788b3a52866fc4b48c96152a8c93f280 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-3024-24/+24
| | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: If39bd256b0fa85eba17ea30f8ab87ea27d758908 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix breakage due to meta-type id reordering in qtbaseKent Hansen2012-01-261-1/+1
| | | | | | | | | | | | | | | Commit aee1f6cc413f56bf4962324799ee3887c3dd037f in qtbase changed the order/IDs of the "extended" meta-types, so that they are not bigger than QVariant::UserType (127) anymore. This caused autotests in qtdeclarative to assert/fail. Ths commit adapts the logic in qtdeclarative accordingly, in particular so that QVariant/QObjectStar aren't treated as value types. Change-Id: I3e6c0b2c9fb04bfd7f7fd94da2741f9536229b87 Reviewed-by: Kai Koehne <kai.koehne@nokia.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
* tst_qdeclarativedebugjs: Use new QJSValue::call() overloadKent Hansen2012-01-251-66/+65
| | | | | | | | | | | | | | The old QJSValue::call() function that takes a this-object as the first argument is going away. The new overload simply takes a list of arguments, so that the "dummy" this-object doesn't have to be explicitly passed. The new function callWithInstance() can be used to call a function where you want to use a specific this-object. Change-Id: I2d9bd79f8e5d00a2b89568171ccc5ffcee52686c Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* tst_qdeclarativedebugjs: Don't use QJSValue::isValid()Kent Hansen2012-01-251-16/+16
| | | | | | | | | The QJSValue::isValid() function is being removed. !value.isUndefined() can be used to check if a value is defined. Change-Id: I91e96bb7f76a5c31edaa409aaf4a1b1fffbc5317 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Console API: Add console.countKai Koehne2012-01-242-9/+40
| | | | | | | | console.count can be handy to check how often code snippets are executed. Change-Id: I0eaf17ab893c76e7b8956122aa31e218745e92bf Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-2324-24/+24
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I6a730abc0c396fb545a48b2d6938abedac2e3f1c Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Debugger: Simplify protocol of QDebugMessageServiceKai Koehne2012-01-171-8/+2
| | | | | Change-Id: I3f97a344b8d0e0d73a75e84310c1e8ed59573ee7 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Update copyright year in Nokia copyright headers.Jason McDonald2012-01-172-2/+2
| | | | | | | | Update copyright headers from before 2011, and a couple of new ones that were merged after the previous change to copyright headers. Change-Id: Ia76e08e2734afa4ef3f1207dbcda5ff3bc81b366 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Console API: Autotest reshufflingKai Koehne2012-01-162-10/+41
| | | | | | | | | Move the console tests from qdeclarativeqt to qdeclarativeconsole, and the test for the QML_CONSOLE_EXTENDED property to debugger/qdebugmessageservice. Change-Id: I704bd0a4a28aa1b0eb51df67d32fd6865b114d41 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* QDeclarativeDebug: Add a debug message service.Aurindam Jana2012-01-094-1/+260
| | | | | | | | | | | QDeclarativeDebugMsgService installs a QtMsgHandler which forwards debug output to a client defined port only if the service is Enabled. It also forwards the debug output to the previous message handler. Effectively, this service just eavesdrop on debug output, forwarding it to a port only if a client is connected. Change-Id: Ie0ee7bab57ef8f03a2de34d91921f054a7ec147f Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Skip unreliable autotestAaron Kennedy2012-01-051-0/+4
| | | | | | Task-number: QTBUG-23475 Change-Id: I2c500f24a307574b88357a9f128d4ff0a1b8eb91 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-0522-22/+22
| | | | | Change-Id: I0a8d99909cac867dce72da70b1bbcb649989a51b Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix test failures with shadow builds.Andrew den Exter2012-01-033-14/+12
| | | | | | | | | | QFINDTESTDATA uses __FILE__ to determine the source directory, which means it finds the wrong source directory when the macro is used from a shared base class. Define the correct source directory in a pri file and include that wherever QDeclarativeDataTest is used. Change-Id: If3ef435f4bb3049733f49402338303c8b440f1fa Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* QDeclarative tests: Introduce base class for data tests.Friedemann Kleint2011-12-216-14/+20
| | | | | | | | | | | | | | | | | In tests/auto/shared/util.* replace macros/find functions by a base class QDeclarativeDataTest with accessors for the data directory helper functions to create URLs from it. The class relies on QFINDTESTDATA, which is the standard way of locating test data. Using the class should reduce the number of calls to QFileInfo.exists(), etc significantly. In addition, provide utility functions for messages. Reviewed-by: Michael Brasser <michael.brasser@nokia.com> Change-Id: Id2beacb157922ee9412f9e45cf9695cec1f8379a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* DeclarativeDebug: Add version info to service pluginsAurindam Jana2011-12-165-26/+16
| | | | | | | | Send the version info of each plugin alongwith the plugin names to client. Change-Id: I223689b32cdc5b0c48a4f508330033352b427937 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QV8DebugService: add version commandAurindam Jana2011-12-151-0/+21
| | | | | | | Version command to retrieve debugger version info. Change-Id: I711e2a3d639c648cef50498fe5bbb9b6b8c6c1fe Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QV8DebugService: Add breakaftercompileAurindam Jana2011-12-141-0/+28
| | | | | | | | Add breakaftercompile command that will set the v8::DebugBreak() whenever a new script is compiled. Change-Id: Id9027066826b6de621058d3170fa628463ef0152 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QV8DebugService: Simplify the service codeAurindam Jana2011-12-1412-336/+777
| | | | | | | | | Removed all parsing functionality. The service only acts as a delegate to v8 debugger. Apart from that, it calls the v8 debug static APIs when requested by client. Change-Id: I2917c2d080e5b409a4b5f39d386279c33634cade Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QV8Engine: Console APIs, Extend functionalityAurindam Jana2011-12-141-0/+3
| | | | | | | Added console.trace, console.profile, console.profileEnd. Change-Id: Icc38ddd550989eaba0085ece120695a13ec17322 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QmlProfiler: stream snapshots to reduce memory footprintMikko Harju2011-12-121-1/+24
| | | | | | | | | | Taking a V8 heap snapshot with QV8ProfilerService created multiple copies of the snapshot data, causing overhead of several megabytes. This patch changes the snapshot protocol to stream the contents over the debugger connection. Change-Id: I90054210233d52dd02aa838201f9b024d578fcea Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Debugger: Run js autotests with QML_DISABLE_OPTIMIZERKai Koehne2011-12-083-0/+12
| | | | | | | That's how you'd usually debug your app too. Change-Id: I5acbf2fea0db3cb8593d690638f90ec849cf316a Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Debugger: Fix compilation warning in autotestKai Koehne2011-12-061-2/+2
| | | | | Change-Id: I84c058a3cc8808d2da94ae6cb63815cd436bb8b8 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* test/debugutils: Add include guard.Friedemann Kleint2011-12-062-6/+10
| | | | | Change-Id: I3d65569851169ce4aa350b0268ec5ca1c516613e Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Say hello to QtQuick moduleKent Hansen2011-12-028-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change moves the QtQuick 2 types and C++ API (including SceneGraph) to a new module (AKA library), QtQuick. 99% of this change is moving files from src/declarative to src/quick, and from tests/auto/declarative to tests/auto/qtquick2. The loading of QtQuick 2 ("import QtQuick 2.0") is now delegated to a plugin, src/imports/qtquick2, just like it's done for QtQuick 1. All tools, examples, and tests that use QtQuick C++ API have gotten "QT += quick" or "QT += quick-private" added to their .pro file. A few additional internal QtDeclarative classes had to be exported (via Q_DECLARATIVE_PRIVATE_EXPORT) since they're needed by the QtQuick 2 implementation. The old header locations (e.g. QtDeclarative/qquickitem.h) will still be supported for some time, but will produce compile-time warnings. (To avoid the QtQuick implementation using the compatibility headers (since QtDeclarative's includepath comes first), a few include statements were modified, e.g. from "#include <qsgnode.h>" to "#include <QtQuick/qsgnode.h>".) There's a change in qtbase that automatically adds QtQuick to the module list if QtDeclarative is used. Together with the compatibility headers, this should help reduce the migration pain for existing projects. In theory, simply getting an existing QtDeclarative-based project to compile and link shouldn't require any changes for now -- but porting to the new scheme is of course recommended, and will eventually become mandatory. Task-number: QTBUG-22889 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Change-Id: Ia52be9373172ba2f37e7623231ecb060316c96a7 Reviewed-by: Kent Hansen <kent.hansen@nokia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
* Remove debuggingAaron Kennedy2011-12-011-3/+0
| | | | | Change-Id: Ib672ae608446acb1ddf7df8354fb7ae051b9e834 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Debugger autest: Don't show debugee output for expected failuresKai Koehne2011-12-011-1/+2
| | | | | Change-Id: Ifd068f8c680dcde7bf9c2e078e13eeee1bcba552 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Debugger: Disable breakpoint relocation in JSKai Koehne2011-11-291-5/+7
| | | | | | | | | Because we pass scripts lazily to v8, breakpoints can be relocated to lines unexpected to the user. Therefore disable breakpoint relocation alltogether for the time being. Change-Id: I34b4b9b1267270014c3a17cb6cad1e3c7eded074 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* qdeclarativedebugclient: Fix flaky autotestKent Hansen2011-11-281-1/+1
| | | | | | | | | The connectToHost() call can try to establish the connection directly (synchronously), in which case the warning message will be output before the subsequent ignoreMessage() call, causing the test to fail. Change-Id: I08a6a7d4d090cbb942c348e0787b586c71318f99 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Debugger: Extend v8 debugger autotestsKai Koehne2011-11-233-49/+179
| | | | | | | | Add a few test cases for attaching to a non-blocking process (using the new timer.qml test file). Change-Id: I480fb358411b5b19e22bc9875e1809f1faad5514 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Debugger: Re-enable autotests for v8 debuggerKai Koehne2011-11-232-2/+1
| | | | | | | The crash in getScopes has been fixed in qtbase (commit ecd31946789) Change-Id: I853d2567701ac986b30fc9013dac4c05eb450c9a Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Debugger: Make registration of services explicitKai Koehne2011-11-232-3/+3
| | | | | | | | | | Services now have to call registerService() themselves in the constructor. This fixes a race condition where the empty implementation of messageReceived() was called instead of the one in the subclass because the object wasn't fully constructed yet. Change-Id: I590ec8b76e906bdb6b5cdcb18680938edde283ee Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Debugger: Move server into it's own threadKai Koehne2011-11-222-9/+23
| | | | | | | | | | | | | | So far the debugger infrastructure was running in the GUI thread, which required e.g. nested event loops to implement blocking behavior. The server and networking code are now running in their own thread, while the services are still running in the main thread. Because v8 isn't thread safe, we're adding two new JSEngines + isolates to qv8debugservice: One to decode JSON messages in the debugger thread, and one in the GUI thread. Change-Id: I746f5e203968f7bcc510fb66118c88ef0fd0cd14 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Debugger: Fix Qt library dependencies for autotestsKai Koehne2011-11-219-10/+9
| | | | | | Change-Id: Icf5465a60c7b76d5b80d0ecb40a2bd7eaa2a3689 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Debugger: Fix QDeclarativeDebugTrace autotestKai Koehne2011-11-211-3/+3
| | | | | Change-Id: Ic17c42b6a6e388b92729fd2f653515b714f765b0 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Rewrite signal handlers at compile time.Michael Brasser2011-11-201-2/+11
| | | | | | | Task-number: QTBUG-22726 Change-Id: If2c3c00c646b2ed6b6899573a0b487c8deeaad3f Reviewed-by: Kai Koehne <kai.koehne@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>