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

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

Issue 220903002: DevTools: wrap DebuggerAgent.Location with DebuggerModel.Location. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: All tests!!! Created 6 years, 8 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 26 matching lines...) Expand all
37 testName = testName.substring(testName.lastIndexOf('/') + 1); 37 testName = testName.substring(testName.lastIndexOf('/') + 1);
38 InspectorTest.showScriptSource(testName, didShowScriptSource); 38 InspectorTest.showScriptSource(testName, didShowScriptSource);
39 } 39 }
40 40
41 function didShowScriptSource(sourceFrame) 41 function didShowScriptSource(sourceFrame)
42 { 42 {
43 currentSourceFrame = sourceFrame; 43 currentSourceFrame = sourceFrame;
44 InspectorTest.addResult("Script source was shown."); 44 InspectorTest.addResult("Script source was shown.");
45 InspectorTest.setBreakpoint(currentSourceFrame, 9, "", true); 45 InspectorTest.setBreakpoint(currentSourceFrame, 9, "", true);
46 InspectorTest.addSniffer(WebInspector.WatchExpressionsSection.prototype, "update", watchExpressionsUpdated); 46 InspectorTest.addSniffer(WebInspector.WatchExpressionsSection.prototype, "update", watchExpressionsUpdated);
47 InspectorTest.runTestFunctionAndWaitUntilPaused(didPaused); 47 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
48 } 48 }
49 49
50 function didPaused(callFrames) 50 function didPause(callFrames)
51 { 51 {
52 } 52 }
53 53
54 function watchExpressionsUpdated() 54 function watchExpressionsUpdated()
55 { 55 {
56 InspectorTest.addResult("Watch expressions updated."); 56 InspectorTest.addResult("Watch expressions updated.");
57 var treeNodes = watchExpressionsSection.propertiesTreeOutline.children; 57 var treeNodes = watchExpressionsSection.propertiesTreeOutline.children;
58 for (var i = 0; i < treeNodes.length; i++) { 58 for (var i = 0; i < treeNodes.length; i++) {
59 treeNodes[i].expand(); 59 treeNodes[i].expand();
60 } 60 }
(...skipping 12 matching lines...) Expand all
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