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

TestCase.compare() does not work with Qt types

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.8.0
    • 5.4.0
    • Testing: QuickTest
    • None
    • 1c51ae2911636e61a698967fd9c6aabd28f5ceb9

    Description

      This test should fail, but it does not:

      import QtQuick 2.0
      import QtTest 1.0
      
      TestCase {
          function test_1() {
              compare(Qt.rgba(1, 0, 0, 1), Qt.rgba(0, 1, 0, 1))
              compare(Qt.point(1, 2), Qt.point(3, 4))
              compare(Qt.rect(1, 2, 3, 4), Qt.rect(5, 6, 7, 8))
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              shausman Simon Hausmann
              t.artikov Timur Artikov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes