Details
-
Bug
-
Resolution: Done
-
P0: Blocker
-
None
-
5.12
-
None
-
All
Description
https://codereview.qt-project.org/#/c/231259/ Update submodules on 'dev' in qt5
https://testresults.qt.io/coin/integration/qt/qt5/tasks/1528150061
...
PASS : declarative_core::MappingManagerError::initTestCase()
FAIL! : declarative_core::MappingManagerError::test_error() 'verify()' returned FALSE. ()
Loc: [/Users/qt/work/qt/qtlocation/tests/auto/declarative_core/tst_plugin_error.qml(54)]
PASS : declarative_core::MappingManagerError::cleanupTestCase()
...
The test that fails is:
verify(map.error === Map.NoError)
and that fails because Map.NoError equals undefined. So lookup of enums from types is broken. Minimal testcase:
import QtQml 2.0 import QtLocation 5.3 QtObject { Component.onCompleted: { print(Map.NoError) } }
This should print 0 but instead prints undefined.
It turns out that this failure is because recently Map was added to the JS global object as a new type in ES6.