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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-es6-harmony-scopes.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> 5 <script>
6 "use strict"; 6 "use strict";
7 7
8 let globalLet = 41; 8 let globalLet = 41;
9 const globalConst = 42; 9 const globalConst = 42;
10 10
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 function testFunction() 42 function testFunction()
43 { 43 {
44 var f = makeClosure("TextParam"); 44 var f = makeClosure("TextParam");
45 f(2014); 45 f(2014);
46 } 46 }
47 47
48 function test() 48 function test()
49 { 49 {
50 InspectorTest.startDebuggerTest(step1); 50 InspectorTest.startDebuggerTest(onTestStarted);
51 51
52 function step1() 52 function onTestStarted()
53 { 53 {
54 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); 54 InspectorTest.runTestFunctionAndWaitUntilPaused(onDebuggerPaused);
55 } 55 }
56 56
57 function step2() 57 function onDebuggerPaused()
58 { 58 {
59 InspectorTest.expandScopeVariablesSidebarPane(step3); 59 InspectorTest.addSniffer(WebInspector.ScopeChainSidebarPane.prototype, " _sidebarPaneUpdatedForTest", onSidebarRendered, true);
60 } 60 }
61 61
62 function step3() 62 function onSidebarRendered()
63 {
64 InspectorTest.expandScopeVariablesSidebarPane(onScopeVariablesExpanded);
65 }
66
67 function onScopeVariablesExpanded()
63 { 68 {
64 InspectorTest.addResult(""); 69 InspectorTest.addResult("");
65 InspectorTest.dumpScopeVariablesSidebarPane(); 70 InspectorTest.dumpScopeVariablesSidebarPane();
66 InspectorTest.completeDebuggerTest(); 71 InspectorTest.completeDebuggerTest();
67 } 72 }
68 } 73 }
69 74
70 </script> 75 </script>
71 </head> 76 </head>
72 77
73 <body onload="runTest()"> 78 <body onload="runTest()">
74 <input type='button' onclick='testFunction()' value='Test'/> 79 <input type='button' onclick='testFunction()' value='Test'/>
75 <p> 80 <p>
76 Tests ES6 harmony scope sections. 81 Tests ES6 harmony scope sections.
77 </p> 82 </p>
78 </body> 83 </body>
79 </html> 84 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698