| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> | 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 5 <script src="resources/resolve-variable-names-compressed.js"></script> | 5 <script src="resources/resolve-variable-names-compressed.js"></script> |
| 6 <script> | 6 <script> |
| 7 function test() | 7 function test() |
| 8 { | 8 { |
| 9 Runtime.experiments.enableForTest("resolveVariableNames"); | 9 Runtime.experiments.enableForTest("resolveVariableNames"); |
| 10 InspectorTest.waitForScriptSource("resolve-variable-names-origin.js", onSour
ceMapLoaded); | 10 InspectorTest.waitForScriptSource("resolve-variable-names-origin.js", onSour
ceMapLoaded); |
| 11 | 11 |
| 12 function onSourceMapLoaded() | 12 function onSourceMapLoaded() |
| 13 { | 13 { |
| 14 InspectorTest.startDebuggerTest(() => InspectorTest.runTestFunctionAndWa
itUntilPaused()); | 14 InspectorTest.startDebuggerTest(() => InspectorTest.runTestFunctionAndWa
itUntilPaused()); |
| 15 InspectorTest.addSniffer(WebInspector.SourceMapNamesResolver, "_scopeRes
olvedForTest", onScopeResolved, true); | 15 InspectorTest.addSniffer(Sources.SourceMapNamesResolver, "_scopeResolved
ForTest", onScopeResolved, true); |
| 16 } | 16 } |
| 17 | 17 |
| 18 var resolvedScopes = 0; | 18 var resolvedScopes = 0; |
| 19 function onScopeResolved() | 19 function onScopeResolved() |
| 20 { | 20 { |
| 21 if (++resolvedScopes === 2) | 21 if (++resolvedScopes === 2) |
| 22 onAllScopesResolved(); | 22 onAllScopesResolved(); |
| 23 } | 23 } |
| 24 | 24 |
| 25 function onAllScopesResolved() | 25 function onAllScopesResolved() |
| (...skipping 11 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 </script> | 38 </script> |
| 39 </head> | 39 </head> |
| 40 | 40 |
| 41 <body onload="runTest()"> | 41 <body onload="runTest()"> |
| 42 <p> | 42 <p> |
| 43 Tests resolving variable names via source maps. | 43 Tests resolving variable names via source maps. |
| 44 </p> | 44 </p> |
| 45 </body> | 45 </body> |
| 46 </html> | 46 </html> |
| OLD | NEW |