diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-01-15 13:41:01 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2018-07-10 16:35:48 +0000 |
commit | b98af3e0f3bfdc0187d7955683f90a7012a2d133 (patch) | |
tree | 682d7be57ef07cb73f4b568743b9c86bd3deb313 /tests/auto/qml/debugger/qqmldebugjs/data/test.qml | |
parent | 58c988e090bac094e8c2e8b77975c1c720725a6e (diff) |
QML Profiler: Test that only one Complete message is sent per session
Task-number: QTBUG-65767
Change-Id: I0485092f9a36da73e9e86ef8216be736b6560ec1
Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'tests/auto/qml/debugger/qqmldebugjs/data/test.qml')
-rw-r--r-- | tests/auto/qml/debugger/qqmldebugjs/data/test.qml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/auto/qml/debugger/qqmldebugjs/data/test.qml b/tests/auto/qml/debugger/qqmldebugjs/data/test.qml new file mode 100644 index 0000000000..a36d0cae91 --- /dev/null +++ b/tests/auto/qml/debugger/qqmldebugjs/data/test.qml @@ -0,0 +1,47 @@ +/**************************************************************************** +** +** Copyright (C) 2016 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the test suite of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:GPL-EXCEPT$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3 as published by the Free Software +** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +import QtQuick 2.0 + +//DO NOT CHANGE + +Item { + Component.onCompleted: { + var a = [1, 2] + var b = {a: "hello", d: 1 } + var c + var d = 12 + } + function foo() { + var a = [1, 2] + var b = {a: "hello", d: 1 } + var c + var d = 12 + } +} + |