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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-sourcemap.html

Issue 1663723002: [DevTools] Add sourceMap support for blackboxing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@call-set-blackboxed-ranges-on-script-parsed
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../debugger/resources/framework-with-sourcemap.js"></script>
6 <script>
7
8 function testFunction()
9 {
10 debugger;
11 return foo(callback);
12 }
13
14 function callback(i)
15 {
16 return i;
17 }
18
19 function test()
20 {
21 InspectorTest.addSniffer(WebInspector.BlackboxManager.prototype, "_patternCh angeFinishedForTests", step1);
22 var frameworkRegexString = "/framework\\.js$";
23 WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexStri ng);
24
25 function step1()
26 {
27 InspectorTest.startDebuggerTest(step2, true);
28 }
29
30 function step2()
31 {
32 InspectorTest.runTestFunctionAndWaitUntilPaused(step3);
33 }
34
35 function step3()
36 {
37 var actions = [
38 "Print", // "debugger" in testFunction()
39 "StepInto", "StepInto", "Print", // entered callback(i)
40 "StepOut", "Print"
41 ];
42 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step4);
43 }
44
45 function step4()
46 {
47 InspectorTest.completeDebuggerTest();
48 }
49 }
50 </script>
51 </head>
52 <body onload="runTest()">
53 <p>Tests framework blackboxing feature with sourcemaps.</p>
54 </body>
55 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698