| Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-sourcemap.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-sourcemap.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-sourcemap.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5c84e7547d559df2bf91bcb001bca8fb32b47bb1
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-sourcemap.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 src="../debugger/resources/framework-with-sourcemap.js"></script>
|
| +<script>
|
| +
|
| +function testFunction()
|
| +{
|
| + debugger;
|
| + return foo(callback);
|
| +}
|
| +
|
| +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 blackboxing feature with sourcemaps.</p>
|
| +</body>
|
| +</html>
|
|
|