Chromium Code Reviews| 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..a8551c02d6516153cec1c239a2af44daae149299 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,18 @@ |
| <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() |
| { |
| - Framework.scheduleUntilDone(callback, 0); |
| -} |
| - |
| -function callback() |
| -{ |
| - ++counter; |
| - if (counter === 1) |
| - stop(); |
| - return counter === 2; |
| -} |
| - |
| -function stop() |
| -{ |
| debugger; |
| + foo(); |
|
dgozman
2016/01/13 01:28:49
Let's make it foo(bar), where bar is defined in th
kozy
2016/01/13 20:47:57
Done.
|
| } |
| function test() |
| { |
| - var frameworkRegexString = "/framework\\.js$"; |
| + var frameworkRegexString = "framework-with-source-map\\.js$"; |
| WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexString); |
| InspectorTest.startDebuggerTest(step1, true); |
| @@ -40,10 +26,9 @@ function test() |
| function step2() |
| { |
| var actions = [ |
| - "Print", // debugger; |
| - "StepOut", "Print", |
| + "Print", |
| "StepInto", "Print", |
| - "StepInto", "Print", // Should NOT stop on setTimeout() inside framework |
| + "StepInto", "Print" |
| ]; |
| InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3); |
| } |
| @@ -58,9 +43,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> |