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

Unified Diff: LayoutTests/inspector/sources/debugger/debugger-step-into-across-timeouts.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
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/debugger-step-into-across-timeouts-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/sources/debugger/debugger-step-into-across-timeouts.html
diff --git a/LayoutTests/inspector/sources/debugger/debugger-step-into-across-timeouts.html b/LayoutTests/inspector/sources/debugger/debugger-step-into-across-timeouts.html
new file mode 100644
index 0000000000000000000000000000000000000000..2b1fb78587428a7c4d4648ba2449e95c3c75d99e
--- /dev/null
+++ b/LayoutTests/inspector/sources/debugger/debugger-step-into-across-timeouts.html
@@ -0,0 +1,61 @@
+<html>
+<head>
+<script src="../../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../../http/tests/inspector/debugger-test.js"></script>
+<script>
+
+function testFunction()
+{
+ setTimeout(callback1, 0);
+}
+
+function callback1()
+{
+ setTimeout(callback2, 0);
+ debugger;
+}
+
+function callback2()
+{
+ var dummy = 42; // Should pause here.
+ (function FAIL_Should_Not_Pause_Here() { debugger; })();
+
+ if (window.testRunner)
+ testRunner.evaluateInWebInspector(0, "(InspectorTest.completeDebuggerTest())")
+}
+
+var test = function()
+{
+ InspectorTest.startDebuggerTest(step1, true);
+
+ function step1()
+ {
+ InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
+ }
+
+ function step2()
+ {
+ var actions = [
+ "Print", // "debugger" in callback1
+ "StepInto",
+ "StepInto",
+ "Print",
+ ];
+ InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, resume);
+ }
+
+ function resume()
+ {
+ InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(InspectorTest, resume));
+ }
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<p>
+Tests that debugger StepInto will stop inside next timeout handler.
+</p>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/debugger-step-into-across-timeouts-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698