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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/debugger-expand-scope.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 6
7 function makeClosure(n) 7 function makeClosure(n)
8 { 8 {
9 var makeClosureLocalVar = "local." + n; 9 var makeClosureLocalVar = "local." + n;
10 return function innerFunction(x) 10 return function innerFunction(x)
(...skipping 16 matching lines...) Expand all
27 var f = makeClosure("TextParam"); 27 var f = makeClosure("TextParam");
28 f(2010); 28 f(2010);
29 } 29 }
30 30
31 function test() 31 function test()
32 { 32 {
33 InspectorTest.startDebuggerTest(onTestStarted); 33 InspectorTest.startDebuggerTest(onTestStarted);
34 34
35 function onTestStarted() 35 function onTestStarted()
36 { 36 {
37 InspectorTest.runTestFunctionAndWaitUntilPaused(onDebuggerPaused);
38 }
39
40 function onDebuggerPaused()
41 {
42 InspectorTest.addSniffer(WebInspector.ScopeChainSidebarPane.prototype, " _sidebarPaneUpdatedForTest", onSidebarRendered, true); 37 InspectorTest.addSniffer(WebInspector.ScopeChainSidebarPane.prototype, " _sidebarPaneUpdatedForTest", onSidebarRendered, true);
38 InspectorTest.runTestFunctionAndWaitUntilPaused(() => {});
43 } 39 }
44 40
45 function onSidebarRendered() 41 function onSidebarRendered()
46 { 42 {
47 InspectorTest.expandScopeVariablesSidebarPane(onScopeVariablesExpanded); 43 InspectorTest.expandScopeVariablesSidebarPane(onScopeVariablesExpanded);
48 } 44 }
49 45
50 function onScopeVariablesExpanded() 46 function onScopeVariablesExpanded()
51 { 47 {
52 InspectorTest.addResult(""); 48 InspectorTest.addResult("");
53 InspectorTest.dumpScopeVariablesSidebarPane(); 49 InspectorTest.dumpScopeVariablesSidebarPane();
54 InspectorTest.completeDebuggerTest(); 50 InspectorTest.completeDebuggerTest();
55 } 51 }
56 } 52 }
57 53
58 </script> 54 </script>
59 </head> 55 </head>
60 56
61 <body onload="runTest()"> 57 <body onload="runTest()">
62 <input type='button' onclick='testFunction()' value='Test'/> 58 <input type='button' onclick='testFunction()' value='Test'/>
63 <p> 59 <p>
64 Test that sections representing scopes of the current call frame are expandable 60 Test that sections representing scopes of the current call frame are expandable
65 and contain correct data. 61 and contain correct data.
66 </p> 62 </p>
67 </body> 63 </body>
68 </html> 64 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698