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

Side by Side Diff: LayoutTests/inspector/sources/debugger/properties-special.html

Issue 268293003: DevTools: Get rid of WebInspector.panels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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="../../../http/tests/inspector/elements-test.js"></script> 5 <script src="../../../http/tests/inspector/elements-test.js"></script>
6 <script> 6 <script>
7 function testFunction() 7 function testFunction()
8 { 8 {
9 var x = Math.sqrt(10); 9 var x = Math.sqrt(10);
10 return x; 10 return x;
11 } 11 }
12 12
13 var test = function() 13 var test = function()
14 { 14 {
15 InspectorTest.setQuiet(true); 15 InspectorTest.setQuiet(true);
16 InspectorTest.startDebuggerTest(step1); 16 InspectorTest.startDebuggerTest(step1);
17 17
18 var currentSourceFrame; 18 var currentSourceFrame;
19 var watchExpressionsSection; 19 var watchExpressionsSection;
20 20
21 function step1() 21 function step1()
22 { 22 {
23 // We need to initialize sources panel so that watch expressions section is created. 23 // We need to initialize sources panel so that watch expressions section is created.
24 WebInspector.inspectorView.showPanel("sources"); 24 WebInspector.inspectorView.showPanel("sources");
25 25
26 var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watc hExpressions; 26 var watchExpressionsPane = WebInspector.inspectorView.panel("sources").s idebarPanes.watchExpressions;
27 watchExpressionsPane.expand(); 27 watchExpressionsPane.expand();
28 28
29 watchExpressionsSection = watchExpressionsPane.section; 29 watchExpressionsSection = watchExpressionsPane.section;
30 watchExpressionsSection.watchExpressions = []; 30 watchExpressionsSection.watchExpressions = [];
31 watchExpressionsSection.watchExpressions.push("Object(true)"); 31 watchExpressionsSection.watchExpressions.push("Object(true)");
32 watchExpressionsSection.watchExpressions.push("(function(a,b) { return a + b; })"); 32 watchExpressionsSection.watchExpressions.push("(function(a,b) { return a + b; })");
33 watchExpressionsSection.watchExpressions.push("(function(a,b) { return a + b; }).bind({}, 2)"); 33 watchExpressionsSection.watchExpressions.push("(function(a,b) { return a + b; }).bind({}, 2)");
34 watchExpressionsSection.update(); 34 watchExpressionsSection.update();
35 35
36 var testName = WebInspector.resourceTreeModel.inspectedPageURL(); 36 var testName = WebInspector.resourceTreeModel.inspectedPageURL();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 InspectorTest.completeDebuggerTest(); 73 InspectorTest.completeDebuggerTest();
74 } 74 }
75 } 75 }
76 76
77 </script> 77 </script>
78 </head> 78 </head>
79 <body onload="runTest()"> 79 <body onload="runTest()">
80 <p>Tests how debugger presents special properties of closures, bound functions a nd object wrappers.</p> 80 <p>Tests how debugger presents special properties of closures, bound functions a nd object wrappers.</p>
81 </body> 81 </body>
82 </html> 82 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698