XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • P2: Important
    • 5.0.0
    • GUI: Text handling
    • None
    • qtbase 7465b55d9c1c8586da7384fbf97604ed020a4fd3
      Ubuntu 10.04 x86 32-bit
      Qt configured with -qpa and using QT_QPA_PLATFORM=xcb

    • 8b4e40f5354ef81c40d8da35e0e79b2a87278e31

    Description

      This autotest fails when using qpa with the xcb backend.

      ********* Start testing of tst_QStaticText *********
      Config: Using QTest library 5.0.0, Qt 5.0.0
      PASS   : tst_QStaticText::initTestCase()
      PASS   : tst_QStaticText::constructionAndDestruction()
      PASS   : tst_QStaticText::drawToPoint()
      PASS   : tst_QStaticText::drawToRect()
      PASS   : tst_QStaticText::setFont()
      PASS   : tst_QStaticText::setTextWidth()
      XPASS  : tst_QStaticText::prepareToCorrectData() COMPARE()
         Loc: [tst_qstatictext.cpp(241)]
      PASS   : tst_QStaticText::prepareToWrongData()
      PASS   : tst_QStaticText::copyConstructor()
      PASS   : tst_QStaticText::translatedPainter()
      XFAIL  : tst_QStaticText::rotatedPainter() Graphics system does not support transformed text on this platform
         Loc: [tst_qstatictext.cpp(404)]
      PASS   : tst_QStaticText::rotatedPainter()
      XFAIL  : tst_QStaticText::scaledPainter() Graphics system does not support transformed text on this platform
         Loc: [tst_qstatictext.cpp(432)]
      PASS   : tst_QStaticText::scaledPainter()
      PASS   : tst_QStaticText::projectedPainter()
      XFAIL  : tst_QStaticText::transformationChanged() Graphics system does not support transformed text on this platform
         Loc: [tst_qstatictext.cpp(555)]
      PASS   : tst_QStaticText::transformationChanged()
      PASS   : tst_QStaticText::plainTextVsRichText()
      PASS   : tst_QStaticText::setPenPlainText()
      PASS   : tst_QStaticText::setPenRichText()
      PASS   : tst_QStaticText::richTextOverridesPen()
      PASS   : tst_QStaticText::drawStruckOutText()
      PASS   : tst_QStaticText::drawOverlinedText()
      PASS   : tst_QStaticText::drawUnderlinedText()
      PASS   : tst_QStaticText::unprintableCharacter_qtbug12614()
      PASS   : tst_QStaticText::underlinedColor_qtbug20159()
      PASS   : tst_QStaticText::textDocumentColor()
      PASS   : tst_QStaticText::cleanupTestCase()
      Totals: 24 passed, 1 failed, 0 skipped
      ********* Finished testing of tst_QStaticText *********
      
      

      (from http://pulse.test.qt.nokia.com:8080/file/artifacts/127687456/_artifacts/test-logs/tst_qstatictext-00.txt , Nokia LAN)

      At first glance it might seem that the QEXPECT_FAIL in prepareToCorrectData should simply be removed for qpa, since that would make the test pass. But further investigation showed that the test unexpectedly passes even though supportsTransformations() is false because both drawText and drawStaticText appear to be painting nothing at all - so the comparison between the two painting methods dubiously succeeds (comparing two white squares).

      Attachments

        Issue Links

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

          Activity

            People

              jiang Jiang Jiang
              rmcgover Rohan McGovern (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes