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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-scope-resolve-identifiers.html

Issue 1884213003: DevTools: teach SourceMapNamesResolver to resolve "this" object (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ids
Patch Set: fix tesst Created 4 years, 8 months 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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698