Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-68666

declarative_core::MappingManagerError::test_error() failed

    XMLWordPrintable

Details

    Description

      https://codereview.qt-project.org/#/c/231259/ Update submodules on 'dev' in qt5

      https://testresults.qt.io/coin/integration/qt/qt5/tasks/1528150061

      https://testresults.qt.io/coin/api/results/qt/qtlocation/a10fd1ae4da1b3fa92379ea1e6128d714d427894/MacOSMacOS_10_12x86_64MacOSMacOS_10_12x86_64Clangqtci-macos-10.12-x86_64-8-58850fDebugAndRelease_Release/af8c380930009286b3e295924d18dbd18a876dc7/test_1528151707/log.txt.gz

      ...
      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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            shausman Simon Hausmann
            liaqi Liang Qi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes