Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1266)

Side by Side Diff: test/inspector/debugger/get-possible-breakpoints-expected.txt

Issue 2465553003: [inspector] added Debugger.getPossibleBreakpoints method (Closed)
Patch Set: minor improvement Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 Test for Debugger.getPossibleBreakpoints
2
3 Running test: getPossibleBreakpointsInRange
4 Test start.scriptId != end.scriptId.
5 {
6 error : {
7 code : -32000
8 message : Locations should contain the same scriptId
9 }
10 id : <messageId>
11 }
12 Test not existing scriptId.
13 {
14 error : {
15 code : -32000
16 message : Script not found
17 }
18 id : <messageId>
19 }
20 Test end < start.
21 {
22 id : <messageId>
23 result : {
24 locations : [
25 ]
26 }
27 }
28 Test empty range in first line.
29 {
30 id : <messageId>
31 result : {
32 locations : [
33 ]
34 }
35 }
36 Test one character range in first line.
37 {
38 id : <messageId>
39 result : {
40 locations : [
41 [0] : {
42 columnNumber : 16
43 lineNumber : 0
44 scriptId : <scriptId>
45 }
46 ]
47 }
48 }
49 Test empty range in not first line.
50 {
51 id : <messageId>
52 result : {
53 locations : [
54 ]
55 }
56 }
57 Test one character range in not first line.
58 {
59 id : <messageId>
60 result : {
61 locations : [
62 [0] : {
63 columnNumber : 16
64 lineNumber : 1
65 scriptId : <scriptId>
66 }
67 ]
68 }
69 }
70 Test end is undefined
71 {
72 id : <messageId>
73 result : {
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 : 49
92 lineNumber : 1
93 scriptId : <scriptId>
94 }
95 [4] : {
96 columnNumber : 53
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()
114 {
115 id : <messageId>
116 result : {
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 : 49
135 lineNumber : 1
136 scriptId : <scriptId>
137 }
138 [4] : {
139 columnNumber : 53
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
157 {
158 id : <messageId>
159 result : {
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 }
174 Test end.columnNumber > end.line.length(), should be the same as previous.
175 {
176 id : <messageId>
177 result : {
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 }
192
193 Running test: getPossibleBreakpointsInArrow
194 {
195 id : <messageId>
196 result : {
197 locations : [
198 [0] : {
199 columnNumber : 17
200 lineNumber : 0
201 scriptId : <scriptId>
202 }
203 [1] : {
204 columnNumber : 50
205 lineNumber : 0
206 scriptId : <scriptId>
207 }
208 [2] : {
209 columnNumber : 55
210 lineNumber : 0
211 scriptId : <scriptId>
212 }
213 [3] : {
214 columnNumber : 66
215 lineNumber : 0
216 scriptId : <scriptId>
217 }
218 [4] : {
219 columnNumber : 70
220 lineNumber : 0
221 scriptId : <scriptId>
222 }
223 [5] : {
224 columnNumber : 81
225 lineNumber : 0
226 scriptId : <scriptId>
227 }
228 [6] : {
229 columnNumber : 87
230 lineNumber : 0
231 scriptId : <scriptId>
232 }
233 [7] : {
234 columnNumber : 91
235 lineNumber : 0
236 scriptId : <scriptId>
237 }
238 [8] : {
239 columnNumber : 94
240 lineNumber : 0
241 scriptId : <scriptId>
242 }
243 ]
244 }
245 }
246
247 Running test: arrowFunctionFirstLine
248 {
249 id : <messageId>
250 result : {
251 locations : [
252 [0] : {
253 columnNumber : 18
254 lineNumber : 0
255 scriptId : <scriptId>
256 }
257 [1] : {
258 columnNumber : 44
259 lineNumber : 0
260 scriptId : <scriptId>
261 }
262 [2] : {
263 columnNumber : 48
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 : 44
291 lineNumber : 0
292 scriptId : <scriptId>
293 }
294 breakpointId : <breakpointId>
295 }
296 }
297 {
298 id : <messageId>
299 result : {
300 actualLocation : {
301 columnNumber : 48
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 : 44
334 lineNumber : 0
335 scriptId : <scriptId>
336 }
337 paused in Promise.resolve.then
338 {
339 columnNumber : 48
340 lineNumber : 0
341 scriptId : <scriptId>
342 }
343
344 Running test: arrowFunctionOnPause
345 {
346 id : <messageId>
347 result : {
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 : 54
361 lineNumber : 0
362 scriptId : <scriptId>
363 }
364 [3] : {
365 columnNumber : 58
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 : 44
381 lineNumber : 1
382 scriptId : <scriptId>
383 }
384 [7] : {
385 columnNumber : 48
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 : 54
439 lineNumber : 0
440 scriptId : <scriptId>
441 }
442 breakpointId : <breakpointId>
443 }
444 }
445 {
446 id : <messageId>
447 result : {
448 actualLocation : {
449 columnNumber : 58
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 : 44
483 lineNumber : 1
484 scriptId : <scriptId>
485 }
486 breakpointId : <breakpointId>
487 }
488 }
489 {
490 id : <messageId>
491 result : {
492 actualLocation : {
493 columnNumber : 48
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 foo3
545 {
546 columnNumber : 28
547 lineNumber : 0
548 scriptId : <scriptId>
549 }
550 paused in foo3
551 {
552 columnNumber : 61
553 lineNumber : 0
554 scriptId : <scriptId>
555 }
556 paused in foo4
557 {
558 columnNumber : 18
559 lineNumber : 1
560 scriptId : <scriptId>
561 }
562 paused in foo4
563 {
564 columnNumber : 51
565 lineNumber : 1
566 scriptId : <scriptId>
567 }
568 paused in Promise.resolve.then
569 {
570 columnNumber : 54
571 lineNumber : 0
572 scriptId : <scriptId>
573 }
574 paused in Promise.resolve.then
575 {
576 columnNumber : 58
577 lineNumber : 0
578 scriptId : <scriptId>
579 }
580 paused in Promise.resolve.then
581 {
582 columnNumber : 44
583 lineNumber : 1
584 scriptId : <scriptId>
585 }
586 paused in Promise.resolve.then
587 {
588 columnNumber : 48
589 lineNumber : 1
590 scriptId : <scriptId>
591 }
592
593 Running test: getPossibleBreakpointsInRangeWithOffset
594 Test empty range in first line.
595 {
596 id : <messageId>
597 result : {
598 locations : [
599 ]
600 }
601 }
602 Test one character range in first line.
603 {
604 id : <messageId>
605 result : {
606 locations : [
607 [0] : {
608 columnNumber : 17
609 lineNumber : 1
610 scriptId : <scriptId>
611 }
612 ]
613 }
614 }
615 Test empty range in not first line.
616 {
617 id : <messageId>
618 result : {
619 locations : [
620 ]
621 }
622 }
623 Test one character range in not first line.
624 {
625 id : <messageId>
626 result : {
627 locations : [
628 [0] : {
629 columnNumber : 16
630 lineNumber : 2
631 scriptId : <scriptId>
632 }
633 ]
634 }
635 }
636 Test end is undefined
637 {
638 id : <messageId>
639 result : {
640 locations : [
641 [0] : {
642 columnNumber : 17
643 lineNumber : 1
644 scriptId : <scriptId>
645 }
646 [1] : {
647 columnNumber : 43
648 lineNumber : 1
649 scriptId : <scriptId>
650 }
651 [2] : {
652 columnNumber : 16
653 lineNumber : 2
654 scriptId : <scriptId>
655 }
656 [3] : {
657 columnNumber : 49
658 lineNumber : 2
659 scriptId : <scriptId>
660 }
661 [4] : {
662 columnNumber : 53
663 lineNumber : 2
664 scriptId : <scriptId>
665 }
666 [5] : {
667 columnNumber : 57
668 lineNumber : 2
669 scriptId : <scriptId>
670 }
671 [6] : {
672 columnNumber : 0
673 lineNumber : 3
674 scriptId : <scriptId>
675 }
676 ]
677 }
678 }
679 Test end.lineNumber > scripts.lineCount()
680 {
681 id : <messageId>
682 result : {
683 locations : [
684 [0] : {
685 columnNumber : 17
686 lineNumber : 1
687 scriptId : <scriptId>
688 }
689 [1] : {
690 columnNumber : 43
691 lineNumber : 1
692 scriptId : <scriptId>
693 }
694 [2] : {
695 columnNumber : 16
696 lineNumber : 2
697 scriptId : <scriptId>
698 }
699 [3] : {
700 columnNumber : 49
701 lineNumber : 2
702 scriptId : <scriptId>
703 }
704 [4] : {
705 columnNumber : 53
706 lineNumber : 2
707 scriptId : <scriptId>
708 }
709 [5] : {
710 columnNumber : 57
711 lineNumber : 2
712 scriptId : <scriptId>
713 }
714 [6] : {
715 columnNumber : 0
716 lineNumber : 3
717 scriptId : <scriptId>
718 }
719 ]
720 }
721 }
722 Test one string
723 {
724 id : <messageId>
725 result : {
726 locations : [
727 [0] : {
728 columnNumber : 17
729 lineNumber : 1
730 scriptId : <scriptId>
731 }
732 [1] : {
733 columnNumber : 43
734 lineNumber : 1
735 scriptId : <scriptId>
736 }
737 ]
738 }
739 }
740 Test end.columnNumber > end.line.length(), should be the same as previous.
741 {
742 id : <messageId>
743 result : {
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 }
758
759 Running test: withOffset
760 {
761 id : <messageId>
762 result : {
763 locations : [
764 [0] : {
765 columnNumber : 36
766 lineNumber : 3
767 scriptId : <scriptId>
768 }
769 [1] : {
770 columnNumber : 62
771 lineNumber : 3
772 scriptId : <scriptId>
773 }
774 [2] : {
775 columnNumber : 66
776 lineNumber : 3
777 scriptId : <scriptId>
778 }
779 [3] : {
780 columnNumber : 69
781 lineNumber : 3
782 scriptId : <scriptId>
783 }
784 [4] : {
785 columnNumber : 18
786 lineNumber : 4
787 scriptId : <scriptId>
788 }
789 [5] : {
790 columnNumber : 44
791 lineNumber : 4
792 scriptId : <scriptId>
793 }
794 [6] : {
795 columnNumber : 48
796 lineNumber : 4
797 scriptId : <scriptId>
798 }
799 [7] : {
800 columnNumber : 51
801 lineNumber : 4
802 scriptId : <scriptId>
803 }
804 ]
805 }
806 }
807 {
808 id : <messageId>
809 result : {
810 actualLocation : {
811 columnNumber : 36
812 lineNumber : 3
813 scriptId : <scriptId>
814 }
815 breakpointId : <breakpointId>
816 }
817 }
818 {
819 id : <messageId>
820 result : {
821 actualLocation : {
822 columnNumber : 62
823 lineNumber : 3
824 scriptId : <scriptId>
825 }
826 breakpointId : <breakpointId>
827 }
828 }
829 {
830 id : <messageId>
831 result : {
832 actualLocation : {
833 columnNumber : 66
834 lineNumber : 3
835 scriptId : <scriptId>
836 }
837 breakpointId : <breakpointId>
838 }
839 }
840 {
841 id : <messageId>
842 result : {
843 actualLocation : {
844 columnNumber : 69
845 lineNumber : 3
846 scriptId : <scriptId>
847 }
848 breakpointId : <breakpointId>
849 }
850 }
851 {
852 id : <messageId>
853 result : {
854 actualLocation : {
855 columnNumber : 18
856 lineNumber : 4
857 scriptId : <scriptId>
858 }
859 breakpointId : <breakpointId>
860 }
861 }
862 {
863 id : <messageId>
864 result : {
865 actualLocation : {
866 columnNumber : 44
867 lineNumber : 4
868 scriptId : <scriptId>
869 }
870 breakpointId : <breakpointId>
871 }
872 }
873 {
874 id : <messageId>
875 result : {
876 actualLocation : {
877 columnNumber : 48
878 lineNumber : 4
879 scriptId : <scriptId>
880 }
881 breakpointId : <breakpointId>
882 }
883 }
884 {
885 id : <messageId>
886 result : {
887 actualLocation : {
888 columnNumber : 51
889 lineNumber : 4
890 scriptId : <scriptId>
891 }
892 breakpointId : <breakpointId>
893 }
894 }
895 paused in foo5
896 {
897 columnNumber : 36
898 lineNumber : 3
899 scriptId : <scriptId>
900 }
901 paused in foo5
902 {
903 columnNumber : 69
904 lineNumber : 3
905 scriptId : <scriptId>
906 }
907 paused in foo6
908 {
909 columnNumber : 18
910 lineNumber : 4
911 scriptId : <scriptId>
912 }
913 paused in foo6
914 {
915 columnNumber : 51
916 lineNumber : 4
917 scriptId : <scriptId>
918 }
919 paused in Promise.resolve.then
920 {
921 columnNumber : 62
922 lineNumber : 3
923 scriptId : <scriptId>
924 }
925 paused in Promise.resolve.then
926 {
927 columnNumber : 66
928 lineNumber : 3
929 scriptId : <scriptId>
930 }
931 paused in Promise.resolve.then
932 {
933 columnNumber : 44
934 lineNumber : 4
935 scriptId : <scriptId>
936 }
937 paused in Promise.resolve.then
938 {
939 columnNumber : 48
940 lineNumber : 4
941 scriptId : <scriptId>
942 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698