diff options
author | Matthew Vogt <matthew.vogt@nokia.com> | 2012-06-04 14:43:38 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-09 01:36:23 +0200 |
commit | 49a3883e86b61d8facfeea9c43037d484cb50b92 (patch) | |
tree | ba1afdf6ddc3740f26c5e3c95cb2fffeb953abb4 /tests/auto/qml/qqmlecmascript/data/fallbackBindings.4.qml | |
parent | 3095493a4ce4bec11b9381a3d1d23f17b313332c (diff) |
Use V4 binding for non-final properties where possible
When a property referenced in a binding is not marked as final, do not
automatically abort optimization. Instead generate both V4 and V8
binidngs, and only fall back to the V8 binding if necessary at run time.
Change-Id: I1bcc7e2b495935c5d519a9a223f640c1972cdb4e
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/fallbackBindings.4.qml')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/data/fallbackBindings.4.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/fallbackBindings.4.qml b/tests/auto/qml/qqmlecmascript/data/fallbackBindings.4.qml new file mode 100644 index 0000000000..b7bd294c9f --- /dev/null +++ b/tests/auto/qml/qqmlecmascript/data/fallbackBindings.4.qml @@ -0,0 +1,9 @@ +import QtQuick 2.0 +import Qt.test.fallbackBindingsDerived 1.0 as ModuleAPI + +Item { + property bool success: false + property string foo: ModuleAPI.test + + Component.onCompleted: success = (foo == 'hello') +} |