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-identifiers.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.startDebuggerTest(() => InspectorTest.runTestFunctionAndWaitUn
tilPaused()); | 10 InspectorTest.startDebuggerTest(() => InspectorTest.runTestFunctionAndWaitUn
tilPaused()); |
11 | 11 |
12 var resolvedScopes = 0; | 12 InspectorTest.addSniffer(WebInspector.SourceMapNamesResolver, "_scopeResolve
dForTest", onAllScopesResolved, true); |
13 InspectorTest.addSniffer(WebInspector.SourceMapNamesResolver, "_scopeResolve
dForTest", onScopeResolved, true); | |
14 | |
15 function onScopeResolved() | |
16 { | |
17 if (++resolvedScopes === 2) | |
18 onAllScopesResolved(); | |
19 } | |
20 | 13 |
21 function onAllScopesResolved() | 14 function onAllScopesResolved() |
22 { | 15 { |
23 InspectorTest.expandScopeVariablesSidebarPane(onSidebarsExpanded); | 16 InspectorTest.expandScopeVariablesSidebarPane(onSidebarsExpanded); |
24 } | 17 } |
25 | 18 |
26 function onSidebarsExpanded() | 19 function onSidebarsExpanded() |
27 { | 20 { |
28 InspectorTest.addResult(""); | 21 InspectorTest.addResult(""); |
29 InspectorTest.dumpScopeVariablesSidebarPane(); | 22 InspectorTest.dumpScopeVariablesSidebarPane(); |
30 InspectorTest.completeDebuggerTest(); | 23 InspectorTest.completeDebuggerTest(); |
31 } | 24 } |
32 } | 25 } |
33 | 26 |
34 </script> | 27 </script> |
35 </head> | 28 </head> |
36 | 29 |
37 <body onload="runTest()"> | 30 <body onload="runTest()"> |
38 <p> | 31 <p> |
39 Tests resolving variable names via source maps. | 32 Tests resolving variable names via source maps. |
40 </p> | 33 </p> |
41 </body> | 34 </body> |
42 </html> | 35 </html> |
OLD | NEW |