Details

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

    • 4959e6af8e5b8d6dbf677fcd0802e4dc43083308

    Description

      The tst_qcssparser autotest fails for qpa, using xcb backend.

      [rmcgover@bq-menoetius qcssparser]$ make check TESTARGS=extractFontFamily                                                        8455b13feeb144..
      ./tst_qcssparser extractFontFamily
      
      Information of screen 346:
        width.........: 1920
        height........: 1200
        depth.........: 24
        white pixel...: ffffff
        black pixel...: 0
      
      Running window manager: KWin
      ********* Start testing of tst_QCssParser *********
      Config: Using QTest library 5.0.0, Qt 5.0.0
      PASS   : tst_QCssParser::initTestCase()
      QDEBUG : tst_QCssParser::extractFontFamily(multiple) Cache hit level 1 
      FAIL!  : tst_QCssParser::extractFontFamily(multiple2) Compared values are not the same
         Actual (info.family()): Verdana
         Expected ("expectedFamily"): Times New Roman
         Loc: [tst_qcssparser.cpp(1593)]
      FAIL!  : tst_QCssParser::extractFontFamily(invalid) Compared values are not the same
         Actual (info.family()): Arial
         Expected ("expectedFamily"): DejaVu Sans
         Loc: [tst_qcssparser.cpp(1593)]
      FAIL!  : tst_QCssParser::extractFontFamily(shorthand multiple quote) Compared values are not the same
         Actual (info.family()): Verdana
         Expected ("expectedFamily"): Times New Roman
         Loc: [tst_qcssparser.cpp(1593)]
      FAIL!  : tst_QCssParser::extractFontFamily(shorthand multiple) Compared values are not the same
         Actual (info.family()): Verdana
         Expected ("expectedFamily"): Times New Roman
         Loc: [tst_qcssparser.cpp(1593)]
      FAIL!  : tst_QCssParser::extractFontFamily(invalid spaces) Compared values are not the same
         Actual (info.family()): Nimbus Sans L
         Expected ("expectedFamily"): Times New Roman
         Loc: [tst_qcssparser.cpp(1593)]
      FAIL!  : tst_QCssParser::extractFontFamily(invalid spaces quotes) Compared values are not the same
         Actual (info.family()): Nimbus Sans L
         Expected ("expectedFamily"): Times New Roman
         Loc: [tst_qcssparser.cpp(1593)]
      PASS   : tst_QCssParser::cleanupTestCase()
      Totals: 2 passed, 6 failed, 0 skipped
      ********* Finished testing of tst_QCssParser *********
      make: *** [check] Error 6
      

      If I take http://codereview.qt.nokia.com/3059 which fixes a bug in qpa's font caching, the resulting fonts become more stable, but the test still doesn't pass:

      [rmcgover@bq-menoetius qcssparser]$ make check TESTARGS=extractFontFamily                                                        f179157916ccb2..
      ./tst_qcssparser extractFontFamily
      
      Information of screen 346:
        width.........: 1920
        height........: 1200
        depth.........: 24
        white pixel...: ffffff
        black pixel...: 0
      
      Running window manager: KWin
      ********* Start testing of tst_QCssParser *********
      Config: Using QTest library 5.0.0, Qt 5.0.0
      PASS   : tst_QCssParser::initTestCase()
      QDEBUG : tst_QCssParser::extractFontFamily(multiple) Cache hit level 1 
      FAIL!  : tst_QCssParser::extractFontFamily(multiple2) Compared values are not the same
         Actual (info.family()): DejaVu Sans
         Expected ("expectedFamily"): Times New Roman
         Loc: [tst_qcssparser.cpp(1593)]
      FAIL!  : tst_QCssParser::extractFontFamily(shorthand multiple quote) Compared values are not the same
         Actual (info.family()): DejaVu Sans
         Expected ("expectedFamily"): Times New Roman
         Loc: [tst_qcssparser.cpp(1593)]
      FAIL!  : tst_QCssParser::extractFontFamily(shorthand multiple) Compared values are not the same
         Actual (info.family()): DejaVu Sans
         Expected ("expectedFamily"): Times New Roman
         Loc: [tst_qcssparser.cpp(1593)]
      FAIL!  : tst_QCssParser::extractFontFamily(invalid spaces) Compared values are not the same
         Actual (info.family()): DejaVu Sans
         Expected ("expectedFamily"): Times New Roman
         Loc: [tst_qcssparser.cpp(1593)]
      FAIL!  : tst_QCssParser::extractFontFamily(invalid spaces quotes) Compared values are not the same
         Actual (info.family()): DejaVu Sans
         Expected ("expectedFamily"): Times New Roman
         Loc: [tst_qcssparser.cpp(1593)]
      PASS   : tst_QCssParser::cleanupTestCase()
      Totals: 2 passed, 5 failed, 0 skipped
      ********* Finished testing of tst_QCssParser *********
      make: *** [check] Error 5
      

      A full test log is at http://pulse.test.qt.nokia.com:8080/file/artifacts/127687456/_artifacts/test-logs/tst_qcssparser-00.txt (Nokia LAN)

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            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