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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-provisional.html

Issue 1754483002: [DevTools] Added setBlackboxPatterns method to protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@provide-hash-for-anonymous-scripts
Patch Set: Created 4 years, 9 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-frameworks/frameworks-provisional.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-provisional.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-provisional.html
new file mode 100644
index 0000000000000000000000000000000000000000..76e9213d6b32108225ef7f9adec6b50a1bc550e8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-provisional.html
@@ -0,0 +1,55 @@
+<html>
+<head>
+<script src="../../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../../http/tests/inspector/debugger-test.js"></script>
+<script>
+
+function testFunction()
+{
+ debugger;
+ eval("var a = 42; ++a; callback(a + 239);\n//# sourceURL=framework.js")
+ return 42;
+}
+
+function callback(i)
+{
+ return i;
+}
+
+function test()
+{
+ InspectorTest.addSniffer(WebInspector.BlackboxManager.prototype, "_patternChangeFinishedForTests", step1);
+ var frameworkRegexString = "framework\\.js$";
+ WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexString);
+
+ function step1()
+ {
+ InspectorTest.startDebuggerTest(step2, true);
+ }
+
+ function step2()
+ {
+ InspectorTest.runTestFunctionAndWaitUntilPaused(step3);
+ }
+
+ function step3()
+ {
+ var actions = [
+ "Print", // "debugger" in testFunction()
+ "StepInto", "StepInto", "Print", // entered callback(i)
+ "StepOut", "Print"
+ ];
+ InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step4);
+ }
+
+ function step4()
+ {
+ InspectorTest.completeDebuggerTest();
+ }
+}
+</script>
+</head>
+<body onload="runTest()">
+<p>Tests framework provisional blackboxing.</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698