-
Notifications
You must be signed in to change notification settings - Fork 3
/
ChangeContents.test
117 lines (115 loc) · 4.89 KB
/
ChangeContents.test
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _NWLs4A9QEe62UqwcFDbD7g,_Ayow4KrpEeqpkej7GeVvKQ
Element-Name: ChangeContents
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _IQ2XgA9gEe62UqwcFDbD7g
Runtime-Version: 2.5.4.202210020716
Save-Time: 11/7/23, 12:03 PM
Tags: fail
Testcase-Type: ecl
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
with [get-view "Package Explorer" | get-tree] {
select "test/src/test/c.mtl" | double-click
}
with [get-editor "c.mtl" | get-text-viewer] {
select-range 6 24 6 25
key-type BackSpace
key-type "M1+s"
}
with [get-view Problems | get-tree | get-item -path "Errors \\(4 items\\)"] {
get-property "getItemCount()" | equals 4 | verify-true
get-property "getItems().TreeItem[0].getData().getMarker().getAttributes().toString()"
| matches "\\{lspDiagnostic=Diagnostic \\[\n"
+ " range = Range \\[\n"
+ " start = Position \\[\n"
+ " line = 22\n"
+ " character = 10\n"
+ " ]\n"
+ " end = Position \\[\n"
+ " line = 22\n"
+ " character = 23\n"
+ " ]\n"
+ " ]\n"
+ " severity = Error\n"
+ " code = null\n"
+ " codeDescription = null\n"
+ " source = \"Acceleo Validation\"\n"
+ " message = \"Couldn't find the 'myTemplate\\(EClassifier=EPackage\\)' service\"\n"
+ " tags = null\n"
+ " relatedInformation = null\n"
+ " data = null\n"
+ "], severity=2, charStart=762, lspCodeActions=\\[?((?!], ).|\n)*]?, languageServerId=org.eclipse.acceleo.aql.ide.ui.server, charEnd=775, message=Couldn't find the 'myTemplate\\(EClassifier=EPackage\\)' service, lineNumber=23}"
| verify-true
get-property "getItems().TreeItem[1].getData().getMarker().getAttributes().toString()"
| matches "\\{lspDiagnostic=Diagnostic \\[\n"
+ " range = Range \\[\n"
+ " start = Position \\[\n"
+ " line = 20\n"
+ " character = 10\n"
+ " ]\n"
+ " end = Position \\[\n"
+ " line = 20\n"
+ " character = 23\n"
+ " ]\n"
+ " ]\n"
+ " severity = Error\n"
+ " code = null\n"
+ " codeDescription = null\n"
+ " source = \"Acceleo Validation\"\n"
+ " message = \"Couldn't find the 'myTemplate\\(EClassifier=EPackage\\)' service\"\n"
+ " tags = null\n"
+ " relatedInformation = null\n"
+ " data = null\n"
+ "], severity=2, charStart=700, lspCodeActions=\\[?((?!], ).|\n)*]?, languageServerId=org.eclipse.acceleo.aql.ide.ui.server, charEnd=713, message=Couldn't find the 'myTemplate\\(EClassifier=EPackage\\)' service, lineNumber=21}"
| verify-true
get-property "getItems().TreeItem[2].getData().getMarker().getAttributes().toString()"
| matches "\\{lspDiagnostic=Diagnostic \\[\n"
+ " range = Range \\[\n"
+ " start = Position \\[\n"
+ " line = 22\n"
+ " character = 10\n"
+ " ]\n"
+ " end = Position \\[\n"
+ " line = 22\n"
+ " character = 23\n"
+ " ]\n"
+ " ]\n"
+ " severity = Error\n"
+ " code = null\n"
+ " codeDescription = null\n"
+ " source = \"Acceleo Validation\"\n"
+ " message = \"Couldn't find the 'myTemplate\\(EClassifier=EPackage\\)' service\"\n"
+ " tags = null\n"
+ " relatedInformation = null\n"
+ " data = null\n"
+ "], severity=2, charStart=775, lspCodeActions=\\[?((?!], ).|\n)*]?, languageServerId=org.eclipse.acceleo.aql.ide.ui.server, charEnd=788, message=Couldn't find the 'myTemplate\\(EClassifier=EPackage\\)' service, lineNumber=23}"
| verify-true
get-property "getItems().TreeItem[3].getData().getMarker().getAttributes().toString()"
| matches "\\{lspDiagnostic=Diagnostic \\[\n"
+ " range = Range \\[\n"
+ " start = Position \\[\n"
+ " line = 20\n"
+ " character = 10\n"
+ " ]\n"
+ " end = Position \\[\n"
+ " line = 20\n"
+ " character = 23\n"
+ " ]\n"
+ " ]\n"
+ " severity = Error\n"
+ " code = null\n"
+ " codeDescription = null\n"
+ " source = \"Acceleo Validation\"\n"
+ " message = \"Couldn't find the 'myTemplate\\(EClassifier=EPackage\\)' service\"\n"
+ " tags = null\n"
+ " relatedInformation = null\n"
+ " data = null\n"
+ "], severity=2, charStart=700, lspCodeActions=\\[?((?!], ).|\n)*]?, languageServerId=org.eclipse.acceleo.aql.ide.ui.server, charEnd=713, message=Couldn't find the 'myTemplate\\(EClassifier=EPackage\\)' service, lineNumber=21}"
| verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--