OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="inspector-test.js"></script> | 3 <script src="inspector-test.js"></script> |
4 <script src="debugger-test.js"></script> | 4 <script src="debugger-test.js"></script> |
5 <script src="workspace-test.js"></script> | 5 <script src="workspace-test.js"></script> |
6 <script src="breakpoint-manager-test.js"></script> | 6 <script src="breakpoint-manager-test.js"></script> |
7 | 7 |
8 <script> | 8 <script> |
9 | 9 |
10 function test() | 10 function test() |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 } | 143 } |
144 }, { | 144 }, { |
145 "offset": { "line": 2, "column": 10 }, | 145 "offset": { "line": 2, "column": 10 }, |
146 "map": { | 146 "map": { |
147 "mappings":"AAAA,CAEC", | 147 "mappings":"AAAA,CAEC", |
148 "sources":["source2.js"] | 148 "sources":["source2.js"] |
149 } | 149 } |
150 } | 150 } |
151 ]}; | 151 ]}; |
152 var mapping = new WebInspector.TextSourceMap("compiled.js", "source-
map.json", mappingPayload); | 152 var mapping = new WebInspector.TextSourceMap("compiled.js", "source-
map.json", mappingPayload); |
153 InspectorTest.assertEquals(2, mapping.sourceURLs().length); | 153 InspectorTest.assertEquals(2, Array.from(mapping.sourceURLs()).lengt
h); |
154 checkMapping(0, 0, "source1.js", 0, 0, mapping); | 154 checkMapping(0, 0, "source1.js", 0, 0, mapping); |
155 checkMapping(0, 1, "source1.js", 2, 1, mapping); | 155 checkMapping(0, 1, "source1.js", 2, 1, mapping); |
156 checkMapping(2, 10, "source2.js", 0, 0, mapping); | 156 checkMapping(2, 10, "source2.js", 0, 0, mapping); |
157 checkMapping(2, 11, "source2.js", 2, 1, mapping); | 157 checkMapping(2, 11, "source2.js", 2, 1, mapping); |
158 next(); | 158 next(); |
159 }, | 159 }, |
160 | 160 |
161 function testResolveSourceMapURL(next) | 161 function testResolveSourceMapURL(next) |
162 { | 162 { |
163 var func = WebInspector.ParsedURL.completeURL; | 163 var func = WebInspector.ParsedURL.completeURL; |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 }; | 524 }; |
525 | 525 |
526 </script> | 526 </script> |
527 | 527 |
528 </head> | 528 </head> |
529 | 529 |
530 <body onload="runTest()"> | 530 <body onload="runTest()"> |
531 <p>Tests SourceMap and CompilerScriptMapping.</p> | 531 <p>Tests SourceMap and CompilerScriptMapping.</p> |
532 </body> | 532 </body> |
533 </html> | 533 </html> |
OLD | NEW |