aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Merge remote-tracking branch 'origin/stable' into dev" into ↵Simon Hausmann2014-02-181-0/+7
|\ | | | | | | refs/staging/dev
| * Merge remote-tracking branch 'origin/stable' into devSimon Hausmann2014-02-181-0/+7
| |\ | | | | | | | | | | | | | | | | | | | | | Conflicts: src/qml/jsruntime/qv4functionobject.cpp src/quick/scenegraph/coreapi/qsgbatchrenderer_p.h Change-Id: Id164f6c3b45501aa466908659ec4e3b957323753
| | * Disable Flickable tests on Mac OS X.Jani Heikkinen2014-02-131-0/+1
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-36804 Change-Id: I6bff9360d785bd7496131e3b56a24b11871257fe Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
| | * Expose Qt Quick gradient conversion code privately.Mitch Curtis2014-02-121-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rectangle is currently the only item that supports gradients, but other items have been introduced (within Qt Quick Enterprise Controls) which need QQuickGradient => QLinearGradient conversion, and it doesn't make sense to duplicate the gradient stop conversion code. The QQuickGradient and QQuickGradientStop classes need to be privately exported so that modules that use private Qt API can use the classes with quick-private. Change-Id: I8b130ff5384d9481d3f29510b3de61f7d8f775e2 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
* | | [new compiler] Fix error reporting null object group property accessSimon Hausmann2014-02-182-2/+2
|/ / | | | | | | | | | | | | | | The new code path reported line and column, the latter was missing from the old code path and is easily added. Change-Id: I730e56f0fe4e99091dfb10e5f601faf1d3b8949c Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | Prospective iOS build fix for tst_qqmlmodulepluginSimon Hausmann2014-02-161-0/+5
| | | | | | | | | | | | | | Include unistd.h for _PC_CASE_SENSITIVE Change-Id: I0c57d7d84fa4c7379502dbf95fd22476724d5fa3 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
* | Test case for V4 profiler and its adapterUlf Hermann2014-02-133-1/+58
| | | | | | | | | | Change-Id: I64af195a16189cd1306ca80d13c0ef002fa31f59 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | V4 profiler adapterUlf Hermann2014-02-131-4/+8
| | | | | | | | | | | | | | | | This adapter attaches the V4 profiler to the QML profiling infrastructure. Change-Id: Ifaf77a3ba0790bc56d4b155260b0e05593ac799e Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Infrastructure for supporting multiple profilers in qqmlprofilerserviceUlf Hermann2014-02-132-2/+10
| | | | | | | | | | | | | | | | | | The concepts of "global" and "engine" profilers are introduced. Profilers can either be attached to specific QML engines and run in their threads or they can be unspecific global profilers running in arbitrary threads. Change-Id: I3862fc65c07ccb33a1ca08cd2425e4079d3ffc02 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Merge "Merge remote-tracking branch 'origin/stable' into dev" into ↵Simon Hausmann2014-02-1211-15/+120
|\ \ | | | | | | | | | refs/staging/dev
| * | Merge remote-tracking branch 'origin/stable' into devSimon Hausmann2014-02-1111-15/+120
| |\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/qml/compiler/qv4ssa.cpp src/qml/jsruntime/qv4arrayobject.cpp src/qml/jsruntime/qv4context.cpp Change-Id: Ied5b23bec4dc14abe51127c507aed668f855c1e1
| | * Fix memory leak in testFrederik Gladhorn2014-02-111-2/+2
| | | | | | | | | | | | | | | Change-Id: I026ce85a6e593d5eccecdf032ee2f0763a2bef87 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
| | * Fix origin for short reversed item viewsJohn Brooks2014-02-101-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reversed (BottomToTop and RightToLeft) item views would report an impossible positive value for origin when contentHeight < height. The correct value will be effectively equivalent to the position of the footer, and always negative. Match other logic using lastPosition() by negating its value for reversed views. This fixes a bug with content disappearing in a Controls ScrollView on a BottomToTop view. Change-Id: Ieedbb64ce8fc7c0fb36e5256e437ddeb3e757761 Reviewed-by: Martin Jones <martin.jones@jollamobile.com>
| | * Fix exception thrown in slot without Qml EngineSimon Hausmann2014-02-071-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | Don't crash when an exception is thrown in a JS slot but we don't have a Qml engine. Change-Id: I1530d5c1c8cb9b9b33b9fdd0d45639fd4a0516f7 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
| | * [Regression] Fix lazy binding evaluationSimon Hausmann2014-02-063-1/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 04774bb14c81688f86a2b31b8624bde8ebf59062 long time ago introduced the concept of fixed order binding initialization with lazy evaluation, where a bit is reserved for each binding that indicates whether it's been initialized the first time or not. When reading a property on a QObject, we'd check if the corresponding binding for the property has been initialized or not and flush (i.e. execute) the binding if necessary. As part of the V4/V8 clean-up, commit 1eb41200948ab414f1c47d93123b41c547a993df removed the StoreV8Binding instruction, which made the call for setting the this-binding-is-not-evaluated-yet bit. Nowadays we only use StoreBinding, for which this optimization was never implemented (and not needed really). Now that we have a unified JS code path, we need to set the pending binding bit and also make sure that we call flushPendingBinding for any JS side property access (accelerated or not). Also flushPendingBindingImpl had two bugs: * In an attempt of trying to find the binding to flush, it could happen that we'd try to flush a previously destroyed binding (m_mePtr is null), so the b variable would remain the first binding in the object and we'd flush the wrong one (instead of none). Added a missing check to verify that the property index matches. * Also resetting the mePtr must be done through clear(), to ensure that the pointer in bindValues in the VME is also cleared, to avoid re-enabling the same binding again in complete(); Task-number: QTBUG-36441 Change-Id: Icdb0c8fb036051fd5d6c4d33b10cd0c0ed9a9d5c Reviewed-by: Lars Knoll <lars.knoll@digia.com>
| | * Revert "Skip unstable test"Liang Qi2014-02-031-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 8e0c5b59f57b51a0dc80d3d8274202776c6e03df. This test doesn't fail any more. Task-number: QTBUG-23976 Change-Id: I77704e7811c4c335cb5836ba7645a8804c13e12d Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
| | * Fix crash in header when regenerating view.Michael Brasser2014-01-302-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | Unregister for geometry changes before reparenting, as reparenting may trigger those changes. Task-number: QTBUG-36481 Change-Id: Ia94f1f88880b232dd583b7e63e5da73fb338f7c6 Reviewed-by: Martin Jones <martin.jones@jollamobile.com>
| | * Fix leak-on-exit of QSGRenderLoop::s_instanceAlex Montgomery2014-01-282-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | s_instance is created with new and never deleted which causes several destructors to never be called. Task-number: QTBUG-35731 Change-Id: Icccb19186958f8bb74c5fd2b4b41165255debc46 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
| | * V4: Array.push() on QStringList should invoke putIndexed()Alberto Mardegan2014-01-281-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wrapped sequence types should cause putIndexed() method to be called when Array.push() is used. Fix suggested by Simon Hausmann. [ChangeLog][QtQml] Fix JavaScript Array.push() not working on QStringList properties. Task-number: QTBUG-36491 Change-Id: Id04409dd7466a943d8ea8d57cd0514e8de732480 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | | Add Image::mipmap to support mipmapping of images.Gunnar Sletta2014-02-124-0/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | [ChangeLog][QtQuick] New feature: Image.mipmap Task-number: QTBUG-19961 Change-Id: I13acb2408d5b126790adaf9d324ad4beda1e3646 Reviewed-by: Michael Brasser <michael.brasser@live.com>
* | | Disable Flickable tests on Mac OS X.Gunnar Sletta2014-02-121-0/+1
| | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-36804 Change-Id: Ic38e4172f4a6978ad4e9b9a460106cadaaaeff3a Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
* | | Fixed wrong baseline alignment for TextInputJan Arve Saether2014-02-121-0/+91
|/ / | | | | | | | | | | | | | | [ChangeLog][QtQuick][Fixed wrong baseline alignment for TextInput] Task-number: QTBUG-36749 Change-Id: I6920fb0681f30d9e9943d1bd01f76cc3ae204f30 Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* | Add a debug service for controlling qml enginesUlf Hermann2014-02-105-1/+262
| | | | | | | | | | | | | | | | Like this we can control the starting and stopping of qml engines from the client without having to extend each of the other debug services. Change-Id: I5f1c077b6cfa0e628c32e8bcdea2ec053e310509 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Merge "Merge remote-tracking branch 'origin/stable' into dev" into ↵Simon Hausmann2014-02-076-3/+52
|\ \ | | | | | | | | | refs/staging/dev
| * | Merge remote-tracking branch 'origin/stable' into devSimon Hausmann2014-01-266-3/+52
| |\| | | | | | | | | | Change-Id: If45606c96ef130588004598c560aa790373f0a78
| | * Revert "Disable quick autotests on mac until qtbase is fixed"J-P Nurmi2014-01-251-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 08582091059d8ba805487eae5277bc9abdc3d4de. Task-number: QTBUG-35344 Conflicts: tests/auto/auto.pro Change-Id: I9babc27c4c37900dd6603bd603e6bcf9e7f3d61f Reviewed-by: Simon Hausmann <simon.hausmann@digia.com> Reviewed-by: Liang Qi <liang.qi@digia.com>
| | * Revert "Disable gui tests on Mac for now"J-P Nurmi2014-01-252-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 8ed38c70fd29680f7981d9d23581d46cf32139d0. Task-number: QTBUG-35344 Conflicts: tests/auto/auto.pro tests/auto/qml/debugger/debugger.pro Change-Id: I57bec5d7ede879e24ba2b0618333b4e4110c41df Reviewed-by: Simon Hausmann <simon.hausmann@digia.com> Reviewed-by: Liang Qi <liang.qi@digia.com>
| | * Flickable: fix crash in delayed press handlingJ-P Nurmi2014-01-252-0/+36
| | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-31328 Change-Id: Ic87e9b4db09242b49f104a8f38e4e420c62db75c Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Martin Jones <martin.jones@jollamobile.com>
| | * Positioners: fix layout mirroringJ-P Nurmi2014-01-251-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Listen to positioner geometry changes when the _effective_ layout direction is RTL. Task-number: QTBUG-35095 Change-Id: If06955c6bb04e5bed2126b05489229278c192173 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
| | * Mark tst_qquickanimations as insignificant on MinGWJ-P Nurmi2014-01-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | tst_qquickanimations::pathInterpolatorBackwardJump() keeps constantly failing in the CI on Windows MinGW builds. Task-number: QTBUG-29062 Change-Id: I69511f8a45e98061ceb9a0f6782cc57940af3ce4 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
| | * Fix tst_qquickflickable::stopAtBounds()J-P Nurmi2014-01-251-2/+2
| | | | | | | | | | | | | | | Change-Id: I7a6cc8ddb4cb4559498b74839bde57d12a3d68fd Reviewed-by: Lars Knoll <lars.knoll@digia.com>
| | * Revert "Re-enable mac tests"J-P Nurmi2014-01-251-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit cc811f77fc4f48fb696784f0a51042bb736d7071. GUI tests were temporarily disabled on Mac in 8ed38c7 and cc811f7 meant to re-enable them, but in fact removed the GUI tests on every platform. There is still plenty of instability in the tests, so we will first restore GUI tests on non-Mac platforms, and then we'll try to properly re-enable them on Mac, step by step. Change-Id: Ic8ac32386cc9e7c5ea3172751d74138e30fa0fdf Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* | | Skip mysteriously failing test for nowSimon Hausmann2014-02-071-0/+4
| | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-363717 Change-Id: I0085cd7d5bb2b964c8701e061f897926b30cfac0 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* | | Add a test HTTP server as manual test.Friedemann Kleint2014-02-072-0/+132
| | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-36573 Change-Id: Ib930f7c44db4170dfcff30e221c1cc7d94a13de5 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
* | | [new compiler] Fix propagation of imported scripts for anonymous componentsSimon Hausmann2014-02-052-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | We must take the imported scripts from the creation context. Fixes various errors in Qt Quick Controls. Change-Id: I336d8ffa0537cefd4eeac15f98bbf1b0a5c784af Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* | | Fix canvas tests after commit 439f31f128e70ecae16544ee7041695c60e0b2d6Simon Hausmann2014-02-041-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We must make sure that the canvas is created somewhere in the item hierarchy of a scene-graph initialized (thus visible) window. A Window { visible: true } type of item is not sufficient, but we can simply use our testcase as parent/associated item, because that one is equipped with a when: windowShown condition. Change-Id: I67a65208fae1a6fd953493eaa2898a324a6cc917 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
* | | Set breakpoints before connect() in JS debugging unit testUlf Hermann2014-02-041-29/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | connect() starts the JS engine. Any break point set after that may be missed because the engine has already passed its location when the breakpoint request arrives. The problem can easily be visualized by inserting an artificial delay (e.g. sleep(1)) between connect() and setBreakpoint(). I'm also removing a piece of dead code that gets that wrong and has never actually worked. Change-Id: Ie4410ac3eaf89f02993c653b17148c14048652ab Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | | [new compiler] Fix error message when assigning lists to singular propertiesSimon Hausmann2014-02-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Also adjust the error message for the other compiler when trying to assign lists to script strings. Change-Id: I50f833c340f3634a59c5b36f30aeafc53003e65e Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* | | alloca() is declared in stdlib.h on BSD systemsGabriel de Dietrich2014-02-022-12/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... except on Darwin. Bonus change: Updated auto-tests trying to include 'alloca.h'. This is a follow up on 24c43a5748b8502. Change-Id: I299de00bf0dca7842470b158282daea221a10f2d Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | | Be stricter about the number of messages when testing profiler serviceUlf Hermann2014-01-311-1/+4
| | | | | | | | | | | | | | | | | | | | | It's better to fail a test than to crash on invalid array access later. Change-Id: Ia3d24218eba80f362908979720657312c8c6cd67 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | | Properly wait for stdout in testUlf Hermann2014-01-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Assuming all output is available on the first readyReadStandardOutput() signal leads to flaky test results. Change-Id: I442d7edc905abc067d6c32a4a55afd42ed03e3c9 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | | Add test for shaping and rendering Sinhala textEskil Abrahamsen Blomfeldt2014-01-291-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | This is currently broken on Mac OS X, but the fix is nigh. Task-number: QTBUG-36056 Change-Id: I547f7961a2ca8c62301e15de486a6f75de26bc4a Reviewed-by: aavit <eirik.aavitsland@digia.com>
* | | [new compiler] Fix timing of property assignment error handlingSimon Hausmann2014-01-291-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Most property assignment errors are now handled at type compile time, just like in the old compiler. This speeds up the object creation code and restores behavior expected in the qqmllanguage tests. Change-Id: If213cd0bfa4dd51d9065c27809a79a6495c9f3ce Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* | | Expose TextEdit::linkAt(x, y)J-P Nurmi2014-01-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ChangeLog][QtQuick] Added TextEdit::linkAt(x,y) method. Task-number: QTBUG-18946 Change-Id: Id9d061e6c9d857c2f0283ad5042097828d1ed02d Reviewed-by: Martin Jones <martin.jones@jollamobile.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com> Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* | | Expose Text::linkAt(x, y)J-P Nurmi2014-01-291-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ChangeLog][QtQuick] Added Text::linkAt(x,y) method. Task-number: QTBUG-18946 Change-Id: I3b4071c6117ac0ee636f2fdbd2c392eb05b02dd7 Reviewed-by: Martin Jones <martin.jones@jollamobile.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com> Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* | | Skip animations tests for MinGW.Friedemann Kleint2014-01-283-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These tests typically fail in the CI. Task-number: QTBUG-36290 Change-Id: I36a19c2914932d4f70c1df24e1c5ad4a3d0e2795 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com> Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* | | Update TestExpectationsLars Knoll2014-01-281-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These tests started failing after the upgrade to Unicode 6.3 in qtbase. The reason is that a character in the mongolian range that is being used in some tests changed character class from whitespace to being a control character. Change-Id: I4683d6db239fa0c3d213057dc363650420c1104d Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | | [new compiler] Report errors when trying to bind to read-only propertiesSimon Hausmann2014-01-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only exception are initializers for read-only property declarations. Also adjusted the error location of one test to point to the correct value location as opposed to the property location, as with all the other similar errors. Change-Id: I2333d3c485fc374b1b39a5f5a4408af5cf08a20f Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* | | [new compiler] Improved error handlingSimon Hausmann2014-01-281-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * When reporting errors with literal bindings, use the correct location for the report, the place where the literal value is declared. * Create property caches for group properties, so that later in the property validator we can do extra checks * Report an error when trying to declare an object to the default property of a group property * Similarlyl report an error when trying to use sub-objects with value type properties * Temporarily change tst_qqmllanguage::errors() to also try to instantiate the component, because for the moment some errors are only reported at instantiating time instead of compile time. That'll be fixed later when move checks get moved into the property validator. Change-Id: Icaa8d2edc7918c03001c40fba7880ee5cac10e69 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* | | Improved error handling for namespaced property bindingsSimon Hausmann2014-01-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A binding with a qualified name that starts with a name space, must be followed by a type. For example MyNamespace.someThing.foo: 100 is not valid, something must be a valid type name and therefore start with an upper case letter. Similarly an object declaration like this: MyNamespace.something { ... } is not valid neither. The current compiler reported the latter as "Expected type" and the former as "Invalid attached property name". The message for the latter is not very good, because we know that "MyNamespace" is a namespace and therefore "something" cannot be a attached property name, it must be the attached property type first. In the new compiler this hits the same code path and thus the same error message. So this patch introduces the correct error message in the new compiler, adjusts it for attached properties in the old one and adjusts the test that now passes with both. Change-Id: I51c265a2acb80079c1dd62ef5ef77d5ff07d3ac1 Reviewed-by: Lars Knoll <lars.knoll@digia.com>