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

tst_snippets verify:qtquickcontrols-material-attributes fails on macOS

    XMLWordPrintable

Details

    • 92c220812 (dev), 6eeec9186 (6.5.0), 2af9e2f77 (6.5), 2d7fe23b4 (dev), 3f8a4345c (6.5)

    Description

      Failing output:

      08:23:48: Starting /Users/mitch/dev/qt-dev-debug-non-fw/qtdeclarative/tests/auto/quickcontrols/snippets/tst_snippets verify:qtquickcontrols-material-attributes...
      Detected system locale encoding (US-ASCII, locale "C") is not UTF-8.
      Qt shall use a UTF-8 locale ("UTF-8") instead. If this causes problems,
      reconfigure your locale. See the locale(1) manual for more information.
      ********* Start testing of tst_Snippets *********
      Config: Using QtTest library 6.6.0, Qt 6.6.0 (arm64-little_endian-lp64 shared (dynamic) debug build; by Apple LLVM 13.1.6 (clang-1316.0.21.2.5)), macos 12.4
      QINFO  : tst_Snippets::initTestCase() Snippets are taken from /Users/mitch/dev/qt-dev/qtdeclarative/tests/auto/quickcontrols/snippets/../../../../src/quickcontrols/doc/snippets
      PASS   : tst_Snippets::initTestCase()
      QWARN  : tst_Snippets::verify(qtquickcontrols-material-attributes) qt.qpa.fonts: Populating font family aliases took 159 ms. Replace uses of missing font family "Roboto" with one that exists to avoid this cost. 
      QWARN  : tst_Snippets::verify(qtquickcontrols-material-attributes) QQmlComponent: Component is not ready
      FAIL!  : tst_Snippets::verify(qtquickcontrols-material-attributes) '!root.isNull()' returned FALSE. (file:///Users/mitch/dev/qt-dev/qtdeclarative/tests/auto/quickcontrols/snippets/../../../../src/quickcontrols/doc/snippets/qtquickcontrols-material-attributes.qml:69 Cannot assign to non-existent property "endY"
      )
         Loc: [/Users/mitch/dev/qt-dev/qtdeclarative/tests/auto/quickcontrols/snippets/tst_snippets.cpp(75)]
      PASS   : tst_Snippets::cleanupTestCase()
      Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 726ms
      ********* Finished testing of tst_Snippets *********
      08:23:50: /Users/mitch/dev/qt-dev-debug-non-fw/qtdeclarative/tests/auto/quickcontrols/snippets/tst_snippets exited with code 1
      

      However, when running with QML_DISABLE_DISK_CACHE=1, it passes.

      The code in question:

          Page {
              anchors.fill: parent
              anchors.margins: 40
      
              header: ToolBar {
                  Label {
                      text: "Material"
                      anchors.centerIn: parent
                  }
              }
      
              TextField {
                  id: textField
                  text: "TextField"
                  anchors.centerIn: parent
      
                  Component.onCompleted: forceActiveFocus()
              }
      
              component Line: Shape {
                  // Account for 1-pixel-wide lines.
                  width: Math.max(1, endX - startX)
                  height: Math.max(1, endY - startY)
      
                  layer.enabled: true
                  layer.samples: 4
      
                  property alias startX: shapePath.startX
                  property alias startY: shapePath.startY
                  property alias endX: pathLine.x
                  property alias endY: pathLine.y
      
                  ShapePath {
                      id: shapePath
                      strokeWidth: 1
                      strokeColor: "#444"
      
                      PathLine {
                          id: pathLine
                      }
                  }
              }
          }
      
          Label {
              id: primaryLabel
              x: 40
              y: 3
              text: "Primary"
          }
          Line {
              id: primaryLine
              x: primaryLabel.x + primaryLabel.width / 2
              y: primaryLabel.y + primaryLabel.height
              startX: 0.5
              startY: 0
              endX: 0.5
              endY: 40
          }
      

      endY is an alias to pathLine.y, which is a valid property:

      https://doc.qt.io/qt-6/qml-qtquick-pathline.html#y-prop

      Attachments

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews