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

QML Test with grabImage() fails on iOS

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • 47790977f5 (qt/qtdeclarative/dev) 47790977f5 (qt/tqtc-qtdeclarative/dev) 3af1c96d79 (qt/tqtc-qtdeclarative/5.15) 9157578c5c (qt/qtdeclarative/6.3) 9157578c5c (qt/tqtc-qtdeclarative/6.3) 5be8de1186 (qt/qtdeclarative/6.4)

    Description

      The following test fails on iOS. It works fine on other platform such as Android or Windows.
      This code is in QTBUG-98914.zip .

              function test_progresscircle_indeterminate(){
                  var imgCompare1 = grabImage(obj);
                  //do not use 1000 as it is the standard repeat interval for ProgressCircle
                  wait(800);
                  var imgCompare2 = grabImage(obj);
                  verify(!imgCompare1.equals(imgCompare2), "TEST: ProgressCircle changed in indeterminate mode");
              }
      

      For a reference, this also fails too. ( This is not in the sample project )

              function test_set_image(){
                  var noImage = grabImage(obj);
                  obj.source = "qrc:/test_image.png";
                  wait(1000);
                  var testImg = grabImage(obj);
                  verify(!noImage.equals(testImg), "TEST: Set image");
              }
      

      grabImage() returns a valid object but it seems the image before and after are the same.

      Sample code is attached ( QTBUG-98914.zip )

      Attachments

        1. image1.png
          image1.png
          12 kB
        2. QTBUG-98914.zip
          4 kB
        3. window.jpg
          window.jpg
          44 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            nagrohn Nahomi Gröhn (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews