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 function foo(){ return Promise.resolve(); } | 21 { |
22 function boo(){ return Promise.resolve().then(() => 42); } | 22 id : <messageId> |
23 | 23 result : { |
24 | 24 locations : [ |
| 25 ] |
| 26 } |
| 27 } |
25 Test empty range in first line. | 28 Test empty range in first line. |
26 function foo(){ return Promise.resolve(); } | 29 { |
27 function boo(){ return Promise.resolve().then(() => 42); } | 30 id : <messageId> |
28 | 31 result : { |
29 | 32 locations : [ |
| 33 ] |
| 34 } |
| 35 } |
30 Test one character range in first line. | 36 Test one character range in first line. |
31 function foo(){ #return Promise.resolve(); } | 37 { |
32 function boo(){ return Promise.resolve().then(() => 42); } | 38 id : <messageId> |
33 | 39 result : { |
34 | 40 locations : [ |
| 41 [0] : { |
| 42 columnNumber : 16 |
| 43 lineNumber : 0 |
| 44 scriptId : <scriptId> |
| 45 } |
| 46 ] |
| 47 } |
| 48 } |
35 Test empty range in not first line. | 49 Test empty range in not first line. |
36 function foo(){ return Promise.resolve(); } | 50 { |
37 function boo(){ return Promise.resolve().then(() => 42); } | 51 id : <messageId> |
38 | 52 result : { |
39 | 53 locations : [ |
| 54 ] |
| 55 } |
| 56 } |
40 Test one character range in not first line. | 57 Test one character range in not first line. |
41 function foo(){ return Promise.resolve(); } | 58 { |
42 function boo(){ #return Promise.resolve().then(() => 42); } | 59 id : <messageId> |
43 | 60 result : { |
44 | 61 locations : [ |
| 62 [0] : { |
| 63 columnNumber : 16 |
| 64 lineNumber : 1 |
| 65 scriptId : <scriptId> |
| 66 } |
| 67 ] |
| 68 } |
| 69 } |
45 Test end is undefined | 70 Test end is undefined |
46 function foo(){ #return Promise.#resolve(); #} | 71 { |
47 function boo(){ #return Promise.#resolve().#then(() => #42#); #} | 72 id : <messageId> |
48 # | 73 result : { |
49 | 74 locations : [ |
| 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 } |
50 Test end.lineNumber > scripts.lineCount() | 113 Test end.lineNumber > scripts.lineCount() |
51 function foo(){ #return Promise.#resolve(); #} | 114 { |
52 function boo(){ #return Promise.#resolve().#then(() => #42#); #} | 115 id : <messageId> |
53 # | 116 result : { |
54 | 117 locations : [ |
| 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 } |
55 Test one string | 156 Test one string |
56 function foo(){ #return Promise.#resolve(); #} | 157 { |
57 function boo(){ return Promise.resolve().then(() => 42); } | 158 id : <messageId> |
58 | 159 result : { |
59 | 160 locations : [ |
| 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 } |
60 Test end.columnNumber > end.line.length(), should be the same as previous. | 174 Test end.columnNumber > end.line.length(), should be the same as previous. |
61 function foo(){ #return Promise.#resolve(); #} | 175 { |
62 function boo(){ return Promise.resolve().then(() => 42); } | 176 id : <messageId> |
63 | 177 result : { |
64 | 178 locations : [ |
| 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 } |
65 | 192 |
66 Running test: getPossibleBreakpointsInArrow | 193 Running test: getPossibleBreakpointsInArrow |
67 function foo() { #return Promise.#resolve().#then(() => #239#).#then(() => #42#)
.#then(() => #() => #42#) #} | 194 { |
| 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 } |
68 | 246 |
69 Running test: arrowFunctionFirstLine | 247 Running test: arrowFunctionFirstLine |
70 function foo1() { #Promise.#resolve().#then(() => #42#) #} | 248 { |
71 function foo2() { Promise.resolve().then(() => 42) } | 249 id : <messageId> |
| 250 result : { |
| 251 locations : [ |
| 252 [0] : { |
| 253 columnNumber : 18 |
| 254 lineNumber : 0 |
| 255 scriptId : <scriptId> |
| 256 } |
| 257 [1] : { |
| 258 columnNumber : 47 |
| 259 lineNumber : 0 |
| 260 scriptId : <scriptId> |
| 261 } |
| 262 [2] : { |
| 263 columnNumber : 49 |
| 264 lineNumber : 0 |
| 265 scriptId : <scriptId> |
| 266 } |
| 267 [3] : { |
| 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 } |
72 paused in foo1 | 319 paused in foo1 |
73 function foo1() { ^Promise.resolve().then(() => 42) } | 320 { |
74 function foo2() { Promise.resolve().then(() => 42) } | 321 columnNumber : 18 |
| 322 lineNumber : 0 |
| 323 scriptId : <scriptId> |
| 324 } |
75 paused in foo1 | 325 paused in foo1 |
76 function foo1() { Promise.^resolve().then(() => 42) } | 326 { |
77 function foo2() { Promise.resolve().then(() => 42) } | 327 columnNumber : 51 |
78 paused in foo1 | 328 lineNumber : 0 |
79 function foo1() { Promise.resolve().^then(() => 42) } | 329 scriptId : <scriptId> |
80 function foo2() { Promise.resolve().then(() => 42) } | 330 } |
81 paused in foo1 | |
82 function foo1() { Promise.resolve().then(() => 42) ^} | |
83 function foo2() { Promise.resolve().then(() => 42) } | |
84 paused in Promise.resolve.then | 331 paused in Promise.resolve.then |
85 function foo1() { Promise.resolve().then(() => ^42) } | 332 { |
86 function foo2() { Promise.resolve().then(() => 42) } | 333 columnNumber : 47 |
| 334 lineNumber : 0 |
| 335 scriptId : <scriptId> |
| 336 } |
87 paused in Promise.resolve.then | 337 paused in Promise.resolve.then |
88 function foo1() { Promise.resolve().then(() => 42^) } | 338 { |
89 function foo2() { Promise.resolve().then(() => 42) } | 339 columnNumber : 49 |
| 340 lineNumber : 0 |
| 341 scriptId : <scriptId> |
| 342 } |
90 | 343 |
91 Running test: arrowFunctionOnPause | 344 Running test: arrowFunctionOnPause |
92 #debugger; function foo3() { #Promise.#resolve().#then(() => #42#) #} | 345 { |
93 function foo4() { #Promise.#resolve().#then(() => #42#) #}; | 346 id : <messageId> |
94 #foo3(); | 347 result : { |
95 #foo4()#; | 348 locations : [ |
| 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 } |
96 paused in | 544 paused in |
97 debugger; function foo3() { Promise.resolve().then(() => 42) } | 545 { |
98 function foo4() { Promise.resolve().then(() => 42) }; | 546 columnNumber : 0 |
99 ^foo3(); | 547 lineNumber : 2 |
100 foo4(); | 548 scriptId : <scriptId> |
| 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> |
| 555 } |
106 paused in foo3 | 556 paused in foo3 |
107 debugger; function foo3() { Promise.^resolve().then(() => 42) } | 557 { |
108 function foo4() { Promise.resolve().then(() => 42) }; | 558 columnNumber : 61 |
109 foo3(); | 559 lineNumber : 0 |
110 foo4(); | 560 scriptId : <scriptId> |
111 paused in foo3 | 561 } |
112 debugger; function foo3() { Promise.resolve().^then(() => 42) } | |
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(); | |
121 paused in | 562 paused in |
122 debugger; function foo3() { Promise.resolve().then(() => 42) } | 563 { |
123 function foo4() { Promise.resolve().then(() => 42) }; | 564 columnNumber : 0 |
124 foo3(); | 565 lineNumber : 3 |
125 ^foo4(); | 566 scriptId : <scriptId> |
| 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> |
| 573 } |
131 paused in foo4 | 574 paused in foo4 |
132 debugger; function foo3() { Promise.resolve().then(() => 42) } | 575 { |
133 function foo4() { Promise.^resolve().then(() => 42) }; | 576 columnNumber : 51 |
134 foo3(); | 577 lineNumber : 1 |
135 foo4(); | 578 scriptId : <scriptId> |
136 paused in foo4 | 579 } |
137 debugger; function foo3() { Promise.resolve().then(() => 42) } | |
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(); | |
146 paused in | 580 paused in |
147 debugger; function foo3() { Promise.resolve().then(() => 42) } | 581 { |
148 function foo4() { Promise.resolve().then(() => 42) }; | 582 columnNumber : 6 |
149 foo3(); | 583 lineNumber : 3 |
150 foo4()^; | 584 scriptId : <scriptId> |
| 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> |
| 591 } |
156 paused in Promise.resolve.then | 592 paused in Promise.resolve.then |
157 debugger; function foo3() { Promise.resolve().then(() => 42^) } | 593 { |
158 function foo4() { Promise.resolve().then(() => 42) }; | 594 columnNumber : 59 |
159 foo3(); | 595 lineNumber : 0 |
160 foo4(); | 596 scriptId : <scriptId> |
| 597 } |
161 paused in Promise.resolve.then | 598 paused in Promise.resolve.then |
162 debugger; function foo3() { Promise.resolve().then(() => 42) } | 599 { |
163 function foo4() { Promise.resolve().then(() => ^42) }; | 600 columnNumber : 47 |
164 foo3(); | 601 lineNumber : 1 |
165 foo4(); | 602 scriptId : <scriptId> |
| 603 } |
166 paused in Promise.resolve.then | 604 paused in Promise.resolve.then |
167 debugger; function foo3() { Promise.resolve().then(() => 42) } | 605 { |
168 function foo4() { Promise.resolve().then(() => 42^) }; | 606 columnNumber : 49 |
169 foo3(); | 607 lineNumber : 1 |
170 foo4(); | 608 scriptId : <scriptId> |
| 609 } |
171 | 610 |
172 Running test: getPossibleBreakpointsInRangeWithOffset | 611 Running test: getPossibleBreakpointsInRangeWithOffset |
173 Test empty range in first line. | 612 Test empty range in first line. |
174 function foo(){ return Promise.resolve(); } | 613 { |
175 function boo(){ return Promise.resolve().then(() => 42); } | 614 id : <messageId> |
176 | 615 result : { |
177 | 616 locations : [ |
| 617 ] |
| 618 } |
| 619 } |
178 Test one character range in first line. | 620 Test one character range in first line. |
179 function foo(){ #return Promise.resolve(); } | 621 { |
180 function boo(){ return Promise.resolve().then(() => 42); } | 622 id : <messageId> |
181 | 623 result : { |
182 | 624 locations : [ |
| 625 [0] : { |
| 626 columnNumber : 17 |
| 627 lineNumber : 1 |
| 628 scriptId : <scriptId> |
| 629 } |
| 630 ] |
| 631 } |
| 632 } |
183 Test empty range in not first line. | 633 Test empty range in not first line. |
184 function foo(){ return Promise.resolve(); } | 634 { |
185 function boo(){ return Promise.resolve().then(() => 42); } | 635 id : <messageId> |
186 | 636 result : { |
187 | 637 locations : [ |
| 638 ] |
| 639 } |
| 640 } |
188 Test one character range in not first line. | 641 Test one character range in not first line. |
189 function foo(){ return Promise.resolve(); } | 642 { |
190 function boo(){ #return Promise.resolve().then(() => 42); } | 643 id : <messageId> |
191 | 644 result : { |
192 | 645 locations : [ |
| 646 [0] : { |
| 647 columnNumber : 16 |
| 648 lineNumber : 2 |
| 649 scriptId : <scriptId> |
| 650 } |
| 651 ] |
| 652 } |
| 653 } |
193 Test end is undefined | 654 Test end is undefined |
194 function foo(){ #return Promise.#resolve(); #} | 655 { |
195 function boo(){ #return Promise.#resolve().#then(() => #42#); #} | 656 id : <messageId> |
196 # | 657 result : { |
197 | 658 locations : [ |
| 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 } |
198 Test end.lineNumber > scripts.lineCount() | 697 Test end.lineNumber > scripts.lineCount() |
199 function foo(){ #return Promise.#resolve(); #} | 698 { |
200 function boo(){ #return Promise.#resolve().#then(() => #42#); #} | 699 id : <messageId> |
201 # | 700 result : { |
202 | 701 locations : [ |
| 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 } |
203 Test one string | 740 Test one string |
204 function foo(){ #return Promise.#resolve(); #} | 741 { |
205 function boo(){ return Promise.resolve().then(() => 42); } | 742 id : <messageId> |
206 | 743 result : { |
207 | 744 locations : [ |
| 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 } |
208 Test end.columnNumber > end.line.length(), should be the same as previous. | 758 Test end.columnNumber > end.line.length(), should be the same as previous. |
209 function foo(){ #return Promise.#resolve(); #} | 759 { |
210 function boo(){ return Promise.resolve().then(() => 42); } | 760 id : <messageId> |
211 | 761 result : { |
212 | 762 locations : [ |
| 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 } |
213 | 776 |
214 Running test: withOffset | 777 Running test: withOffset |
215 function foo5() { #Promise.#resolve().#then(() => #42#) #} | 778 { |
216 function foo6() { #Promise.#resolve().#then(() => #42#) #} | 779 id : <messageId> |
| 780 result : { |
| 781 locations : [ |
| 782 [0] : { |
| 783 columnNumber : 36 |
| 784 lineNumber : 3 |
| 785 scriptId : <scriptId> |
| 786 } |
| 787 [1] : { |
| 788 columnNumber : 65 |
| 789 lineNumber : 3 |
| 790 scriptId : <scriptId> |
| 791 } |
| 792 [2] : { |
| 793 columnNumber : 67 |
| 794 lineNumber : 3 |
| 795 scriptId : <scriptId> |
| 796 } |
| 797 [3] : { |
| 798 columnNumber : 69 |
| 799 lineNumber : 3 |
| 800 scriptId : <scriptId> |
| 801 } |
| 802 [4] : { |
| 803 columnNumber : 18 |
| 804 lineNumber : 4 |
| 805 scriptId : <scriptId> |
| 806 } |
| 807 [5] : { |
| 808 columnNumber : 47 |
| 809 lineNumber : 4 |
| 810 scriptId : <scriptId> |
| 811 } |
| 812 [6] : { |
| 813 columnNumber : 49 |
| 814 lineNumber : 4 |
| 815 scriptId : <scriptId> |
| 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 } |
217 paused in foo5 | 913 paused in foo5 |
218 function foo5() { ^Promise.resolve().then(() => 42) } | 914 { |
219 function foo6() { Promise.resolve().then(() => 42) } | 915 columnNumber : 36 |
| 916 lineNumber : 3 |
| 917 scriptId : <scriptId> |
| 918 } |
220 paused in foo5 | 919 paused in foo5 |
221 function foo5() { Promise.^resolve().then(() => 42) } | 920 { |
222 function foo6() { Promise.resolve().then(() => 42) } | 921 columnNumber : 69 |
223 paused in foo5 | 922 lineNumber : 3 |
224 function foo5() { Promise.resolve().^then(() => 42) } | 923 scriptId : <scriptId> |
225 function foo6() { Promise.resolve().then(() => 42) } | 924 } |
226 paused in foo5 | |
227 function foo5() { Promise.resolve().then(() => 42) ^} | |
228 function foo6() { Promise.resolve().then(() => 42) } | |
229 paused in foo6 | 925 paused in foo6 |
230 function foo5() { Promise.resolve().then(() => 42) } | 926 { |
231 function foo6() { ^Promise.resolve().then(() => 42) } | 927 columnNumber : 18 |
| 928 lineNumber : 4 |
| 929 scriptId : <scriptId> |
| 930 } |
232 paused in foo6 | 931 paused in foo6 |
233 function foo5() { Promise.resolve().then(() => 42) } | 932 { |
234 function foo6() { Promise.^resolve().then(() => 42) } | 933 columnNumber : 51 |
235 paused in foo6 | 934 lineNumber : 4 |
236 function foo5() { Promise.resolve().then(() => 42) } | 935 scriptId : <scriptId> |
237 function foo6() { Promise.resolve().^then(() => 42) } | 936 } |
238 paused in foo6 | |
239 function foo5() { Promise.resolve().then(() => 42) } | |
240 function foo6() { Promise.resolve().then(() => 42) ^} | |
241 paused in Promise.resolve.then | 937 paused in Promise.resolve.then |
242 function foo5() { Promise.resolve().then(() => ^42) } | 938 { |
243 function foo6() { Promise.resolve().then(() => 42) } | 939 columnNumber : 65 |
| 940 lineNumber : 3 |
| 941 scriptId : <scriptId> |
| 942 } |
244 paused in Promise.resolve.then | 943 paused in Promise.resolve.then |
245 function foo5() { Promise.resolve().then(() => 42^) } | 944 { |
246 function foo6() { Promise.resolve().then(() => 42) } | 945 columnNumber : 67 |
| 946 lineNumber : 3 |
| 947 scriptId : <scriptId> |
| 948 } |
247 paused in Promise.resolve.then | 949 paused in Promise.resolve.then |
248 function foo5() { Promise.resolve().then(() => 42) } | 950 { |
249 function foo6() { Promise.resolve().then(() => ^42) } | 951 columnNumber : 47 |
| 952 lineNumber : 4 |
| 953 scriptId : <scriptId> |
| 954 } |
250 paused in Promise.resolve.then | 955 paused in Promise.resolve.then |
251 function foo5() { Promise.resolve().then(() => 42) } | 956 { |
252 function foo6() { Promise.resolve().then(() => 42^) } | 957 columnNumber : 49 |
| 958 lineNumber : 4 |
| 959 scriptId : <scriptId> |
| 960 } |
253 | 961 |
254 Running test: arrowFunctionReturn | 962 Running test: arrowFunctionReturn |
255 #() => #239# | 963 { |
256 | 964 id : <messageId> |
257 function foo() { function boo() { #return 239 #} #}# | 965 result : { |
258 | 966 locations : [ |
259 #() => { #239 #}# | 967 [0] : { |
260 | 968 columnNumber : 0 |
261 function foo() { #239 #}# | 969 lineNumber : 0 |
262 | 970 scriptId : <scriptId> |
263 #() => #23#9# | 971 } |
264 #() => { #return 239 #} | 972 [1] : { |
265 | 973 columnNumber : 6 |
266 Running test: argumentsAsCalls | 974 lineNumber : 0 |
267 function foo(){#} | 975 scriptId : <scriptId> |
268 function boo(){#} | 976 } |
269 function main(f1,f2){#} | 977 [2] : { |
270 #main(#foo(), #boo());# | 978 columnNumber : 9 |
271 | 979 lineNumber : 0 |
| 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 |