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

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

Issue 1887913002: DevTools: improve identifier extraction in SourceMapNamesResolver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-scope-resolve-identifiers-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-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>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-scope-resolve-identifiers-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698