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/dart/inspector/debugger-eval-on-call-frame.html

Issue 300393002: Merge DevTools Refactor CL to Blink36 (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/1985
Patch Set: PTAL Created 6 years, 6 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" src="debugger-eval-on-call-frame.dart"></script> 5 <script type="application/dart" src="debugger-eval-on-call-frame.dart"></script>
6 6
7 <script> 7 <script>
8
8 function postMessageToDart() 9 function postMessageToDart()
9 { 10 {
10 window.postMessage('fromJS', '*'); 11 window.postMessage('fromJS', '*');
11 } 12 }
12 13
14 function testFunction() {
15 postMessageToDart();
16 }
17
13 function test() 18 function test()
14 { 19 {
20 var panel = WebInspector.inspectorView.showPanel("sources");
15 InspectorTest.runDebuggerTestSuite([ 21 InspectorTest.runDebuggerTestSuite([
16 function testScopeChain(next) 22 function testScopeChain(next)
17 { 23 {
18 InspectorTest.showScriptSource('debugger-eval-on-call-frame.dart', d idShowScriptSource); 24 InspectorTest.showScriptSource('debugger-eval-on-call-frame.dart', d idShowScriptSource);
19 25
20 function didShowScriptSource(sourceFrame) 26 function didShowScriptSource(sourceFrame)
21 { 27 {
22 InspectorTest.addSniffer(WebInspector.JavaScriptSourceFrame.prot otype, "_addBreakpointDecoration", didAddBreakpoint); 28 InspectorTest.addSniffer(WebInspector.JavaScriptSourceFrame.prot otype, "_addBreakpointDecoration", didAddBreakpoint);
23 // Break within the body of the closure method. 29 // Break within the body of the closure method.
24 InspectorTest.setBreakpoint(sourceFrame, 35, '', true); 30 InspectorTest.setBreakpoint(sourceFrame, 35, '', true);
25 } 31 }
26 32
27 function didAddBreakpoint(lineNumber) 33 function didAddBreakpoint(lineNumber)
28 { 34 {
29 InspectorTest.addResult("Breakpoint added to source frame at lin e " + lineNumber); 35 InspectorTest.addResult("Breakpoint added to source frame at lin e " + lineNumber);
30 36 InspectorTest.runTestFunctionAndWaitUntilPaused(didPauseInDart);
31 InspectorTest.waitUntilPaused(didPauseInDart);
32 InspectorTest.evaluateInPage('postMessageToDart()');
33 } 37 }
34 38
35 function didPauseInDart(callFrames) 39 function didPauseInDart(callFrames)
36 { 40 {
37 InspectorTest.captureStackTrace(callFrames); 41 InspectorTest.captureStackTrace(callFrames);
38 42
39 function evaluate(expression) 43 function evaluate(expression)
40 { 44 {
41 InspectorTest.evaluateInConsole(expression, didEvaluateInCon sole); 45 InspectorTest.evaluateInConsole(expression, didEvaluateInCon sole);
42 function didEvaluateInConsole(result) 46 function didEvaluateInConsole(result)
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 evaluate(expressions.shift()); 89 evaluate(expressions.shift());
86 } 90 }
87 }, 91 },
88 ]); 92 ]);
89 }; 93 };
90 </script> 94 </script>
91 95
92 <body onload="runTest()"> 96 <body onload="runTest()">
93 </body> 97 </body>
94 </html> 98 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698