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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/dart/inspector/deferred-import.html
diff --git a/LayoutTests/dart/inspector/deferred-import.html b/LayoutTests/dart/inspector/deferred-import.html
new file mode 100644
index 0000000000000000000000000000000000000000..8777ea8ef8a3a0eb73030dd0e8a0ff7e81c8670d
--- /dev/null
+++ b/LayoutTests/dart/inspector/deferred-import.html
@@ -0,0 +1,56 @@
+<html>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/debugger-test.js"></script>
+
+<script type="application/dart" src="deferred-import.dart"></script>
+
+<script>
+
+function postMessageToDart()
+{
+ window.postMessage('fromJS', '*');
+}
+
+function testFunction() {
+ postMessageToDart();
+}
+
+function test()
+{
+ var panel = WebInspector.inspectorView.showPanel("sources");
+ InspectorTest.runDebuggerTestSuite([
+ function testScopeChain(next)
+ {
+ // Intentionally end this script name with .DART instead of .dart
+ // to verify that breakpoints set by url regex still are treated
+ // as dart even if the regexp and script url do not end in .dart.
+ InspectorTest.showScriptSource('deferred-import.dart', didShowScriptSource);
+
+ function didShowScriptSource(sourceFrame)
+ {
+ // Break within the body of the closure method.
+ setBreakpointAndWaitUntilPaused('deferred-import-library.dart', 4, didPauseInDart);
+ InspectorTest.runTestFunction();
+ InspectorTest.waitUntilPaused(didPauseInDart);
+ }
+
+ function didPauseInDart(callFrames)
+ {
+ InspectorTest.captureStackTrace(callFrames.slice(0, 1));
+ next();
+ }
+ },
+ ]);
+
+ function setBreakpointAndWaitUntilPaused(urlRegex, lineNumber, pausedCallback)
+ {
+ var expectedBreakpointId;
+ WebInspector.debuggerModel._agent.setBreakpointByUrl(lineNumber, undefined, urlRegex, 0, "", undefined, "dart", undefined);
+ }
+};
+</script>
+
+<body onload="runTest()">
+<div id="sample_text_id"></div>
+</body>
+</html>
« 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