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

Side by Side Diff: LayoutTests/inspector/sources/debugger/async-callstack-scopes.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> 5 <script>
6 6
7 function makeClosure(n, callback, withScope) 7 function makeClosure(n, callback, withScope)
8 { 8 {
9 var makeClosureLocalVar = 'local.' + n; 9 var makeClosureLocalVar = 'local.' + n;
10 return function innerFunction(x) { 10 return function innerFunction(x) {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 InspectorTest.setQuiet(true); 60 InspectorTest.setQuiet(true);
61 InspectorTest.startDebuggerTest(step1); 61 InspectorTest.startDebuggerTest(step1);
62 62
63 function step1() 63 function step1()
64 { 64 {
65 DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2); 65 DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2);
66 } 66 }
67 67
68 function step2() 68 function step2()
69 { 69 {
70 InspectorTest.runTestFunctionAndWaitUntilPaused(didPaused); 70 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
71 } 71 }
72 72
73 function didPaused() 73 function didPause()
74 { 74 {
75 var callStackPane = WebInspector.inspectorView.currentPanel().sidebarPan es.callstack; 75 var callStackPane = WebInspector.inspectorView.currentPanel().sidebarPan es.callstack;
76 var scopeChainPane = WebInspector.inspectorView.currentPanel().sidebarPa nes.scopechain; 76 var scopeChainPane = WebInspector.inspectorView.currentPanel().sidebarPa nes.scopechain;
77 InspectorTest.addResult("Dumping call frames with scope chains:\n"); 77 InspectorTest.addResult("Dumping call frames with scope chains:\n");
78 printNextCallFrame(); 78 printNextCallFrame();
79 79
80 function printNextCallFrame() 80 function printNextCallFrame()
81 { 81 {
82 var index = callStackPane._selectedCallFrameIndex(); 82 var index = callStackPane._selectedCallFrameIndex();
83 InspectorTest.assertGreaterOrEqual(index, 0); 83 InspectorTest.assertGreaterOrEqual(index, 0);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 </script> 123 </script>
124 </head> 124 </head>
125 125
126 <body onload="runTest()"> 126 <body onload="runTest()">
127 <input type='button' onclick='testFunction()' value='Test'/> 127 <input type='button' onclick='testFunction()' value='Test'/>
128 <p> 128 <p>
129 Test that sections representing scopes are expandable and contain correct data f or async call frames. 129 Test that sections representing scopes are expandable and contain correct data f or async call frames.
130 </p> 130 </p>
131 </body> 131 </body>
132 </html> 132 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698