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

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

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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;
(...skipping 12 matching lines...) Expand all
23 var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watc hExpressions; 23 var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watc hExpressions;
24 watchExpressionsPane.expand(); 24 watchExpressionsPane.expand();
25 25
26 watchExpressionsSection = watchExpressionsPane.section; 26 watchExpressionsSection = watchExpressionsPane.section;
27 watchExpressionsSection.watchExpressions = []; 27 watchExpressionsSection.watchExpressions = [];
28 watchExpressionsSection.watchExpressions.push("Object(true)"); 28 watchExpressionsSection.watchExpressions.push("Object(true)");
29 watchExpressionsSection.watchExpressions.push("(function(a,b) { return a + b; })"); 29 watchExpressionsSection.watchExpressions.push("(function(a,b) { return a + b; })");
30 watchExpressionsSection.watchExpressions.push("(function(a,b) { return a + b; }).bind({}, 2)"); 30 watchExpressionsSection.watchExpressions.push("(function(a,b) { return a + b; }).bind({}, 2)");
31 watchExpressionsSection.update(); 31 watchExpressionsSection.update();
32 32
33 var testName = WebInspector.resourceTreeModel.inspectedPageURL(); 33 var testName = InspectorTest.resourceTreeModel.inspectedPageURL();
34 testName = testName.substring(testName.lastIndexOf('/') + 1); 34 testName = testName.substring(testName.lastIndexOf('/') + 1);
35 InspectorTest.showScriptSource(testName, didShowScriptSource); 35 InspectorTest.showScriptSource(testName, didShowScriptSource);
36 } 36 }
37 37
38 function didShowScriptSource(sourceFrame) 38 function didShowScriptSource(sourceFrame)
39 { 39 {
40 currentSourceFrame = sourceFrame; 40 currentSourceFrame = sourceFrame;
41 InspectorTest.addResult("Script source was shown."); 41 InspectorTest.addResult("Script source was shown.");
42 InspectorTest.setBreakpoint(currentSourceFrame, 9, "", true); 42 InspectorTest.setBreakpoint(currentSourceFrame, 9, "", true);
43 InspectorTest.addSniffer(WebInspector.WatchExpressionsSection.prototype, "update", watchExpressionsUpdated); 43 InspectorTest.addSniffer(WebInspector.WatchExpressionsSection.prototype, "update", watchExpressionsUpdated);
(...skipping 26 matching lines...) Expand all
70 InspectorTest.completeDebuggerTest(); 70 InspectorTest.completeDebuggerTest();
71 } 71 }
72 } 72 }
73 73
74 </script> 74 </script>
75 </head> 75 </head>
76 <body onload="runTest()"> 76 <body onload="runTest()">
77 <p>Tests how debugger presents special properties of closures, bound functions a nd object wrappers.</p> 77 <p>Tests how debugger presents special properties of closures, bound functions a nd object wrappers.</p>
78 </body> 78 </body>
79 </html> 79 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698