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

Side by Side Diff: LayoutTests/dart/inspector/debugger.html

Issue 23710032: Switch the DevTools to support a true Dart REPL (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: PTAL Created 7 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/dart/inspector/debugger-code-in-html.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <script src="../../http/tests/inspector/inspector-test.js"></script> 2 <script src="../../http/tests/inspector/inspector-test.js"></script>
3 <script src="../../http/tests/inspector/debugger-test.js"></script> 3 <script src="../../http/tests/inspector/debugger-test.js"></script>
4 4
5 <script type="application/dart" src="debugger.dart"></script> 5 <script type="application/dart" src="debugger.dart"></script>
6 6
7 <script> 7 <script>
8 if (window.navigator.webkitStartDart) 8 if (window.navigator.webkitStartDart)
9 navigator.webkitStartDart(); 9 navigator.webkitStartDart();
10 </script> 10 </script>
(...skipping 24 matching lines...) Expand all
35 35
36 function didShowScriptSource(sourceFrame) 36 function didShowScriptSource(sourceFrame)
37 { 37 {
38 InspectorTest.setBreakpoint(sourceFrame, 13, '', true); 38 InspectorTest.setBreakpoint(sourceFrame, 13, '', true);
39 InspectorTest.waitUntilPaused(didPauseInDart); 39 InspectorTest.waitUntilPaused(didPauseInDart);
40 InspectorTest.evaluateInPage('postMessageToDart()'); 40 InspectorTest.evaluateInPage('postMessageToDart()');
41 } 41 }
42 42
43 function didPauseInDart(callFrames) 43 function didPauseInDart(callFrames)
44 { 44 {
45 InspectorTest.captureStackTrace(callFrames); 45 InspectorTest.captureStackTrace(callFrames, false, true);
46 InspectorTest.resumeExecution(resumedDart); 46 InspectorTest.resumeExecution(resumedDart);
47 } 47 }
48 48
49 function resumedDart() 49 function resumedDart()
50 { 50 {
51 InspectorTest.waitUntilPaused(didPauseInJS); 51 InspectorTest.waitUntilPaused(didPauseInJS);
52 } 52 }
53 53
54 function didPauseInJS(callFrames) 54 function didPauseInJS(callFrames)
55 { 55 {
56 InspectorTest.captureStackTrace(callFrames); 56 InspectorTest.captureStackTrace(callFrames, false, true);
57 InspectorTest.resumeExecution(next); 57 InspectorTest.resumeExecution(next);
58 } 58 }
59 }, 59 },
60 60
61 function testRemoveBreakpoint(next) 61 function testRemoveBreakpoint(next)
62 { 62 {
63 InspectorTest.showScriptSource('debugger.dart', didShowScriptSource) ; 63 InspectorTest.showScriptSource('debugger.dart', didShowScriptSource) ;
64 64
65 function didShowScriptSource(sourceFrame) 65 function didShowScriptSource(sourceFrame)
66 { 66 {
67 InspectorTest.removeBreakpoint(sourceFrame, 13); 67 InspectorTest.removeBreakpoint(sourceFrame, 13);
68 InspectorTest.waitUntilPaused(didPause); 68 InspectorTest.waitUntilPaused(didPause);
69 InspectorTest.evaluateInPage('postMessageToDart()'); 69 InspectorTest.evaluateInPage('postMessageToDart()');
70 } 70 }
71 71
72 function didPause(callFrames) 72 function didPause(callFrames)
73 { 73 {
74 // Should pause in JS. 74 // Should pause in JS.
75 InspectorTest.captureStackTrace(callFrames); 75 InspectorTest.captureStackTrace(callFrames, false, true);
76 InspectorTest.resumeExecution(next); 76 InspectorTest.resumeExecution(next);
77 } 77 }
78 } 78 }
79 ]); 79 ]);
80 }; 80 };
81 81
82 </script> 82 </script>
83 83
84 <body onload="runTest()"> 84 <body onload="runTest()">
85 </body> 85 </body>
86 </html> 86 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/dart/inspector/debugger-code-in-html.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698