diff options
Diffstat (limited to 'tests/auto/quickcontrols/controls/data/tst_frame.qml')
-rw-r--r-- | tests/auto/quickcontrols/controls/data/tst_frame.qml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/auto/quickcontrols/controls/data/tst_frame.qml b/tests/auto/quickcontrols/controls/data/tst_frame.qml index bef46f7650..141940edc3 100644 --- a/tests/auto/quickcontrols/controls/data/tst_frame.qml +++ b/tests/auto/quickcontrols/controls/data/tst_frame.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtTest @@ -52,10 +52,12 @@ TestCase { } } - function test_empty() { + function init() { failOnWarning(/.?/) + } - var control = createTemporaryObject(frame, testCase) + function test_empty() { + let control = createTemporaryObject(frame, testCase) verify(control) verify(control.contentItem) @@ -66,7 +68,7 @@ TestCase { } function test_oneChild() { - var control = createTemporaryObject(oneChildFrame, testCase) + let control = createTemporaryObject(oneChildFrame, testCase) verify(control) compare(control.contentWidth, 100) @@ -78,7 +80,7 @@ TestCase { } function test_twoChildren() { - var control = createTemporaryObject(twoChildrenFrame, testCase) + let control = createTemporaryObject(twoChildrenFrame, testCase) verify(control) compare(control.contentWidth, 0) @@ -90,7 +92,7 @@ TestCase { } function test_contentItem() { - var control = createTemporaryObject(contentFrame, testCase) + let control = createTemporaryObject(contentFrame, testCase) verify(control) compare(control.contentWidth, 100) |