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

QtQuickTest: compare() succeeds when comparing two unequal Qt.points

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1: Critical P1: Critical
    • None
    • 5.2.0 RC1, 5.3.0 Beta1
    • Testing: QuickTest
    • None

      QtTest's compare() function does not fail when comparing two unequal instances of Qt.point().

      See following test case:

      import QtQuick 2.2
      import QtTest 1.0
      
      TestCase {
          function test_compare_points() {
              //should fail, but succeeds
              compare(Qt.point(1, 2), Qt.point(3, 4));
          }
      }
      

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

            Unassigned Unassigned
            mlitauer Martin Litauer
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes