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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-step/debugger-step-in-ignore-injected-script.html

Issue 2181453002: [DevTools] Never stop in InjectedScriptSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-step/debugger-step-in-ignore-injected-script.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-step/debugger-step-in-ignore-injected-script.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-step/debugger-step-in-ignore-injected-script.html
new file mode 100644
index 0000000000000000000000000000000000000000..5e650e9f50e4b43cd4521d6e4295e1e655fe9cca
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-step/debugger-step-in-ignore-injected-script.html
@@ -0,0 +1,38 @@
+<html>
+<head>
+<script src="../../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../../http/tests/inspector/debugger-test.js"></script>
+<script>
+function testFunction()
+{
+ debugger;
+ console.log(123);
+ return 239; // stack result should point here
+}
+</script>
+<script>
+
+function test()
+{
+ InspectorTest.startDebuggerTestPromise(/* quiet */ true)
+ .then(() => InspectorTest.runTestFunctionAndWaitUntilPausedPromise())
+ .then(() => stepIntoPromise())
+ .then(() => stepIntoPromise())
+ .then((callFrames) => InspectorTest.captureStackTrace(callFrames))
+ .then(() => InspectorTest.completeDebuggerTest());
+
+ function stepIntoPromise()
+ {
+ var cb;
+ var p = new Promise(fullfill => cb = fullfill);
+ InspectorTest.stepInto();
+ InspectorTest.waitUntilResumed(() => InspectorTest.waitUntilPaused(cb));
+ return p;
+ }
+}
+</script>
+</head>
+<body onload="runTest()">
+<p>Tests that stepInto doesn't pause in InjectedScriptSource.</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698