summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* adapt to commit 014c4c63066fd3920594e6a58b02f314b5c88cdfKent Hansen2009-08-041-10/+4
|
* Do not crash if using popContext() while the current context have not been ↵Olivier Goffart2009-08-042-8/+4
| | | | | | pushed Reviewed-by: Kent Hansen
* Implement QScriptEngine::abortEvaluation()Tor Arne Vestbø2009-08-031-1/+0
| | | | | | We store the abort-state in the TimeoutChecker, since that's where we'll mostly access it, but the abort result is stored in the QScriptEngine's d-pointer.
* Implement QScriptEngine::setProcessEventsInterval()Tor Arne Vestbø2009-08-031-2/+1
| | | | | We're using a wrapper around TimeoutChecker, where we re-implement didTimeout() to call processEvents().
* Complete the implementation of QScriptValueIterator with JSCoreBenjamin Poulain2009-08-031-116/+79
| | | | | | | | | | | | | This new implementation of QScriptValueIterator passes all the tests. QScriptValueIterator uses an linked list instead of JSC::PropertyNameArray so the list can be modified by ::remove() and to be able to add internal properties for the strings and arrays. Structure::getPropertyNames() has been modified to not show the property from the prototype. Reviewed-by: Kent Hansen
* QScriptContext::calledAsConstructor also works with non-native functionOlivier Goffart2009-08-031-5/+28
| | | | | | | Use the opcode to see if it was called with op_construct This could also work with native function, but not when they are called with QScriptValue::call() or QScriptValue::construct()
* QScriptValueIterator: fix missing non-enumerable valuesTor Arne Vestbø2009-07-311-2/+2
| | | | | | | | | | Added an extra argument to JSObject::getPropertyNames() that specifies if the non-enumerable properties (those with the DontEnum attribute set) should be included or not. Tried looking at using a unsigned as an attribute-inclusion or exclusion filter, but the semantics of either the calling or the callee code would be very strange so I opted out.
* Basic implementation of QScriptValueIterator with JSCBenjamin Poulain2009-07-311-2/+8
| | | | | Implement the methods to move forward and backward in the list of property.
* update test to match JSC __defineSetter__() behaviorKent Hansen2009-07-301-7/+5
|
* implement QScriptContext::activationObject()Kent Hansen2009-07-302-15/+9
|
* Add QEXPECT_FAILOlivier Goffart2009-07-301-1/+4
|
* Implement QScriptEngine::pushContext end popContextOlivier Goffart2009-07-302-3/+14
| | | | Reviewed-by: Kent Hansen
* make the V8 and Mozilla test suites pass on QtScript JSC back-endKent Hansen2009-07-302-0/+74
| | | | Tag all discrepancies with old back-end as expected failures for now.
* Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Kent Hansen2009-07-3038-201/+641
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qtscript-jsc-backend Conflicts: src/3rdparty/webkit/JavaScriptCore/wtf/Platform.h src/3rdparty/webkit/VERSION src/3rdparty/webkit/WebKit/qt/Api/qwebview.cpp src/script/qscriptbuffer_p.h src/script/qscriptclassinfo_p.h src/script/qscriptecmadate.cpp src/script/qscriptgc_p.h src/script/qscriptmemberfwd_p.h src/script/qscriptsyntaxcheckresult_p.h src/script/qscriptvalueimplfwd_p.h tests/auto/qscriptengine/tst_qscriptengine.cpp util/webkit/mkdist-webkit
| * Compile after API renameVolker Hilsheimer2009-07-291-1/+1
| |
| * Autotest: make tst_qdom work with shadow builds too.Thiago Macieira2009-07-292-23/+27
| | | | | | | | Reviewed-by: Peter Hartmann
| * Port of Qt to QNXHarald Fernengel2009-07-291-1/+1
| | | | | | | | | | | | | | | | This makes Qt work on QNX 6.4. * no q3support, no phonon * no QSharedMemory, no QSystemSemaphore, no QProcess Reviewed-By: Robert Griebl
| * Port of Qt to VxWorksRobert Griebl2009-07-2923-49/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes Qt work on VxWorks 6.6+ in native (kernel) mode. * compiles with the WindRiver GNU toolchain (Linux only) * works with QWS (tested with the VNC driver only) * tested on PPC hardware and the x86 VxWorks simulator * no q3support, no phonon, no webkit * no QSharedMemory, no QSystemSemaphore, no QProcess * only one QApplication instance (flat address space) * filesystem support depends heavily on the quality of the native driver * QLibrary is just a dummy to make plugins work at all * qmake transparently creates VxWorks munching rules for static ctors * made auto-test cope with missing OS features A special note regarding the Q_FOREACH patch for dcc: when calling foreach(a,c) with c being a function returning a container, the compiler would generate 5 references to some labels (.LXXXX), which are not there (so the linker complains in the end). Seems like dcc doesn't really like the 'true ? 0 : <function call to get type>' statement Reviewed-By: Harald Fernengel
| * add more extensive tests for scopechain functionalityKent Hansen2009-07-292-0/+113
| |
| * Ensure hover enter events are dispatched on mouse press.Andreas Aardal Hanssen2009-07-291-0/+69
| | | | | | | | | | | | | | | | | | | | This change ensures that mouse presses received by the scene when there are no current mouse grabbers trigger hover event delivery. This is useful when the scene only receives presses, and no mouse moves (e.g., disabling mouse tracking on the viewport, or on systems where the mouse press is the first received event). Reviewed-by: Michael Brasser
| * Fix remaining autotest failures in tst_QGraphicsWidgetAndreas Aardal Hanssen2009-07-291-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change f68fed3 introduced a few regressions in the QGraphicsWidget autotests. It turned out those autotests relied on behavior that this fix "fixed". The exact bugs were 1) that setting focus on a window or a child of a window that isn't active will automatically give that item focus, despite that its window is inactive (in contrast it should just set up subfocus and give the item focus when the window is activated), and 2) that adding a window to a scene that is active did not immediately activate that window. So one fix in the test and one in QGraphicsScene. The autotests were modified so that the respective tests operate on an active scene (by assigning the scene to an active view). The change in QGraphicsScene ensures that the first window that gets added to an active scene that does not have any active windows already, automatically gets activated. Reviewed-by: Michael Brasser
| * Fixes various db2 autotest issues.Bill King2009-07-291-3/+7
| |
| * Implement new transformation handling for graphics items.Lars Knoll2009-07-293-121/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The idea of having separate rotationX/Y/Z, shearX/Y, etc. methods in QGraphicsItem turned out to be not giving us the flexibility we need and wanted. The new code now implements a different scheme, where we keep simple rotate (around z-axis), scale and transformOriginPoint methods, but remove the other ones. Instead we now have an additional list of QGraphicsTransform object. QGraphicsTransform is an abstract class that inherits QObject. Several specializations are provided and can be used to transform (and through property bindings animate) the item. Reviewed-By: Andreas
| * Added a QVariant testlib toString specialization.Rohan McGovern2009-07-282-2/+64
| | | | | | | | | | | | | | | | If comparing two variants fails, the failure message will now output the type and value of the variants (rather than "Compared values are not the same"). Reviewed-by: Thiago
| * Implement a copy constructor for QXmlParseException to avoid crashes whenVolker Hilsheimer2009-07-281-0/+26
| | | | | | | | | | | | | | | | | | throwing them. Autotest included. Task: 258081 Reviewed-by: Trustme
* | change tests to match JSC behaviorKent Hansen2009-07-291-16/+18
| | | | | | | | | | Also, tag relevant tests as ECMA compliance-related (i.e., cases where the old back-end was ECMA compliant but JSC currently isn't).
* | remove tests for magic __qt_sender__ propertyKent Hansen2009-07-291-9/+1
| | | | | | | | | | | | We decided not to implement this undocumented, silly feature in the new back-end. Using bind() (see examples/script/calculator) is a proper way of doing it.
* | change __defineSetter__() autotest to match JSC behaviorKent Hansen2009-07-291-22/+23
| | | | | | | | | | It's a non-standard extension, so we can live with the fact that JSC semantics are not the same as SpiderMonkey's.
* | change the reserved ECMAScript words autotest to match behavior of JSCKent Hansen2009-07-291-45/+46
| |
* | set calledAsConstructor to true when function is called as constructorKent Hansen2009-07-291-0/+32
| |
* | Enter a scope when enterning a native function.Olivier Goffart2009-07-291-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | so native function that would call engine->evaluate("var b = 'foo'); would not change the global object. The change in qscriptengine.cpp makes sure that the correct scope is used for the execution of QScriptEngine::evaluate. The changes in qscriptfunction.cpp push a new scope for native function calls. We might want to move that into QScriptContext later Reviewed-by: Kent Hansen
* | Merge branch 'qtscript-jsc-backend' of ↵Kent Hansen2009-07-281-7/+0
|\ \ | | | | | | | | | git@scm.dev.nokia.troll.no:qt/qt-webkit into qtscript-jsc-backend
| * | Fix tst_QScriptEngine::automaticSemicolonInsertionOlivier Goffart2009-07-281-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some Semicollon were added at the end of the input while they shouldn't have. Let handle the automatic semicolon insertion by the Parser (as it does already for the normal new lines) Reviewed-by: Kent Hansen
* | | Merge branch 'qtwebkit-4.6-staging' into qtscript-jsc-backendKent Hansen2009-07-28300-167550/+7368
|\ \ \ | |/ / |/| / | |/ | | | | | | Conflicts: src/corelib/tools/qregexp.cpp src/script/qscriptengine.cpp src/script/qscriptvalue.cpp
| * Disable the forwardDeclared1 test with SunCC: it doesn't workThiago Macieira2009-07-281-0/+4
| | | | | | | | | | | | | | | | | | I added this test because I thought that the compiler would find the forward-declarations due to the "one definition" rule. In hindsight, it's not a good idea. Sun CC warns about this, gcc doesn't. With Sun CC, the code leaks, with gcc it doesn't.
| * Make typeToName testcase pass, and add basic test for Math3D classes.Volker Hilsheimer2009-07-271-2/+84
| | | | | | | | Reviewed-by: Trustme
| * Add QGraphicsItem::ItemAutoDetectsFocusProxy and improve subfocus support.Andreas Aardal Hanssen2009-07-271-0/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you set this flag on an item, and descendant item that gains input focus will become this item's focus proxy. This simplifies how focus proxy items are assigned from QML; instead of binding the possible focusProxy property to a named child widget, this assignment happens automatically as you set the focus property of a descendant to true. As part of this change, QGraphicsWidget::focusWidget behavior has been improved and moved into QGraphicsItem. For example, if you set focus on an item that it's part of a scene, it can gain focus once the parent has been assigned (which is how object trees are built in QML). Autotests are included. Reviewed-by: Michael Brasser
| * Using QNetworkAccessManager, so need to pull in QtNetworkVolker Hilsheimer2009-07-252-0/+2
| |
| * Compile from repo checkoutVolker Hilsheimer2009-07-251-0/+2
| |
| * Build without Qt3SupportVolker Hilsheimer2009-07-251-1/+1
| |
| * No link-errors when building from repositoryVolker Hilsheimer2009-07-252-0/+6
| |
| * Fix a running external tests: user program headers must come first.Thiago Macieira2009-07-251-2/+2
| | | | | | | | | | No wonder QT_SHAREDPOINTER_TRACK_POINTERS was having no effect: there was an #include <QtCore/QtCore> before it.
| * Add support for debugging and valgrinding external testsThiago Macieira2009-07-251-10/+74
| | | | | | | | This requires modifying slightl QProcess on Unix to forward stdin too.
| * Apply the script I added to gen.sh to existing files: remove template classesThiago Macieira2009-07-25174-167035/+779
| |
| * Add Perl code to remove template classes from the listing.Thiago Macieira2009-07-251-0/+4
| | | | | | | | | | | | It is possible to export symbols in template classes, but I don't think we use any such cases now (template specialisation). It only works properly with C++0x anyway (extern template).
| * Update the test to work with GCC 4.4 tooThiago Macieira2009-07-251-15/+11
| |
| * Revert "Revert "Add support for creating the object alongside the Data ↵Thiago Macieira2009-07-241-2/+100
| | | | | | | | | | | | | | structure in QSharedPointer"" This restores the original implementation of the creating function. The next commit will make it suitable for use.
| * Make the internal testcase more robust on Windows FS as wellVolker Hilsheimer2009-07-241-0/+5
| |
| * Make test more robust against the case-insensitive file system on Windows,Volker Hilsheimer2009-07-241-0/+6
| | | | | | | | | | | | and link against a regular Qt build. Reviewed-by: Trustme
| * improve qfileinfo autotest a bitRitt Konstantin2009-07-241-13/+29
| | | | | | | | | | | | | | | | add a few more subtests; fix fileTimes_oldFile test for non-UTC time Merge-request: 966 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>