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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/debugger-expand-scope.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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.addSniffer(WebInspector.ScopeChainSidebarPane.prototype, " _sidebarPaneUpdatedForTest", onSidebarRendered, true); 37 InspectorTest.addSniffer(Sources.ScopeChainSidebarPane.prototype, "_side barPaneUpdatedForTest", onSidebarRendered, true);
38 InspectorTest.runTestFunctionAndWaitUntilPaused(() => {}); 38 InspectorTest.runTestFunctionAndWaitUntilPaused(() => {});
39 } 39 }
40 40
41 function onSidebarRendered() 41 function onSidebarRendered()
42 { 42 {
43 InspectorTest.expandScopeVariablesSidebarPane(onScopeVariablesExpanded); 43 InspectorTest.expandScopeVariablesSidebarPane(onScopeVariablesExpanded);
44 } 44 }
45 45
46 function onScopeVariablesExpanded() 46 function onScopeVariablesExpanded()
47 { 47 {
48 InspectorTest.addResult(""); 48 InspectorTest.addResult("");
49 InspectorTest.dumpScopeVariablesSidebarPane(); 49 InspectorTest.dumpScopeVariablesSidebarPane();
50 InspectorTest.completeDebuggerTest(); 50 InspectorTest.completeDebuggerTest();
51 } 51 }
52 } 52 }
53 53
54 </script> 54 </script>
55 </head> 55 </head>
56 56
57 <body onload="runTest()"> 57 <body onload="runTest()">
58 <input type='button' onclick='testFunction()' value='Test'/> 58 <input type='button' onclick='testFunction()' value='Test'/>
59 <p> 59 <p>
60 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
61 and contain correct data. 61 and contain correct data.
62 </p> 62 </p>
63 </body> 63 </body>
64 </html> 64 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698