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

Side by Side Diff: LayoutTests/dart/inspector/debugger-code-in-html.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
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"> 5 <script type="application/dart">
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 8
9 main() { 9 main() {
10 window.onMessage.listen(handleMessage); 10 window.onMessage.listen(handleMessage);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 function didShowScriptSource(sourceFrame) 54 function didShowScriptSource(sourceFrame)
55 { 55 {
56 InspectorTest.setBreakpoint(sourceFrame, 19, '', true); 56 InspectorTest.setBreakpoint(sourceFrame, 19, '', true);
57 InspectorTest.waitUntilPaused(didPauseInDart); 57 InspectorTest.waitUntilPaused(didPauseInDart);
58 InspectorTest.evaluateInPage('postMessageToDart()'); 58 InspectorTest.evaluateInPage('postMessageToDart()');
59 } 59 }
60 60
61 function didPauseInDart(callFrames) 61 function didPauseInDart(callFrames)
62 { 62 {
63 InspectorTest.captureStackTrace(callFrames); 63 InspectorTest.captureStackTrace(callFrames, false, true);
64 InspectorTest.resumeExecution(resumedDart); 64 InspectorTest.resumeExecution(resumedDart);
65 } 65 }
66 66
67 function resumedDart() 67 function resumedDart()
68 { 68 {
69 InspectorTest.waitUntilPaused(didPauseInJS); 69 InspectorTest.waitUntilPaused(didPauseInJS);
70 } 70 }
71 71
72 function didPauseInJS(callFrames) 72 function didPauseInJS(callFrames)
73 { 73 {
74 InspectorTest.captureStackTrace(callFrames); 74 InspectorTest.captureStackTrace(callFrames, false, true);
75 InspectorTest.resumeExecution(next); 75 InspectorTest.resumeExecution(next);
76 } 76 }
77 }, 77 },
78 function testRemoveBreakpoint(next) 78 function testRemoveBreakpoint(next)
79 { 79 {
80 InspectorTest.showScriptSource('debugger-code-in-html.html', didShow ScriptSource); 80 InspectorTest.showScriptSource('debugger-code-in-html.html', didShow ScriptSource);
81 81
82 function didShowScriptSource(sourceFrame) 82 function didShowScriptSource(sourceFrame)
83 { 83 {
84 InspectorTest.removeBreakpoint(sourceFrame, 19); 84 InspectorTest.removeBreakpoint(sourceFrame, 19);
85 InspectorTest.waitUntilPaused(didPause); 85 InspectorTest.waitUntilPaused(didPause);
86 InspectorTest.evaluateInPage('postMessageToDart()'); 86 InspectorTest.evaluateInPage('postMessageToDart()');
87 } 87 }
88 88
89 function didPause(callFrames) 89 function didPause(callFrames)
90 { 90 {
91 // Should pause in JS. 91 // Should pause in JS.
92 InspectorTest.captureStackTrace(callFrames); 92 InspectorTest.captureStackTrace(callFrames, false, true);
93 InspectorTest.resumeExecution(next); 93 InspectorTest.resumeExecution(next);
94 } 94 }
95 } 95 }
96 ]); 96 ]);
97 }; 97 };
98 98
99 </script> 99 </script>
100 100
101 <body onload="runTest()"> 101 <body onload="runTest()">
102 </body> 102 </body>
103 </html> 103 </html>
OLDNEW
« no previous file with comments | « LayoutTests/dart/inspector/debugger.html ('k') | LayoutTests/dart/inspector/debugger-code-in-html-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698