| 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-identifiers.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.waitForScriptSource("resolve-identifiers.ts", onSourceMapLoade
    d); | 
|  11  |  11  | 
|  12     InspectorTest.addSniffer(WebInspector.SourceMapNamesResolver, "_scopeResolve
    dForTest", onAllScopesResolved, true); |  12     function onSourceMapLoaded() | 
 |  13     { | 
 |  14         InspectorTest.startDebuggerTest(() => InspectorTest.runTestFunctionAndWa
    itUntilPaused()); | 
 |  15         InspectorTest.addSniffer(WebInspector.SourceMapNamesResolver, "_scopeRes
    olvedForTest", onAllScopesResolved, true); | 
 |  16     } | 
|  13  |  17  | 
|  14     function onAllScopesResolved() |  18     function onAllScopesResolved() | 
|  15     { |  19     { | 
|  16         InspectorTest.expandScopeVariablesSidebarPane(onSidebarsExpanded); |  20         InspectorTest.expandScopeVariablesSidebarPane(onSidebarsExpanded); | 
|  17     } |  21     } | 
|  18  |  22  | 
|  19     function onSidebarsExpanded() |  23     function onSidebarsExpanded() | 
|  20     { |  24     { | 
|  21         InspectorTest.addResult(""); |  25         InspectorTest.addResult(""); | 
|  22         InspectorTest.dumpScopeVariablesSidebarPane(); |  26         InspectorTest.dumpScopeVariablesSidebarPane(); | 
|  23         InspectorTest.completeDebuggerTest(); |  27         InspectorTest.completeDebuggerTest(); | 
|  24     } |  28     } | 
|  25 } |  29 } | 
|  26  |  30  | 
|  27 </script> |  31 </script> | 
|  28 </head> |  32 </head> | 
|  29  |  33  | 
|  30 <body onload="runTest()"> |  34 <body onload="runTest()"> | 
|  31 <p> |  35 <p> | 
|  32 Tests resolving variable names via source maps. |  36 Tests resolving variable names via source maps. | 
|  33 </p> |  37 </p> | 
|  34 </body> |  38 </body> | 
|  35 </html> |  39 </html> | 
| OLD | NEW |