Fix tst_qqmlecmascript::scope() and behavioural compatibility with v8 based qml
authorSimon Hausmann <simon.hausmann@digia.com>
Thu, 8 Aug 2013 12:57:36 +0000 (14:57 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 8 Aug 2013 13:35:26 +0000 (15:35 +0200)
commit3b8457712e7b98dd6ee88f0290deabdf46695598
tree758bbd21cf25294ce35e17109fe761101c3aa2e5
parent8a273812ce2a9055d7cf2196e1b8a288bf0fc142
Fix tst_qqmlecmascript::scope() and behavioural compatibility with v8 based qml

In the V8 based QML the global object would come _before_ the "QML global object",
which is the QML context (wrapper). We had a bunch of tests that verify the exact
scope chain and with this "compatibility" fix we can re-enable them.

Also fix missing prototype setup for the console object.

Change-Id: Ib3886f2d86472eb752a6ad1a2d8d89709548c5b4
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlcontextwrapper.cpp
src/qml/qml/v8/qqmlbuiltinfunctions.cpp
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp