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

Unified Diff: LayoutTests/inspector/sources/debugger/debugger-step-into-v8-internals.html

Issue 424813004: DevTools: Don't stop debugger inside V8 internal scripts with empty stack trace. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: LayoutTests/inspector/sources/debugger/debugger-step-into-v8-internals.html
diff --git a/LayoutTests/inspector/sources/debugger/debugger-step-into-v8-internals.html b/LayoutTests/inspector/sources/debugger/debugger-step-into-v8-internals.html
new file mode 100644
index 0000000000000000000000000000000000000000..cd009c3d90f149c2cf7ea66e457eb2a3d3d3b49c
--- /dev/null
+++ b/LayoutTests/inspector/sources/debugger/debugger-step-into-v8-internals.html
@@ -0,0 +1,54 @@
+<html>
+<head>
+<script src="../../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../../http/tests/inspector/debugger-test.js"></script>
+<script>
+
+function testFunction()
+{
+ Promise.resolve(42).then(function() {
+ debugger;
+ }).then(function() {
+ var dummy1 = 1;
+ var dummy2 = 2;
+ debugger;
+ });
+}
+
+function test()
+{
+ InspectorTest.setQuiet(true);
+ InspectorTest.startDebuggerTest(step1);
+
+ function step1()
+ {
+ InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
+ }
+
+ function step2()
+ {
+ var actions = [
+ "Print", // debugger;
+ "StepInto", "Print",
+ "StepInto", "Print",
+ "StepInto", "Print",
+ ];
+ InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3);
+ }
+
+ function step3()
+ {
+ InspectorTest.completeDebuggerTest();
+ }
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<input type='button' onclick='testFunction()' value='Test'/>
+<p>
+Tests that debugger will not step into V8 internal scripts.
+</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698