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

Side by Side Diff: LayoutTests/dart/inspector/deferred-import.html

Issue 1689873002: Enable inspector tests disabled when dart:html was switched to JS interop. (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/2454_1
Patch Set: Created 4 years, 10 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="deferred-import.dart"></script> 5 <script type="application/dart" src="deferred-import.dart"></script>
6 6
7 <script> 7 <script>
8 8
9 function postMessageToDart() 9 function postMessageToDart()
10 { 10 {
(...skipping 12 matching lines...) Expand all
23 { 23 {
24 // Intentionally end this script name with .DART instead of .dart 24 // Intentionally end this script name with .DART instead of .dart
25 // to verify that breakpoints set by url regex still are treated 25 // to verify that breakpoints set by url regex still are treated
26 // as dart even if the regexp and script url do not end in .dart. 26 // as dart even if the regexp and script url do not end in .dart.
27 InspectorTest.showScriptSource('deferred-import.dart', didShowScript Source); 27 InspectorTest.showScriptSource('deferred-import.dart', didShowScript Source);
28 28
29 function didShowScriptSource(sourceFrame) 29 function didShowScriptSource(sourceFrame)
30 { 30 {
31 // Break within the body of the closure method. 31 // Break within the body of the closure method.
32 setBreakpointAndWaitUntilPaused('deferred-import-library.dart', 4, didPauseInDart); 32 setBreakpointAndWaitUntilPaused('deferred-import-library.dart', 4, didPauseInDart);
33 InspectorTest.runTestFunction();
34 InspectorTest.waitUntilPaused(didPauseInDart);
35 } 33 }
36 34
37 function didPauseInDart(callFrames) 35 function didPauseInDart(callFrames)
38 { 36 {
39 InspectorTest.captureStackTrace(callFrames.slice(0, 1)); 37 InspectorTest.captureStackTrace(callFrames.slice(0, 1));
40 next(); 38 next();
41 } 39 }
42 }, 40 },
43 ]); 41 ]);
44 42
45 function setBreakpointAndWaitUntilPaused(urlRegex, lineNumber, pausedCallbac k) 43 function setBreakpointAndWaitUntilPaused(urlRegex, lineNumber, pausedCallbac k)
46 { 44 {
47 var expectedBreakpointId; 45 InspectorTest.DebuggerAgent.invoke_setBreakpointByUrl({urlRegex: urlRege x, lineNumber:lineNumber}, step2);
48 WebInspector.debuggerModel._agent.setBreakpointByUrl(lineNumber, undefin ed, urlRegex, 0, "", undefined, "dart", undefined); 46
47 function step2(result)
48 {
49 InspectorTest.runTestFunctionAndWaitUntilPaused(pausedCallback);
50 }
49 } 51 }
50 }; 52 };
51 </script> 53 </script>
52 54
53 <body onload="runTest()"> 55 <body onload="runTest()">
54 <div id="sample_text_id"></div> 56 <div id="sample_text_id"></div>
55 </body> 57 </body>
56 </html> 58 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698