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

QQuickTest::showView() could enforce a minimum window size

XMLWordPrintable

    • 17c50b309b (qt/qtdeclarative/dev) 17c50b309b (qt/tqtc-qtdeclarative/dev)

      Getting a 1x1 window is a bit ridiculous, and can only happen on some platforms such as boot2qt.  On X11 for example the minimum window size is 100x100.  So maybe that should be the minimum in this function too, in case the test qml does not specify the root item's width and height.

      https://testresults.qt.io/logs/qt/qtdeclarative/d68076361f6358cb03ce58d834e8ca35adb24c1a/LinuxUbuntu_20_04x86_64LinuxQEMUarm64GCCqtci-linux-Ubuntu-20.04-x86_64-50-9e6666Sccache_UseConfigure/4c549465a2eb0eb270433629f4d98162feae8b1a/test_1679048289/log.txt.gz

      ********* Start testing of tst_pointerhandlers *********
      Config: Using QtTest library 6.5.0, Qt 6.5.0 (arm64-little_endian-lp64 shared (dynamic) release build; by GCC 10.2.0), b2qt 3.2
      PASS   : tst_pointerhandlers::initTestCase()
      PASS   : tst_pointerhandlers::hover_controlInsideControl()
      PASS   : tst_pointerhandlers::hover_controlAndMouseArea()
      QWARN  : tst_pointerhandlers::buttonTapHandler(left mouse) Mouse event at 10, 10 occurs outside target window (1x1).
      FAIL!  : tst_pointerhandlers::buttonTapHandler(left mouse) Compared values are not the same
         Actual   (tappedSpy.count()): 0
         Expected (1)                : 1
         Loc: [/home/qt/work/qt/qtdeclarative/tests/auto/quickcontrols2/pointerhandlers/tst_pointerhandlers.cpp(200)]
      QWARN  : tst_pointerhandlers::buttonTapHandler(right mouse) Mouse event at 10, 10 occurs outside target window (1x1).
      FAIL!  : tst_pointerhandlers::buttonTapHandler(right mouse) Compared values are not the same
         Actual   (tappedSpy.count()): 0
         Expected (1)                : 1
         Loc: [/home/qt/work/qt/qtdeclarative/tests/auto/quickcontrols2/pointerhandlers/tst_pointerhandlers.cpp(200)]
      FAIL!  : tst_pointerhandlers::buttonTapHandler(touch) Compared values are not the same
         Actual   (tappedSpy.count()): 0
         Expected (1)                : 1
         Loc: [/home/qt/work/qt/qtdeclarative/tests/auto/quickcontrols2/pointerhandlers/tst_pointerhandlers.cpp(210)]
      PASS   : tst_pointerhandlers::cleanupTestCase()
      Totals: 4 passed, 3 failed, 0 skipped, 0 blacklisted, 1046ms
      ********* Finished testing of tst_pointerhandlers ********* 

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

            srutledg Shawn Rutledge
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes