Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
5.0.0
-
None
Description
Comparing two URLs with compare() seems to always pass with QtTest - even when the URLs are not the same. Works as expected with verify()
import QtQuick 2.0 import QtTest 1.0 Item { resources: TestCase { name: "URL" function test_url_compare() { // passes even though should fail! compare(Qt.resolvedUrl("a"), Qt.resolvedUrl("b")) } function test_url_verify() { // fails as it should verify(Qt.resolvedUrl("a") == Qt.resolvedUrl("b")) } } }
Attachments
Issue Links
- relates to
-
QTBUG-61297 QtTest comparing two urls gives wrong results
- Closed