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

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

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 years 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
OLDNEW
(Empty)
1 <html>
2 <script src="../../http/tests/inspector/inspector-test.js"></script>
3 <script src="../../http/tests/inspector/debugger-test.js"></script>
4
5 <script type="application/dart" src="deferred-import.dart"></script>
6
7 <script>
8
9 function postMessageToDart()
10 {
11 window.postMessage('fromJS', '*');
12 }
13
14 function testFunction() {
15 postMessageToDart();
16 }
17
18 function test()
19 {
20 var panel = WebInspector.inspectorView.showPanel("sources");
21 InspectorTest.runDebuggerTestSuite([
22 function testScopeChain(next)
23 {
24 // Intentionally end this script name with .DART instead of .dart
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.
27 InspectorTest.showScriptSource('deferred-import.dart', didShowScript Source);
28
29 function didShowScriptSource(sourceFrame)
30 {
31 // Break within the body of the closure method.
32 setBreakpointAndWaitUntilPaused('deferred-import-library.dart', 4, didPauseInDart);
33 InspectorTest.runTestFunction();
34 InspectorTest.waitUntilPaused(didPauseInDart);
35 }
36
37 function didPauseInDart(callFrames)
38 {
39 InspectorTest.captureStackTrace(callFrames.slice(0, 1));
40 next();
41 }
42 },
43 ]);
44
45 function setBreakpointAndWaitUntilPaused(urlRegex, lineNumber, pausedCallbac k)
46 {
47 var expectedBreakpointId;
48 WebInspector.debuggerModel._agent.setBreakpointByUrl(lineNumber, undefin ed, urlRegex, 0, "", undefined, "dart", undefined);
49 }
50 };
51 </script>
52
53 <body onload="runTest()">
54 <div id="sample_text_id"></div>
55 </body>
56 </html>
OLDNEW
« no previous file with comments | « LayoutTests/dart/inspector/deferred-import.dart ('k') | LayoutTests/dart/inspector/deferred-import-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698