aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmltest/url/tst_url.qml
blob: b3d46d6375809719fff9277786068da7b798405a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick 2.2
import QtTest 1.1

Item {
    TestCase {
        name: "URL"
        property url path1: "path1"
        property url path2: "path2"

        function test_url_compare() {
            expectFail("", "compare() should fail here; if it passes we have QTBUG-61297")
            compare(path1, path2)
        }
        function test_url_compare_string() {
            expectFail("", "compare() should fail here")
            compare(path1.toString(), path2.toString())
        }
        function test_url_verify() {
            verify(path1 != path2)
        }
    }
}