-
Notifications
You must be signed in to change notification settings - Fork 3
/
Move.test
227 lines (225 loc) · 9.85 KB
/
Move.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _NWLs4A9QEe62UqwcFDbD7g,_Ayow4KrpEeqpkej7GeVvKQ
Element-Name: Move
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _jUwkUBAREe6lN68H_ynxHA
Runtime-Version: 2.5.4.202210020716
Save-Time: 12/5/23, 9:14 AM
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
}
get-view "Package Explorer" | get-tree | select "test/src/test" | select "test/src/test" | get-menu -path "New/Package"
| click -metaKeys ""
with [get-window "New Java Package"] {
get-editbox -after [get-label "Name:"] | set-text "test.other"
get-button Finish | click -metaKeys ""
}
with [get-view "Package Explorer" | get-tree] {
select "test/src/test/ModuleServices.java"
with [get-item -path "test/src/test/ModuleServices.java"] {
drag-start 51 6
drag-enter 59 11 -detail any
}
drag-over 166 138
get-item -path "test/src/test/a.mtl" | drag-over 81 21 -detail copy
drag-over 177 184 -detail copy
drag-over 177 207 -detail copy
drag-over 177 230 -detail copy
drag-over 172 253 -detail copy
drag-over 156 276 -detail copy
get-item -path "test/src/test.other" | drag-over 75 5 -detail move
get-item -path "test/src/test/ModuleServices.java" | drag-exit
get-item -path "test/src/test.other" | drag-accept 75 5 -detail move
drag-set-data
get-item -path "test/src/test.other" | drop 75 5 -detail move
}
get-window Move | get-button OK | click -metaKeys ""
get-view "Package Explorer" | get-tree | drag-end -detail move
with [get-view Problems | get-tree | get-item -path "Errors \\(8 items\\)"] {
get-property "getItemCount()" | equals 8 | verify-true
get-property "getItems().TreeItem[0].getData().getMarker().getAttributes().toString()"
| matches "\\{lspDiagnostic=Diagnostic \\[\n"
+ " range = Range \\[\n"
+ " start = Position \\[\n"
+ " line = 10\n"
+ " character = 36\n"
+ " ]\n"
+ " end = Position \\[\n"
+ " line = 10\n"
+ " character = 49\n"
+ " ]\n"
+ " ]\n"
+ " severity = Error\n"
+ " code = null\n"
+ " codeDescription = null\n"
+ " source = \"Acceleo Validation\"\n"
+ " message = \"Couldn't find the 'getMessage\\(EClassifier=EString\\)' service\"\n"
+ " tags = null\n"
+ " relatedInformation = null\n"
+ " data = null\n"
+ "], severity=2, charStart=393, lspCodeActions=\\[?((?!], ).|\n)*]?, languageServerId=org.eclipse.acceleo.aql.ide.ui.server, charEnd=406, message=Couldn't find the 'getMessage\\(EClassifier=EString\\)' service, lineNumber=11}"
| verify-true
get-property "getItems().TreeItem[1].getData().getMarker().getAttributes().toString()"
| matches "\\{lspDiagnostic=Diagnostic \\[\n"
+ " range = Range \\[\n"
+ " start = Position \\[\n"
+ " line = 12\n"
+ " character = 34\n"
+ " ]\n"
+ " end = Position \\[\n"
+ " line = 12\n"
+ " character = 47\n"
+ " ]\n"
+ " ]\n"
+ " severity = Error\n"
+ " code = null\n"
+ " codeDescription = null\n"
+ " source = \"Acceleo Validation\"\n"
+ " message = \"Couldn't find the 'getMessage\\(EClassifier=EString\\)' service\"\n"
+ " tags = null\n"
+ " relatedInformation = null\n"
+ " data = null\n"
+ "], severity=2, charStart=457, lspCodeActions=\\[?((?!], ).|\n)*]?, languageServerId=org.eclipse.acceleo.aql.ide.ui.server, charEnd=470, message=Couldn't find the 'getMessage\\(EClassifier=EString\\)' service, lineNumber=13}"
| verify-true
get-property "getItems().TreeItem[2].getData().getMarker().getAttributes().toString()"
| matches "\\{lspDiagnostic=Diagnostic \\[\n"
+ " range = Range \\[\n"
+ " start = Position \\[\n"
+ " line = 23\n"
+ " character = 15\n"
+ " ]\n"
+ " end = Position \\[\n"
+ " line = 23\n"
+ " character = 28\n"
+ " ]\n"
+ " ]\n"
+ " severity = Error\n"
+ " code = null\n"
+ " codeDescription = null\n"
+ " source = \"Acceleo Validation\"\n"
+ " message = \"Couldn't find the 'getMessage\\(EClassifier=EString\\)' service\"\n"
+ " tags = null\n"
+ " relatedInformation = null\n"
+ " data = null\n"
+ "], severity=2, charStart=761, lspCodeActions=\\[?((?!], ).|\n)*]?, languageServerId=org.eclipse.acceleo.aql.ide.ui.server, charEnd=774, message=Couldn't find the 'getMessage\\(EClassifier=EString\\)' service, lineNumber=24}"
| verify-true
get-property "getItems().TreeItem[3].getData().getMarker().getAttributes().toString()"
| matches "\\{lspDiagnostic=Diagnostic \\[\n"
+ " range = Range \\[\n"
+ " start = Position \\[\n"
+ " line = 17\n"
+ " character = 15\n"
+ " ]\n"
+ " end = Position \\[\n"
+ " line = 17\n"
+ " character = 28\n"
+ " ]\n"
+ " ]\n"
+ " severity = Error\n"
+ " code = null\n"
+ " codeDescription = null\n"
+ " source = \"Acceleo Validation\"\n"
+ " message = \"Couldn't find the 'getMessage\\(EClassifier=EString\\)' service\"\n"
+ " tags = null\n"
+ " relatedInformation = null\n"
+ " data = null\n"
+ "], severity=2, charStart=559, lspCodeActions=\\[?((?!], ).|\n)*]?, languageServerId=org.eclipse.acceleo.aql.ide.ui.server, charEnd=572, message=Couldn't find the 'getMessage\\(EClassifier=EString\\)' service, lineNumber=18}"
| verify-true
get-property "getItems().TreeItem[4].getData().getMarker().getAttributes().toString()"
| matches "\\{lspDiagnostic=Diagnostic \\[\n"
+ " range = Range \\[\n"
+ " start = Position \\[\n"
+ " line = 12\n"
+ " character = 28\n"
+ " ]\n"
+ " end = Position \\[\n"
+ " line = 12\n"
+ " character = 41\n"
+ " ]\n"
+ " ]\n"
+ " severity = Error\n"
+ " code = null\n"
+ " codeDescription = null\n"
+ " source = \"Acceleo Validation\"\n"
+ " message = \"Couldn't find the 'getMessage\\(EClassifier=EString\\)' service\"\n"
+ " tags = null\n"
+ " relatedInformation = null\n"
+ " data = null\n"
+ "], severity=2, charStart=412, lspCodeActions=\\[?((?!], ).|\n)*]?, languageServerId=org.eclipse.acceleo.aql.ide.ui.server, charEnd=425, message=Couldn't find the 'getMessage\\(EClassifier=EString\\)' service, lineNumber=13}"
| verify-true
get-property "getItems().TreeItem[5].getData().getMarker().getAttributes().toString()"
| matches "\\{lspDiagnostic=Diagnostic \\[\n"
+ " range = Range \\[\n"
+ " start = Position \\[\n"
+ " line = 2\n"
+ " character = 8\n"
+ " ]\n"
+ " end = Position \\[\n"
+ " line = 2\n"
+ " character = 28\n"
+ " ]\n"
+ " ]\n"
+ " severity = Error\n"
+ " code = null\n"
+ " codeDescription = null\n"
+ " source = \"Acceleo Validation\"\n"
+ " message = \"Could not resolve test::ModuleServices\"\n"
+ " tags = null\n"
+ " relatedInformation = null\n"
+ " data = null\n"
+ "], severity=2, charStart=62, lspCodeActions=\\[?((?!], ).|\n)*]?, languageServerId=org.eclipse.acceleo.aql.ide.ui.server, charEnd=82, message=Could not resolve test::ModuleServices, lineNumber=3}"
| verify-true
get-property "getItems().TreeItem[6].getData().getMarker().getAttributes().toString()"
| matches "\\{lspDiagnostic=Diagnostic \\[\n"
+ " range = Range \\[\n"
+ " start = Position \\[\n"
+ " line = 3\n"
+ " character = 8\n"
+ " ]\n"
+ " end = Position \\[\n"
+ " line = 3\n"
+ " character = 28\n"
+ " ]\n"
+ " ]\n"
+ " severity = Error\n"
+ " code = null\n"
+ " codeDescription = null\n"
+ " source = \"Acceleo Validation\"\n"
+ " message = \"Could not resolve test::ModuleServices\"\n"
+ " tags = null\n"
+ " relatedInformation = null\n"
+ " data = null\n"
+ "], severity=2, charStart=86, lspCodeActions=\\[?((?!], ).|\n)*]?, languageServerId=org.eclipse.acceleo.aql.ide.ui.server, charEnd=106, message=Could not resolve test::ModuleServices, lineNumber=4}"
| verify-true
get-property "getItems().TreeItem[7].getData().getMarker().getAttributes().toString()"
| matches "\\{lspDiagnostic=Diagnostic \\[\n"
+ " range = Range \\[\n"
+ " start = Position \\[\n"
+ " line = 3\n"
+ " character = 8\n"
+ " ]\n"
+ " end = Position \\[\n"
+ " line = 3\n"
+ " character = 28\n"
+ " ]\n"
+ " ]\n"
+ " severity = Error\n"
+ " code = null\n"
+ " codeDescription = null\n"
+ " source = \"Acceleo Validation\"\n"
+ " message = \"Could not resolve test::ModuleServices\"\n"
+ " tags = null\n"
+ " relatedInformation = null\n"
+ " data = null\n"
+ "], severity=2, charStart=86, lspCodeActions=\\[?((?!], ).|\n)*]?, languageServerId=org.eclipse.acceleo.aql.ide.ui.server, charEnd=106, message=Could not resolve test::ModuleServices, lineNumber=4}"
| verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--