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

extras::Tests_CircularTickmarkLabel::test_tickmarksAndLabels() failed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 5.8.0 Alpha
    • Quick: Controls 1

    Description

      https://codereview.qt-project.org/#/c/149944/

      http://testresults.qt.io/logs/qt/qtquickcontrols/82440ec0d874f53181e2f0fe81793aac0ef88c4e/LinuxUbuntu_14_04x86_64LinuxUbuntu_14_04x86_64GCCNoWidgets_ForceDebugInfo/f3a58e13a240c8a4e9576f2884f540269f93d19c/testrun_1467064859/testlog.txt.gz

      /home/qt/work/qt/qtquickcontrols/tests/auto/extras/target_wrapper.sh  ./tst_extras Tests_CircularTickmarkLabel::test_tickmarksAndLabels
       ********* Start testing of extras *********
       Config: Using QtTest library 5.8.0, Qt 5.8.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 4.8.2)
       PASS   : extras::Tests_CircularTickmarkLabel::initTestCase()
       FAIL!  : extras::Tests_CircularTickmarkLabel::test_tickmarksAndLabels() Compared values are not the same
          Actual   (): 0
          Expected (): -0.5729577951308232
          Loc: [/home/qt/work/qt/qtquickcontrols/tests/auto/extras/data/tst_circulartickmarklabel.qml(147)]
       PASS   : extras::Tests_CircularTickmarkLabel::cleanupTestCase()
       Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 505ms
       ********* Finished testing of extras *********
      

      In background CI run, it fails everywhere...
      http://10.212.3.36:8080/coin/integration/qt/qt5/tasks/web_qt_qt5_1467064498929.thrift_bin

      Standalone testcase:

      import QtQuick 2.2
      import QtQuick.Extras 1.4;
      import QtQuick.Extras.Private 1.0;
      
      CircularTickmarkLabel {
          function findChild(parent, childObjectName) {
              if (!parent)
                  return null;
      
              for (var i = 0; i < parent.children.length; ++i) {
                  // Is this direct child of ours the child we're after?
                  var child = parent.children[i];
                  if (child.objectName === childObjectName)
                      return child;
      
                  // Try the direct child's children.
                  child = findChild(parent.children[i], childObjectName);
                  if (child)
                      return child;
              }
              return null;
          }
      
          Component.onCompleted: {
              minimumValueAngle = 0;
              maximumValueAngle = 180;
      
              maximumValue = 220;
              tickmarkStepSize = 10;
              labelStepSize = 40;
              var tickmark = findChild(__panel, "tickmark0");
              console.log(tickmark);
              console.log(tickmark.transform[1].angle)
          }
      }
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-54394
          # Subject Branch Project Status CR V

          Activity

            People

              erikv Erik Verbruggen
              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