OLD | NEW |
1 Test for Debugger.getPossibleBreakpoints | 1 Test for Debugger.getPossibleBreakpoints |
2 | 2 |
3 Running test: getPossibleBreakpointsInRange | 3 Running test: getPossibleBreakpointsInRange |
4 Test start.scriptId != end.scriptId. | 4 Test start.scriptId != end.scriptId. |
5 { | 5 { |
6 error : { | 6 error : { |
7 code : -32000 | 7 code : -32000 |
8 message : Locations should contain the same scriptId | 8 message : Locations should contain the same scriptId |
9 } | 9 } |
10 id : <messageId> | 10 id : <messageId> |
11 } | 11 } |
12 Test not existing scriptId. | 12 Test not existing scriptId. |
13 { | 13 { |
14 error : { | 14 error : { |
15 code : -32000 | 15 code : -32000 |
16 message : Script not found | 16 message : Script not found |
17 } | 17 } |
18 id : <messageId> | 18 id : <messageId> |
19 } | 19 } |
20 Test end < start. | 20 Test end < start. |
21 { | 21 function foo(){ return Promise.resolve(); } |
22 id : <messageId> | 22 function boo(){ return Promise.resolve().then(() => 42); } |
23 result : { | 23 |
24 locations : [ | 24 |
25 ] | |
26 } | |
27 } | |
28 Test empty range in first line. | 25 Test empty range in first line. |
29 { | 26 function foo(){ return Promise.resolve(); } |
30 id : <messageId> | 27 function boo(){ return Promise.resolve().then(() => 42); } |
31 result : { | 28 |
32 locations : [ | 29 |
33 ] | |
34 } | |
35 } | |
36 Test one character range in first line. | 30 Test one character range in first line. |
37 { | 31 function foo(){ #return Promise.resolve(); } |
38 id : <messageId> | 32 function boo(){ return Promise.resolve().then(() => 42); } |
39 result : { | 33 |
40 locations : [ | 34 |
41 [0] : { | |
42 columnNumber : 16 | |
43 lineNumber : 0 | |
44 scriptId : <scriptId> | |
45 } | |
46 ] | |
47 } | |
48 } | |
49 Test empty range in not first line. | 35 Test empty range in not first line. |
50 { | 36 function foo(){ return Promise.resolve(); } |
51 id : <messageId> | 37 function boo(){ return Promise.resolve().then(() => 42); } |
52 result : { | 38 |
53 locations : [ | 39 |
54 ] | |
55 } | |
56 } | |
57 Test one character range in not first line. | 40 Test one character range in not first line. |
58 { | 41 function foo(){ return Promise.resolve(); } |
59 id : <messageId> | 42 function boo(){ #return Promise.resolve().then(() => 42); } |
60 result : { | 43 |
61 locations : [ | 44 |
62 [0] : { | |
63 columnNumber : 16 | |
64 lineNumber : 1 | |
65 scriptId : <scriptId> | |
66 } | |
67 ] | |
68 } | |
69 } | |
70 Test end is undefined | 45 Test end is undefined |
71 { | 46 function foo(){ #return Promise.#resolve(); #} |
72 id : <messageId> | 47 function boo(){ #return Promise.#resolve().#then(() => #42#); #} |
73 result : { | 48 # |
74 locations : [ | 49 |
75 [0] : { | |
76 columnNumber : 16 | |
77 lineNumber : 0 | |
78 scriptId : <scriptId> | |
79 } | |
80 [1] : { | |
81 columnNumber : 42 | |
82 lineNumber : 0 | |
83 scriptId : <scriptId> | |
84 } | |
85 [2] : { | |
86 columnNumber : 16 | |
87 lineNumber : 1 | |
88 scriptId : <scriptId> | |
89 } | |
90 [3] : { | |
91 columnNumber : 52 | |
92 lineNumber : 1 | |
93 scriptId : <scriptId> | |
94 } | |
95 [4] : { | |
96 columnNumber : 54 | |
97 lineNumber : 1 | |
98 scriptId : <scriptId> | |
99 } | |
100 [5] : { | |
101 columnNumber : 57 | |
102 lineNumber : 1 | |
103 scriptId : <scriptId> | |
104 } | |
105 [6] : { | |
106 columnNumber : 0 | |
107 lineNumber : 2 | |
108 scriptId : <scriptId> | |
109 } | |
110 ] | |
111 } | |
112 } | |
113 Test end.lineNumber > scripts.lineCount() | 50 Test end.lineNumber > scripts.lineCount() |
114 { | 51 function foo(){ #return Promise.#resolve(); #} |
115 id : <messageId> | 52 function boo(){ #return Promise.#resolve().#then(() => #42#); #} |
116 result : { | 53 # |
117 locations : [ | 54 |
118 [0] : { | |
119 columnNumber : 16 | |
120 lineNumber : 0 | |
121 scriptId : <scriptId> | |
122 } | |
123 [1] : { | |
124 columnNumber : 42 | |
125 lineNumber : 0 | |
126 scriptId : <scriptId> | |
127 } | |
128 [2] : { | |
129 columnNumber : 16 | |
130 lineNumber : 1 | |
131 scriptId : <scriptId> | |
132 } | |
133 [3] : { | |
134 columnNumber : 52 | |
135 lineNumber : 1 | |
136 scriptId : <scriptId> | |
137 } | |
138 [4] : { | |
139 columnNumber : 54 | |
140 lineNumber : 1 | |
141 scriptId : <scriptId> | |
142 } | |
143 [5] : { | |
144 columnNumber : 57 | |
145 lineNumber : 1 | |
146 scriptId : <scriptId> | |
147 } | |
148 [6] : { | |
149 columnNumber : 0 | |
150 lineNumber : 2 | |
151 scriptId : <scriptId> | |
152 } | |
153 ] | |
154 } | |
155 } | |
156 Test one string | 55 Test one string |
157 { | 56 function foo(){ #return Promise.#resolve(); #} |
158 id : <messageId> | 57 function boo(){ return Promise.resolve().then(() => 42); } |
159 result : { | 58 |
160 locations : [ | 59 |
161 [0] : { | |
162 columnNumber : 16 | |
163 lineNumber : 0 | |
164 scriptId : <scriptId> | |
165 } | |
166 [1] : { | |
167 columnNumber : 42 | |
168 lineNumber : 0 | |
169 scriptId : <scriptId> | |
170 } | |
171 ] | |
172 } | |
173 } | |
174 Test end.columnNumber > end.line.length(), should be the same as previous. | 60 Test end.columnNumber > end.line.length(), should be the same as previous. |
175 { | 61 function foo(){ #return Promise.#resolve(); #} |
176 id : <messageId> | 62 function boo(){ return Promise.resolve().then(() => 42); } |
177 result : { | 63 |
178 locations : [ | 64 |
179 [0] : { | |
180 columnNumber : 16 | |
181 lineNumber : 0 | |
182 scriptId : <scriptId> | |
183 } | |
184 [1] : { | |
185 columnNumber : 42 | |
186 lineNumber : 0 | |
187 scriptId : <scriptId> | |
188 } | |
189 ] | |
190 } | |
191 } | |
192 | 65 |
193 Running test: getPossibleBreakpointsInArrow | 66 Running test: getPossibleBreakpointsInArrow |
194 { | 67 function foo() { #return Promise.#resolve().#then(() => #239#).#then(() => #42#)
.#then(() => #() => #42#) #} |
195 id : <messageId> | |
196 result : { | |
197 locations : [ | |
198 [0] : { | |
199 columnNumber : 17 | |
200 lineNumber : 0 | |
201 scriptId : <scriptId> | |
202 } | |
203 [1] : { | |
204 columnNumber : 53 | |
205 lineNumber : 0 | |
206 scriptId : <scriptId> | |
207 } | |
208 [2] : { | |
209 columnNumber : 56 | |
210 lineNumber : 0 | |
211 scriptId : <scriptId> | |
212 } | |
213 [3] : { | |
214 columnNumber : 69 | |
215 lineNumber : 0 | |
216 scriptId : <scriptId> | |
217 } | |
218 [4] : { | |
219 columnNumber : 71 | |
220 lineNumber : 0 | |
221 scriptId : <scriptId> | |
222 } | |
223 [5] : { | |
224 columnNumber : 84 | |
225 lineNumber : 0 | |
226 scriptId : <scriptId> | |
227 } | |
228 [6] : { | |
229 columnNumber : 90 | |
230 lineNumber : 0 | |
231 scriptId : <scriptId> | |
232 } | |
233 [7] : { | |
234 columnNumber : 92 | |
235 lineNumber : 0 | |
236 scriptId : <scriptId> | |
237 } | |
238 [8] : { | |
239 columnNumber : 94 | |
240 lineNumber : 0 | |
241 scriptId : <scriptId> | |
242 } | |
243 ] | |
244 } | |
245 } | |
246 | 68 |
247 Running test: arrowFunctionFirstLine | 69 Running test: arrowFunctionFirstLine |
248 { | 70 function foo1() { #Promise.#resolve().#then(() => #42#) #} |
249 id : <messageId> | 71 function foo2() { Promise.resolve().then(() => 42) } |
250 result : { | 72 paused in foo1 |
251 locations : [ | 73 function foo1() { ^Promise.resolve().then(() => 42) } |
252 [0] : { | 74 function foo2() { Promise.resolve().then(() => 42) } |
253 columnNumber : 18 | 75 paused in foo1 |
254 lineNumber : 0 | 76 function foo1() { Promise.^resolve().then(() => 42) } |
255 scriptId : <scriptId> | 77 function foo2() { Promise.resolve().then(() => 42) } |
256 } | 78 paused in foo1 |
257 [1] : { | 79 function foo1() { Promise.resolve().^then(() => 42) } |
258 columnNumber : 47 | 80 function foo2() { Promise.resolve().then(() => 42) } |
259 lineNumber : 0 | 81 paused in foo1 |
260 scriptId : <scriptId> | 82 function foo1() { Promise.resolve().then(() => 42) ^} |
261 } | 83 function foo2() { Promise.resolve().then(() => 42) } |
262 [2] : { | 84 paused in Promise.resolve.then |
263 columnNumber : 49 | 85 function foo1() { Promise.resolve().then(() => ^42) } |
264 lineNumber : 0 | 86 function foo2() { Promise.resolve().then(() => 42) } |
265 scriptId : <scriptId> | 87 paused in Promise.resolve.then |
266 } | 88 function foo1() { Promise.resolve().then(() => 42^) } |
267 [3] : { | 89 function foo2() { Promise.resolve().then(() => 42) } |
268 columnNumber : 51 | |
269 lineNumber : 0 | |
270 scriptId : <scriptId> | |
271 } | |
272 ] | |
273 } | |
274 } | |
275 { | |
276 id : <messageId> | |
277 result : { | |
278 actualLocation : { | |
279 columnNumber : 18 | |
280 lineNumber : 0 | |
281 scriptId : <scriptId> | |
282 } | |
283 breakpointId : <breakpointId> | |
284 } | |
285 } | |
286 { | |
287 id : <messageId> | |
288 result : { | |
289 actualLocation : { | |
290 columnNumber : 47 | |
291 lineNumber : 0 | |
292 scriptId : <scriptId> | |
293 } | |
294 breakpointId : <breakpointId> | |
295 } | |
296 } | |
297 { | |
298 id : <messageId> | |
299 result : { | |
300 actualLocation : { | |
301 columnNumber : 49 | |
302 lineNumber : 0 | |
303 scriptId : <scriptId> | |
304 } | |
305 breakpointId : <breakpointId> | |
306 } | |
307 } | |
308 { | |
309 id : <messageId> | |
310 result : { | |
311 actualLocation : { | |
312 columnNumber : 51 | |
313 lineNumber : 0 | |
314 scriptId : <scriptId> | |
315 } | |
316 breakpointId : <breakpointId> | |
317 } | |
318 } | |
319 paused in foo1 | |
320 { | |
321 columnNumber : 18 | |
322 lineNumber : 0 | |
323 scriptId : <scriptId> | |
324 } | |
325 paused in foo1 | |
326 { | |
327 columnNumber : 51 | |
328 lineNumber : 0 | |
329 scriptId : <scriptId> | |
330 } | |
331 paused in Promise.resolve.then | |
332 { | |
333 columnNumber : 47 | |
334 lineNumber : 0 | |
335 scriptId : <scriptId> | |
336 } | |
337 paused in Promise.resolve.then | |
338 { | |
339 columnNumber : 49 | |
340 lineNumber : 0 | |
341 scriptId : <scriptId> | |
342 } | |
343 | 90 |
344 Running test: arrowFunctionOnPause | 91 Running test: arrowFunctionOnPause |
345 { | 92 #debugger; function foo3() { #Promise.#resolve().#then(() => #42#) #} |
346 id : <messageId> | 93 function foo4() { #Promise.#resolve().#then(() => #42#) #}; |
347 result : { | 94 #foo3(); |
348 locations : [ | 95 #foo4()#; |
349 [0] : { | |
350 columnNumber : 0 | |
351 lineNumber : 0 | |
352 scriptId : <scriptId> | |
353 } | |
354 [1] : { | |
355 columnNumber : 28 | |
356 lineNumber : 0 | |
357 scriptId : <scriptId> | |
358 } | |
359 [2] : { | |
360 columnNumber : 57 | |
361 lineNumber : 0 | |
362 scriptId : <scriptId> | |
363 } | |
364 [3] : { | |
365 columnNumber : 59 | |
366 lineNumber : 0 | |
367 scriptId : <scriptId> | |
368 } | |
369 [4] : { | |
370 columnNumber : 61 | |
371 lineNumber : 0 | |
372 scriptId : <scriptId> | |
373 } | |
374 [5] : { | |
375 columnNumber : 18 | |
376 lineNumber : 1 | |
377 scriptId : <scriptId> | |
378 } | |
379 [6] : { | |
380 columnNumber : 47 | |
381 lineNumber : 1 | |
382 scriptId : <scriptId> | |
383 } | |
384 [7] : { | |
385 columnNumber : 49 | |
386 lineNumber : 1 | |
387 scriptId : <scriptId> | |
388 } | |
389 [8] : { | |
390 columnNumber : 51 | |
391 lineNumber : 1 | |
392 scriptId : <scriptId> | |
393 } | |
394 [9] : { | |
395 columnNumber : 0 | |
396 lineNumber : 2 | |
397 scriptId : <scriptId> | |
398 } | |
399 [10] : { | |
400 columnNumber : 0 | |
401 lineNumber : 3 | |
402 scriptId : <scriptId> | |
403 } | |
404 [11] : { | |
405 columnNumber : 6 | |
406 lineNumber : 3 | |
407 scriptId : <scriptId> | |
408 } | |
409 ] | |
410 } | |
411 } | |
412 { | |
413 id : <messageId> | |
414 result : { | |
415 actualLocation : { | |
416 columnNumber : 0 | |
417 lineNumber : 0 | |
418 scriptId : <scriptId> | |
419 } | |
420 breakpointId : <breakpointId> | |
421 } | |
422 } | |
423 { | |
424 id : <messageId> | |
425 result : { | |
426 actualLocation : { | |
427 columnNumber : 28 | |
428 lineNumber : 0 | |
429 scriptId : <scriptId> | |
430 } | |
431 breakpointId : <breakpointId> | |
432 } | |
433 } | |
434 { | |
435 id : <messageId> | |
436 result : { | |
437 actualLocation : { | |
438 columnNumber : 57 | |
439 lineNumber : 0 | |
440 scriptId : <scriptId> | |
441 } | |
442 breakpointId : <breakpointId> | |
443 } | |
444 } | |
445 { | |
446 id : <messageId> | |
447 result : { | |
448 actualLocation : { | |
449 columnNumber : 59 | |
450 lineNumber : 0 | |
451 scriptId : <scriptId> | |
452 } | |
453 breakpointId : <breakpointId> | |
454 } | |
455 } | |
456 { | |
457 id : <messageId> | |
458 result : { | |
459 actualLocation : { | |
460 columnNumber : 61 | |
461 lineNumber : 0 | |
462 scriptId : <scriptId> | |
463 } | |
464 breakpointId : <breakpointId> | |
465 } | |
466 } | |
467 { | |
468 id : <messageId> | |
469 result : { | |
470 actualLocation : { | |
471 columnNumber : 18 | |
472 lineNumber : 1 | |
473 scriptId : <scriptId> | |
474 } | |
475 breakpointId : <breakpointId> | |
476 } | |
477 } | |
478 { | |
479 id : <messageId> | |
480 result : { | |
481 actualLocation : { | |
482 columnNumber : 47 | |
483 lineNumber : 1 | |
484 scriptId : <scriptId> | |
485 } | |
486 breakpointId : <breakpointId> | |
487 } | |
488 } | |
489 { | |
490 id : <messageId> | |
491 result : { | |
492 actualLocation : { | |
493 columnNumber : 49 | |
494 lineNumber : 1 | |
495 scriptId : <scriptId> | |
496 } | |
497 breakpointId : <breakpointId> | |
498 } | |
499 } | |
500 { | |
501 id : <messageId> | |
502 result : { | |
503 actualLocation : { | |
504 columnNumber : 51 | |
505 lineNumber : 1 | |
506 scriptId : <scriptId> | |
507 } | |
508 breakpointId : <breakpointId> | |
509 } | |
510 } | |
511 { | |
512 id : <messageId> | |
513 result : { | |
514 actualLocation : { | |
515 columnNumber : 0 | |
516 lineNumber : 2 | |
517 scriptId : <scriptId> | |
518 } | |
519 breakpointId : <breakpointId> | |
520 } | |
521 } | |
522 { | |
523 id : <messageId> | |
524 result : { | |
525 actualLocation : { | |
526 columnNumber : 0 | |
527 lineNumber : 3 | |
528 scriptId : <scriptId> | |
529 } | |
530 breakpointId : <breakpointId> | |
531 } | |
532 } | |
533 { | |
534 id : <messageId> | |
535 result : { | |
536 actualLocation : { | |
537 columnNumber : 6 | |
538 lineNumber : 3 | |
539 scriptId : <scriptId> | |
540 } | |
541 breakpointId : <breakpointId> | |
542 } | |
543 } | |
544 paused in | 96 paused in |
545 { | 97 debugger; function foo3() { Promise.resolve().then(() => 42) } |
546 columnNumber : 0 | 98 function foo4() { Promise.resolve().then(() => 42) }; |
547 lineNumber : 2 | 99 ^foo3(); |
548 scriptId : <scriptId> | 100 foo4(); |
549 } | 101 paused in foo3 |
550 paused in foo3 | 102 debugger; function foo3() { ^Promise.resolve().then(() => 42) } |
551 { | 103 function foo4() { Promise.resolve().then(() => 42) }; |
552 columnNumber : 28 | 104 foo3(); |
553 lineNumber : 0 | 105 foo4(); |
554 scriptId : <scriptId> | 106 paused in foo3 |
555 } | 107 debugger; function foo3() { Promise.^resolve().then(() => 42) } |
556 paused in foo3 | 108 function foo4() { Promise.resolve().then(() => 42) }; |
557 { | 109 foo3(); |
558 columnNumber : 61 | 110 foo4(); |
559 lineNumber : 0 | 111 paused in foo3 |
560 scriptId : <scriptId> | 112 debugger; function foo3() { Promise.resolve().^then(() => 42) } |
561 } | 113 function foo4() { Promise.resolve().then(() => 42) }; |
| 114 foo3(); |
| 115 foo4(); |
| 116 paused in foo3 |
| 117 debugger; function foo3() { Promise.resolve().then(() => 42) ^} |
| 118 function foo4() { Promise.resolve().then(() => 42) }; |
| 119 foo3(); |
| 120 foo4(); |
562 paused in | 121 paused in |
563 { | 122 debugger; function foo3() { Promise.resolve().then(() => 42) } |
564 columnNumber : 0 | 123 function foo4() { Promise.resolve().then(() => 42) }; |
565 lineNumber : 3 | 124 foo3(); |
566 scriptId : <scriptId> | 125 ^foo4(); |
567 } | 126 paused in foo4 |
568 paused in foo4 | 127 debugger; function foo3() { Promise.resolve().then(() => 42) } |
569 { | 128 function foo4() { ^Promise.resolve().then(() => 42) }; |
570 columnNumber : 18 | 129 foo3(); |
571 lineNumber : 1 | 130 foo4(); |
572 scriptId : <scriptId> | 131 paused in foo4 |
573 } | 132 debugger; function foo3() { Promise.resolve().then(() => 42) } |
574 paused in foo4 | 133 function foo4() { Promise.^resolve().then(() => 42) }; |
575 { | 134 foo3(); |
576 columnNumber : 51 | 135 foo4(); |
577 lineNumber : 1 | 136 paused in foo4 |
578 scriptId : <scriptId> | 137 debugger; function foo3() { Promise.resolve().then(() => 42) } |
579 } | 138 function foo4() { Promise.resolve().^then(() => 42) }; |
| 139 foo3(); |
| 140 foo4(); |
| 141 paused in foo4 |
| 142 debugger; function foo3() { Promise.resolve().then(() => 42) } |
| 143 function foo4() { Promise.resolve().then(() => 42) ^}; |
| 144 foo3(); |
| 145 foo4(); |
580 paused in | 146 paused in |
581 { | 147 debugger; function foo3() { Promise.resolve().then(() => 42) } |
582 columnNumber : 6 | 148 function foo4() { Promise.resolve().then(() => 42) }; |
583 lineNumber : 3 | 149 foo3(); |
584 scriptId : <scriptId> | 150 foo4()^; |
585 } | 151 paused in Promise.resolve.then |
586 paused in Promise.resolve.then | 152 debugger; function foo3() { Promise.resolve().then(() => ^42) } |
587 { | 153 function foo4() { Promise.resolve().then(() => 42) }; |
588 columnNumber : 57 | 154 foo3(); |
589 lineNumber : 0 | 155 foo4(); |
590 scriptId : <scriptId> | 156 paused in Promise.resolve.then |
591 } | 157 debugger; function foo3() { Promise.resolve().then(() => 42^) } |
592 paused in Promise.resolve.then | 158 function foo4() { Promise.resolve().then(() => 42) }; |
593 { | 159 foo3(); |
594 columnNumber : 59 | 160 foo4(); |
595 lineNumber : 0 | 161 paused in Promise.resolve.then |
596 scriptId : <scriptId> | 162 debugger; function foo3() { Promise.resolve().then(() => 42) } |
597 } | 163 function foo4() { Promise.resolve().then(() => ^42) }; |
598 paused in Promise.resolve.then | 164 foo3(); |
599 { | 165 foo4(); |
600 columnNumber : 47 | 166 paused in Promise.resolve.then |
601 lineNumber : 1 | 167 debugger; function foo3() { Promise.resolve().then(() => 42) } |
602 scriptId : <scriptId> | 168 function foo4() { Promise.resolve().then(() => 42^) }; |
603 } | 169 foo3(); |
604 paused in Promise.resolve.then | 170 foo4(); |
605 { | |
606 columnNumber : 49 | |
607 lineNumber : 1 | |
608 scriptId : <scriptId> | |
609 } | |
610 | 171 |
611 Running test: getPossibleBreakpointsInRangeWithOffset | 172 Running test: getPossibleBreakpointsInRangeWithOffset |
612 Test empty range in first line. | 173 Test empty range in first line. |
613 { | 174 function foo(){ return Promise.resolve(); } |
614 id : <messageId> | 175 function boo(){ return Promise.resolve().then(() => 42); } |
615 result : { | 176 |
616 locations : [ | 177 |
617 ] | |
618 } | |
619 } | |
620 Test one character range in first line. | 178 Test one character range in first line. |
621 { | 179 function foo(){ #return Promise.resolve(); } |
622 id : <messageId> | 180 function boo(){ return Promise.resolve().then(() => 42); } |
623 result : { | 181 |
624 locations : [ | 182 |
625 [0] : { | |
626 columnNumber : 17 | |
627 lineNumber : 1 | |
628 scriptId : <scriptId> | |
629 } | |
630 ] | |
631 } | |
632 } | |
633 Test empty range in not first line. | 183 Test empty range in not first line. |
634 { | 184 function foo(){ return Promise.resolve(); } |
635 id : <messageId> | 185 function boo(){ return Promise.resolve().then(() => 42); } |
636 result : { | 186 |
637 locations : [ | 187 |
638 ] | |
639 } | |
640 } | |
641 Test one character range in not first line. | 188 Test one character range in not first line. |
642 { | 189 function foo(){ return Promise.resolve(); } |
643 id : <messageId> | 190 function boo(){ #return Promise.resolve().then(() => 42); } |
644 result : { | 191 |
645 locations : [ | 192 |
646 [0] : { | |
647 columnNumber : 16 | |
648 lineNumber : 2 | |
649 scriptId : <scriptId> | |
650 } | |
651 ] | |
652 } | |
653 } | |
654 Test end is undefined | 193 Test end is undefined |
655 { | 194 function foo(){ #return Promise.#resolve(); #} |
656 id : <messageId> | 195 function boo(){ #return Promise.#resolve().#then(() => #42#); #} |
657 result : { | 196 # |
658 locations : [ | 197 |
659 [0] : { | |
660 columnNumber : 17 | |
661 lineNumber : 1 | |
662 scriptId : <scriptId> | |
663 } | |
664 [1] : { | |
665 columnNumber : 43 | |
666 lineNumber : 1 | |
667 scriptId : <scriptId> | |
668 } | |
669 [2] : { | |
670 columnNumber : 16 | |
671 lineNumber : 2 | |
672 scriptId : <scriptId> | |
673 } | |
674 [3] : { | |
675 columnNumber : 52 | |
676 lineNumber : 2 | |
677 scriptId : <scriptId> | |
678 } | |
679 [4] : { | |
680 columnNumber : 54 | |
681 lineNumber : 2 | |
682 scriptId : <scriptId> | |
683 } | |
684 [5] : { | |
685 columnNumber : 57 | |
686 lineNumber : 2 | |
687 scriptId : <scriptId> | |
688 } | |
689 [6] : { | |
690 columnNumber : 0 | |
691 lineNumber : 3 | |
692 scriptId : <scriptId> | |
693 } | |
694 ] | |
695 } | |
696 } | |
697 Test end.lineNumber > scripts.lineCount() | 198 Test end.lineNumber > scripts.lineCount() |
698 { | 199 function foo(){ #return Promise.#resolve(); #} |
699 id : <messageId> | 200 function boo(){ #return Promise.#resolve().#then(() => #42#); #} |
700 result : { | 201 # |
701 locations : [ | 202 |
702 [0] : { | |
703 columnNumber : 17 | |
704 lineNumber : 1 | |
705 scriptId : <scriptId> | |
706 } | |
707 [1] : { | |
708 columnNumber : 43 | |
709 lineNumber : 1 | |
710 scriptId : <scriptId> | |
711 } | |
712 [2] : { | |
713 columnNumber : 16 | |
714 lineNumber : 2 | |
715 scriptId : <scriptId> | |
716 } | |
717 [3] : { | |
718 columnNumber : 52 | |
719 lineNumber : 2 | |
720 scriptId : <scriptId> | |
721 } | |
722 [4] : { | |
723 columnNumber : 54 | |
724 lineNumber : 2 | |
725 scriptId : <scriptId> | |
726 } | |
727 [5] : { | |
728 columnNumber : 57 | |
729 lineNumber : 2 | |
730 scriptId : <scriptId> | |
731 } | |
732 [6] : { | |
733 columnNumber : 0 | |
734 lineNumber : 3 | |
735 scriptId : <scriptId> | |
736 } | |
737 ] | |
738 } | |
739 } | |
740 Test one string | 203 Test one string |
741 { | 204 function foo(){ #return Promise.#resolve(); #} |
742 id : <messageId> | 205 function boo(){ return Promise.resolve().then(() => 42); } |
743 result : { | 206 |
744 locations : [ | 207 |
745 [0] : { | |
746 columnNumber : 17 | |
747 lineNumber : 1 | |
748 scriptId : <scriptId> | |
749 } | |
750 [1] : { | |
751 columnNumber : 43 | |
752 lineNumber : 1 | |
753 scriptId : <scriptId> | |
754 } | |
755 ] | |
756 } | |
757 } | |
758 Test end.columnNumber > end.line.length(), should be the same as previous. | 208 Test end.columnNumber > end.line.length(), should be the same as previous. |
759 { | 209 function foo(){ #return Promise.#resolve(); #} |
760 id : <messageId> | 210 function boo(){ return Promise.resolve().then(() => 42); } |
761 result : { | 211 |
762 locations : [ | 212 |
763 [0] : { | |
764 columnNumber : 17 | |
765 lineNumber : 1 | |
766 scriptId : <scriptId> | |
767 } | |
768 [1] : { | |
769 columnNumber : 43 | |
770 lineNumber : 1 | |
771 scriptId : <scriptId> | |
772 } | |
773 ] | |
774 } | |
775 } | |
776 | 213 |
777 Running test: withOffset | 214 Running test: withOffset |
778 { | 215 function foo5() { #Promise.#resolve().#then(() => #42#) #} |
779 id : <messageId> | 216 function foo6() { #Promise.#resolve().#then(() => #42#) #} |
780 result : { | 217 paused in foo5 |
781 locations : [ | 218 function foo5() { ^Promise.resolve().then(() => 42) } |
782 [0] : { | 219 function foo6() { Promise.resolve().then(() => 42) } |
783 columnNumber : 36 | 220 paused in foo5 |
784 lineNumber : 3 | 221 function foo5() { Promise.^resolve().then(() => 42) } |
785 scriptId : <scriptId> | 222 function foo6() { Promise.resolve().then(() => 42) } |
786 } | 223 paused in foo5 |
787 [1] : { | 224 function foo5() { Promise.resolve().^then(() => 42) } |
788 columnNumber : 65 | 225 function foo6() { Promise.resolve().then(() => 42) } |
789 lineNumber : 3 | 226 paused in foo5 |
790 scriptId : <scriptId> | 227 function foo5() { Promise.resolve().then(() => 42) ^} |
791 } | 228 function foo6() { Promise.resolve().then(() => 42) } |
792 [2] : { | 229 paused in foo6 |
793 columnNumber : 67 | 230 function foo5() { Promise.resolve().then(() => 42) } |
794 lineNumber : 3 | 231 function foo6() { ^Promise.resolve().then(() => 42) } |
795 scriptId : <scriptId> | 232 paused in foo6 |
796 } | 233 function foo5() { Promise.resolve().then(() => 42) } |
797 [3] : { | 234 function foo6() { Promise.^resolve().then(() => 42) } |
798 columnNumber : 69 | 235 paused in foo6 |
799 lineNumber : 3 | 236 function foo5() { Promise.resolve().then(() => 42) } |
800 scriptId : <scriptId> | 237 function foo6() { Promise.resolve().^then(() => 42) } |
801 } | 238 paused in foo6 |
802 [4] : { | 239 function foo5() { Promise.resolve().then(() => 42) } |
803 columnNumber : 18 | 240 function foo6() { Promise.resolve().then(() => 42) ^} |
804 lineNumber : 4 | 241 paused in Promise.resolve.then |
805 scriptId : <scriptId> | 242 function foo5() { Promise.resolve().then(() => ^42) } |
806 } | 243 function foo6() { Promise.resolve().then(() => 42) } |
807 [5] : { | 244 paused in Promise.resolve.then |
808 columnNumber : 47 | 245 function foo5() { Promise.resolve().then(() => 42^) } |
809 lineNumber : 4 | 246 function foo6() { Promise.resolve().then(() => 42) } |
810 scriptId : <scriptId> | 247 paused in Promise.resolve.then |
811 } | 248 function foo5() { Promise.resolve().then(() => 42) } |
812 [6] : { | 249 function foo6() { Promise.resolve().then(() => ^42) } |
813 columnNumber : 49 | 250 paused in Promise.resolve.then |
814 lineNumber : 4 | 251 function foo5() { Promise.resolve().then(() => 42) } |
815 scriptId : <scriptId> | 252 function foo6() { Promise.resolve().then(() => 42^) } |
816 } | |
817 [7] : { | |
818 columnNumber : 51 | |
819 lineNumber : 4 | |
820 scriptId : <scriptId> | |
821 } | |
822 ] | |
823 } | |
824 } | |
825 { | |
826 id : <messageId> | |
827 result : { | |
828 actualLocation : { | |
829 columnNumber : 36 | |
830 lineNumber : 3 | |
831 scriptId : <scriptId> | |
832 } | |
833 breakpointId : <breakpointId> | |
834 } | |
835 } | |
836 { | |
837 id : <messageId> | |
838 result : { | |
839 actualLocation : { | |
840 columnNumber : 65 | |
841 lineNumber : 3 | |
842 scriptId : <scriptId> | |
843 } | |
844 breakpointId : <breakpointId> | |
845 } | |
846 } | |
847 { | |
848 id : <messageId> | |
849 result : { | |
850 actualLocation : { | |
851 columnNumber : 67 | |
852 lineNumber : 3 | |
853 scriptId : <scriptId> | |
854 } | |
855 breakpointId : <breakpointId> | |
856 } | |
857 } | |
858 { | |
859 id : <messageId> | |
860 result : { | |
861 actualLocation : { | |
862 columnNumber : 69 | |
863 lineNumber : 3 | |
864 scriptId : <scriptId> | |
865 } | |
866 breakpointId : <breakpointId> | |
867 } | |
868 } | |
869 { | |
870 id : <messageId> | |
871 result : { | |
872 actualLocation : { | |
873 columnNumber : 18 | |
874 lineNumber : 4 | |
875 scriptId : <scriptId> | |
876 } | |
877 breakpointId : <breakpointId> | |
878 } | |
879 } | |
880 { | |
881 id : <messageId> | |
882 result : { | |
883 actualLocation : { | |
884 columnNumber : 47 | |
885 lineNumber : 4 | |
886 scriptId : <scriptId> | |
887 } | |
888 breakpointId : <breakpointId> | |
889 } | |
890 } | |
891 { | |
892 id : <messageId> | |
893 result : { | |
894 actualLocation : { | |
895 columnNumber : 49 | |
896 lineNumber : 4 | |
897 scriptId : <scriptId> | |
898 } | |
899 breakpointId : <breakpointId> | |
900 } | |
901 } | |
902 { | |
903 id : <messageId> | |
904 result : { | |
905 actualLocation : { | |
906 columnNumber : 51 | |
907 lineNumber : 4 | |
908 scriptId : <scriptId> | |
909 } | |
910 breakpointId : <breakpointId> | |
911 } | |
912 } | |
913 paused in foo5 | |
914 { | |
915 columnNumber : 36 | |
916 lineNumber : 3 | |
917 scriptId : <scriptId> | |
918 } | |
919 paused in foo5 | |
920 { | |
921 columnNumber : 69 | |
922 lineNumber : 3 | |
923 scriptId : <scriptId> | |
924 } | |
925 paused in foo6 | |
926 { | |
927 columnNumber : 18 | |
928 lineNumber : 4 | |
929 scriptId : <scriptId> | |
930 } | |
931 paused in foo6 | |
932 { | |
933 columnNumber : 51 | |
934 lineNumber : 4 | |
935 scriptId : <scriptId> | |
936 } | |
937 paused in Promise.resolve.then | |
938 { | |
939 columnNumber : 65 | |
940 lineNumber : 3 | |
941 scriptId : <scriptId> | |
942 } | |
943 paused in Promise.resolve.then | |
944 { | |
945 columnNumber : 67 | |
946 lineNumber : 3 | |
947 scriptId : <scriptId> | |
948 } | |
949 paused in Promise.resolve.then | |
950 { | |
951 columnNumber : 47 | |
952 lineNumber : 4 | |
953 scriptId : <scriptId> | |
954 } | |
955 paused in Promise.resolve.then | |
956 { | |
957 columnNumber : 49 | |
958 lineNumber : 4 | |
959 scriptId : <scriptId> | |
960 } | |
961 | 253 |
962 Running test: arrowFunctionReturn | 254 Running test: arrowFunctionReturn |
963 { | 255 #() => #239# |
964 id : <messageId> | 256 |
965 result : { | 257 function foo() { function boo() { #return 239 #} #}# |
966 locations : [ | 258 |
967 [0] : { | 259 #() => { #239 #}# |
968 columnNumber : 0 | 260 |
969 lineNumber : 0 | 261 function foo() { #239 #}# |
970 scriptId : <scriptId> | 262 |
971 } | 263 #() => #23#9# |
972 [1] : { | 264 #() => { #return 239 #} |
973 columnNumber : 6 | 265 |
974 lineNumber : 0 | 266 Running test: argumentsAsCalls |
975 scriptId : <scriptId> | 267 function foo(){#} |
976 } | 268 function boo(){#} |
977 [2] : { | 269 function main(f1,f2){#} |
978 columnNumber : 9 | 270 #main(#foo(), #boo());# |
979 lineNumber : 0 | 271 |
980 scriptId : <scriptId> | |
981 } | |
982 ] | |
983 } | |
984 } | |
985 { | |
986 id : <messageId> | |
987 result : { | |
988 locations : [ | |
989 [0] : { | |
990 columnNumber : 34 | |
991 lineNumber : 0 | |
992 scriptId : <scriptId> | |
993 } | |
994 [1] : { | |
995 columnNumber : 45 | |
996 lineNumber : 0 | |
997 scriptId : <scriptId> | |
998 } | |
999 [2] : { | |
1000 columnNumber : 48 | |
1001 lineNumber : 0 | |
1002 scriptId : <scriptId> | |
1003 } | |
1004 [3] : { | |
1005 columnNumber : 49 | |
1006 lineNumber : 0 | |
1007 scriptId : <scriptId> | |
1008 } | |
1009 ] | |
1010 } | |
1011 } | |
1012 { | |
1013 id : <messageId> | |
1014 result : { | |
1015 locations : [ | |
1016 [0] : { | |
1017 columnNumber : 0 | |
1018 lineNumber : 0 | |
1019 scriptId : <scriptId> | |
1020 } | |
1021 [1] : { | |
1022 columnNumber : 8 | |
1023 lineNumber : 0 | |
1024 scriptId : <scriptId> | |
1025 } | |
1026 [2] : { | |
1027 columnNumber : 12 | |
1028 lineNumber : 0 | |
1029 scriptId : <scriptId> | |
1030 } | |
1031 [3] : { | |
1032 columnNumber : 13 | |
1033 lineNumber : 0 | |
1034 scriptId : <scriptId> | |
1035 } | |
1036 ] | |
1037 } | |
1038 } | |
1039 { | |
1040 id : <messageId> | |
1041 result : { | |
1042 locations : [ | |
1043 [0] : { | |
1044 columnNumber : 17 | |
1045 lineNumber : 0 | |
1046 scriptId : <scriptId> | |
1047 } | |
1048 [1] : { | |
1049 columnNumber : 21 | |
1050 lineNumber : 0 | |
1051 scriptId : <scriptId> | |
1052 } | |
1053 [2] : { | |
1054 columnNumber : 22 | |
1055 lineNumber : 0 | |
1056 scriptId : <scriptId> | |
1057 } | |
1058 ] | |
1059 } | |
1060 } | |
1061 { | |
1062 id : <messageId> | |
1063 result : { | |
1064 locations : [ | |
1065 [0] : { | |
1066 columnNumber : 0 | |
1067 lineNumber : 0 | |
1068 scriptId : <scriptId> | |
1069 } | |
1070 [1] : { | |
1071 columnNumber : 6 | |
1072 lineNumber : 0 | |
1073 scriptId : <scriptId> | |
1074 } | |
1075 [2] : { | |
1076 columnNumber : 8 | |
1077 lineNumber : 0 | |
1078 scriptId : <scriptId> | |
1079 } | |
1080 [3] : { | |
1081 columnNumber : 9 | |
1082 lineNumber : 0 | |
1083 scriptId : <scriptId> | |
1084 } | |
1085 ] | |
1086 } | |
1087 } | |
1088 { | |
1089 id : <messageId> | |
1090 result : { | |
1091 locations : [ | |
1092 [0] : { | |
1093 columnNumber : 0 | |
1094 lineNumber : 0 | |
1095 scriptId : <scriptId> | |
1096 } | |
1097 [1] : { | |
1098 columnNumber : 8 | |
1099 lineNumber : 0 | |
1100 scriptId : <scriptId> | |
1101 } | |
1102 [2] : { | |
1103 columnNumber : 19 | |
1104 lineNumber : 0 | |
1105 scriptId : <scriptId> | |
1106 } | |
1107 ] | |
1108 } | |
1109 } | |
OLD | NEW |