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> |