diff options
Diffstat (limited to 'examples/qmltest/qmltest/tst_basic.qml')
-rw-r--r-- | examples/qmltest/qmltest/tst_basic.qml | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/examples/qmltest/qmltest/tst_basic.qml b/examples/qmltest/qmltest/tst_basic.qml deleted file mode 100644 index e3ce172beb..0000000000 --- a/examples/qmltest/qmltest/tst_basic.qml +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -import QtQuick -import QtTest - -TestCase { - name: "BasicTests" - - function test_pass() { - compare(2 + 2, 4, "2 + 2") - } - - function test_fail() { - expectFail("", "this is the fail we wanted") - compare(2 + 2, 5, "2 + 2") - } - - function test_skip() { - skip("skipping") - } - - function test_expecting() { - expectFail("", "this is the fail we wanted") - verify(false) - } - - function test_table_data() { - return [ - {tag: "2 + 2 = 4", a: 2, b: 2, answer: 4 }, - {tag: "2 + 6 = 8", a: 2, b: 6, answer: 8 }, - {tag: "2 + 2 = 5", a: 2, b: 2, answer: 5 }, // fail - ] - } - - function test_table(data) { - if (data.answer === 5) - expectFail("", "this is the fail we wanted") - compare(data.a + data.b, data.answer) - } -} |