-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathtst_symbols.qml
69 lines (50 loc) · 1.45 KB
/
tst_symbols.qml
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
This file is part of Knut.
SPDX-FileCopyrightText: 2024 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-License-Identifier: GPL-3.0-only
Contact KDAB at <[email protected]> for commercial licensing options.
*/
import QtQuick 2.12
import Script 1.0
import Script.Test 1.0
TestCase {
name: "Project"
id : sane
age : 12
sub : Another {
id : 123
callBack1: (mouse,x) => label.moveTo(mouse.x, mouse.y)
callBack2: mouse => label.moveTo(mouse.x, mouse.y)
}
Standalone {
NestedA {
}
NestedB {
}
NestedC {
}
NestedD {
}
NestedE {
}
}
function test_allFiles() {
Project.root = Dir.currentScriptPath + "/projects/mfc-tutorial"
var files = Project.allFiles();
compare(files.length, 10)
compare(files[0], "MFC_UpdateGUI.rc")
var rcFiles = Project.allFilesWithExtension("rc");
compare(rcFiles.length, 1)
compare(rcFiles[0], "MFC_UpdateGUI.rc")
}
function test_open() {
Project.root = Dir.currentScriptPath + "/projects/mfc-tutorial"
var txtdoc = Project.open("TutorialDlg.cpp")
compare(txtdoc.type, Document.Cpp)
var rcdoc = Project.open("MFC_UpdateGUI.rc")
compare(rcdoc.type, Document.Rc)
}
function add(a,b = undefined) {
return a+b
}
}