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

Unified Diff: LayoutTests/inspector/sources/debugger/debugger-step-into-inlined-scripts.html

Issue 732593002: DevTools: Make StepInto work across script boundaries and Blink process tasks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 1 month 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/inspector/sources/debugger/debugger-step-into-inlined-scripts.html
diff --git a/LayoutTests/inspector/sources/debugger/debugger-step-into-inlined-scripts.html b/LayoutTests/inspector/sources/debugger/debugger-step-into-inlined-scripts.html
new file mode 100644
index 0000000000000000000000000000000000000000..9ed786d6ac900b04f0807f5d7d5fe52aa4222538
--- /dev/null
+++ b/LayoutTests/inspector/sources/debugger/debugger-step-into-inlined-scripts.html
@@ -0,0 +1,67 @@
+<html>
+<head>
+
+<script>
+function f1()
+{
+ return 1; // Breakpoint.
+}
+f1();
+</script>
+
+<script>
+function f2()
+{
+ return 2;
+}
+f2();
+</script>
+
+<script src="../../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../../http/tests/inspector/debugger-test.js"></script>
+
+<script>
+
+function test()
+{
+ var numberOfStepInto = 9;
+
+ InspectorTest.startDebuggerTest(step1, true);
+
+ function step1()
+ {
+ InspectorTest.showScriptSource("debugger-step-into-inlined-scripts.html", step2);
+ }
+
+ function step2(sourceFrame)
+ {
+ InspectorTest.addResult("Script source was shown.");
+ InspectorTest.setBreakpoint(sourceFrame, 6, "", true);
+ InspectorTest.waitUntilPaused(step3);
+ InspectorTest.reloadPage(completeTest);
+ }
+
+ function step3()
+ {
+ var actions = ["Print"]; // First pause on breakpoint.
+ for (var i = 0; i < numberOfStepInto; ++i)
+ actions.push("StepInto", "Print");
+ actions.push("Resume");
+ InspectorTest.waitUntilPausedAndPerformSteppingActions(actions);
+ }
+
+ function completeTest()
+ {
+ InspectorTest.completeDebuggerTest();
+ }
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<p>
+Tests that debugger StepInto will step through inlined scripts.
+</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698