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

Broken test tst_QQuickListView2::dragDelegateWithMouseArea

    XMLWordPrintable

Details

    • Linux/X11
    • 67e3908e42419c99bc1280fa98db79b625abfad0 (qt/qtdeclarative/dev) d10def5a2ba96fde75257aa178ebf222a31b7ea2 (qt/qtdeclarative/6.2)

    Description

      Building and running tests from git/dev (as of d00c76171de0c76794eb70a7284326332c0b3c66), this test is failing in one of the four cases (test rows), for – arguably – the most popular direction for a ListView: VerticalTopToBottom.

      PASS   : tst_QQuickListView2::dragDelegateWithMouseArea(LeftToRight)
      PASS   : tst_QQuickListView2::dragDelegateWithMouseArea(RightToLeft)
      FAIL!  : tst_QQuickListView2::dragDelegateWithMouseArea(VerticalTopToBottom) Compared doubles are not the same (fuzzy compare)
         Actual   (contentPosition())      : -13
         Expected (expectedContentPosition): -20
         Loc: [/home/ratijas/projects/q/qt6/qtdeclarative/tests/auto/quick/qquicklistview2/tst_qquicklistview2.cpp(165)]
      PASS   : tst_QQuickListView2::dragDelegateWithMouseArea(VerticalBottomToTop)
      

      I spent several hours trying to figure it out, but I couldn't. I'd like to point out that the testing code itself is pretty complicated (with all that drag handler helper whatever), and probably requires testing on its own.

      Attachments

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

        Activity

          People

            smd Jan Arve
            ratijas ivan tkachenko
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes