| Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-skip-step-in-with-source-map.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-step-into-skips-setTimeout.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-skip-step-in-with-source-map.html
|
| similarity index 56%
|
| copy from third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-step-into-skips-setTimeout.html
|
| copy to third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-skip-step-in-with-source-map.html
|
| index de0edb7e1449ce1b5a85f7573bf582555b4475ac..41ee9826a7fa2fa5f086402be1f2827b26497117 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-step-into-skips-setTimeout.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-skip-step-in-with-source-map.html
|
| @@ -2,32 +2,23 @@
|
| <head>
|
| <script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| <script src="../../../http/tests/inspector/debugger-test.js"></script>
|
| -<script src="../debugger/resources/framework.js"></script>
|
| +<script src="../debugger/resources/framework-with-source-map-compiled.js"></script>
|
| <script>
|
|
|
| -var counter = 0;
|
| -
|
| -function testFunction()
|
| +function boo()
|
| {
|
| - Framework.scheduleUntilDone(callback, 0);
|
| + return 239;
|
| }
|
|
|
| -function callback()
|
| -{
|
| - ++counter;
|
| - if (counter === 1)
|
| - stop();
|
| - return counter === 2;
|
| -}
|
| -
|
| -function stop()
|
| +function testFunction()
|
| {
|
| debugger;
|
| + foo(boo);
|
| }
|
|
|
| function test()
|
| {
|
| - var frameworkRegexString = "/framework\\.js$";
|
| + var frameworkRegexString = "framework-with-source-map\\.js$";
|
| WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexString);
|
|
|
| InspectorTest.startDebuggerTest(step1, true);
|
| @@ -40,10 +31,10 @@ function test()
|
| function step2()
|
| {
|
| var actions = [
|
| - "Print", // debugger;
|
| - "StepOut", "Print",
|
| + "Print",
|
| + "StepInto", "Print",
|
| "StepInto", "Print",
|
| - "StepInto", "Print", // Should NOT stop on setTimeout() inside framework
|
| + "StepOut", "Print"
|
| ];
|
| InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3);
|
| }
|
| @@ -58,9 +49,8 @@ function test()
|
| </head>
|
|
|
| <body onload="runTest()">
|
| -<input type='button' onclick='testFunction()' value='Test'/>
|
| <p>
|
| -Tests that stepping into blackboxed framework will not pause on setTimeout() inside the framework.
|
| +Tests that stepping into blackboxed framework will not pause if source map is used.
|
| </p>
|
| </body>
|
| </html>
|
|
|