aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/debugger/qdeclarativedebugjs
Commit message (Collapse)AuthorAgeFilesLines
* Rename QDeclarative symbols to QQuick and QQmlMatthew Vogt2012-02-2413-2408/+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>
* Debugger: Consistenly use 'state' instead of 'status'Kai Koehne2012-02-101-4/+4
| | | | | | | | | 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>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-3012-12/+12
| | | | | | | | | | 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>
* 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>
* Update obsolete contact address.Jason McDonald2012-01-2312-12/+12
| | | | | | | | 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>
* 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-0512-12/+12
| | | | | Change-Id: I0a8d99909cac867dce72da70b1bbcb649989a51b Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix test failures with shadow builds.Andrew den Exter2012-01-031-5/+4
| | | | | | | | | | 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-212-6/+8
| | | | | | | | | | | | | | | | | 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-161-21/+0
| | | | | | | | 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>
* Debugger: Run js autotests with QML_DISABLE_OPTIMIZERKai Koehne2011-12-081-0/+3
| | | | | | | That's how you'd usually debug your app too. Change-Id: I5acbf2fea0db3cb8593d690638f90ec849cf316a Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Say hello to QtQuick moduleKent Hansen2011-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* 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>
* 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: Fix Qt library dependencies for autotestsKai Koehne2011-11-211-1/+1
| | | | | | Change-Id: Icf5465a60c7b76d5b80d0ecb40a2bd7eaa2a3689 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Debugger: Fix warnings about QProcess still running in autotestKai Koehne2011-11-171-2/+6
| | | | | Change-Id: Ib0c68629cfe430a0d13b1504f86bfa78e85007b4 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Debugger: Print debuggee output for failing v8 autotestsKai Koehne2011-11-161-0/+11
| | | | | Change-Id: I80f963042f0d2e30f5a715fca3b60a66751efbb4 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Debugger: Fix autotest for calling v8::gc()Kai Koehne2011-11-161-1/+1
| | | | | Change-Id: Iae47c16adf417b8ac74b36cffcdb076201e81b82 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Make compile and pass CI tests.Michael Brasser2011-11-112-6/+6
| | | | | Change-Id: Ie2ec20d9e346ccaf698762d6abf0224c39fb3490 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Debugger: Add autotest skeleton for inspector serviceKai Koehne2011-10-241-102/+5
| | | | | Change-Id: I2edd0d46f9b82262b91833945515374b9683be4b Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Remove QtScript dependency from autotestKent Hansen2011-10-241-1/+1
| | | | | Change-Id: Icb6aaa95d97078101c88d4c4f821f246a98a6ab7 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Remove insignificant test flag.Toby Tomkins2011-10-241-2/+0
| | | | | Change-Id: I1c22b3350add76f97c5268e2f6f2526d818b7556 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Debugger: Make QDeclarativeDebugJS autotest more robust & fasterKai Koehne2011-10-173-18/+36
| | | | | | | | Also compile it by default (again). Change-Id: I04537e29d48cd1918160fe57220eecf1a72a8e66 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com> Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Debugger: Move debugging autotests into own folderKai Koehne2011-10-174-0/+1866
This mirrors the source tree structure and makes it easier to run them all in one go. Change-Id: Ia191790eaec2c409857c41aff479d2ebd144aaf8 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>