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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-es6-harmony-scopes.html

Issue 2238003002: DevTools: migrate sources panel sidebar to views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: followed up on the watch test. Created 4 years, 4 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(onTestStarted); 50 InspectorTest.startDebuggerTest(onTestStarted);
51 51
52 function onTestStarted() 52 function onTestStarted()
53 { 53 {
54 InspectorTest.runTestFunctionAndWaitUntilPaused(onDebuggerPaused);
55 }
56
57 function onDebuggerPaused()
58 {
59 InspectorTest.addSniffer(WebInspector.ScopeChainSidebarPane.prototype, " _sidebarPaneUpdatedForTest", onSidebarRendered, true); 54 InspectorTest.addSniffer(WebInspector.ScopeChainSidebarPane.prototype, " _sidebarPaneUpdatedForTest", onSidebarRendered, true);
55 InspectorTest.runTestFunctionAndWaitUntilPaused(() => {});
60 } 56 }
61 57
62 function onSidebarRendered() 58 function onSidebarRendered()
63 { 59 {
64 InspectorTest.expandScopeVariablesSidebarPane(onScopeVariablesExpanded); 60 InspectorTest.expandScopeVariablesSidebarPane(onScopeVariablesExpanded);
65 } 61 }
66 62
67 function onScopeVariablesExpanded() 63 function onScopeVariablesExpanded()
68 { 64 {
69 InspectorTest.addResult(""); 65 InspectorTest.addResult("");
70 InspectorTest.dumpScopeVariablesSidebarPane(); 66 InspectorTest.dumpScopeVariablesSidebarPane();
71 InspectorTest.completeDebuggerTest(); 67 InspectorTest.completeDebuggerTest();
72 } 68 }
73 } 69 }
74 70
75 </script> 71 </script>
76 </head> 72 </head>
77 73
78 <body onload="runTest()"> 74 <body onload="runTest()">
79 <input type='button' onclick='testFunction()' value='Test'/> 75 <input type='button' onclick='testFunction()' value='Test'/>
80 <p> 76 <p>
81 Tests ES6 harmony scope sections. 77 Tests ES6 harmony scope sections.
82 </p> 78 </p>
83 </body> 79 </body>
84 </html> 80 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698