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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-skip-step-in-with-source-map.html

Issue 1579283002: [DevTools] Blackbox sources with inline source maps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@source-map-backend
Patch Set: Fix oilpan build Created 4 years, 11 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
1 <html> 1 <html>
pfeldman 2016/01/15 22:55:27 This should be a protocol test.
kozy 2016/01/16 00:23:16 Done.
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../debugger/resources/framework.js"></script> 5 <script src="../debugger/resources/framework-with-source-map-compiled.js"></scri pt>
6 <script> 6 <script>
7 7
8 var counter = 0; 8 function boo()
9 {
10 return 239;
11 }
9 12
10 function testFunction() 13 function testFunction()
11 { 14 {
12 Framework.scheduleUntilDone(callback, 0);
13 }
14
15 function callback()
16 {
17 ++counter;
18 if (counter === 1)
19 stop();
20 return counter === 2;
21 }
22
23 function stop()
24 {
25 debugger; 15 debugger;
16 foo(boo);
26 } 17 }
27 18
28 function test() 19 function test()
29 { 20 {
30 var frameworkRegexString = "/framework\\.js$"; 21 var frameworkRegexString = "framework-with-source-map\\.js$";
31 WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexStri ng); 22 WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexStri ng);
32 23
33 InspectorTest.startDebuggerTest(step1, true); 24 InspectorTest.startDebuggerTest(step1, true);
34 25
35 function step1() 26 function step1()
36 { 27 {
37 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); 28 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
38 } 29 }
39 30
40 function step2() 31 function step2()
41 { 32 {
42 var actions = [ 33 var actions = [
43 "Print", // debugger; 34 "Print",
44 "StepOut", "Print",
45 "StepInto", "Print", 35 "StepInto", "Print",
46 "StepInto", "Print", // Should NOT stop on setTimeout() inside frame work 36 "StepInto", "Print",
37 "StepOut", "Print"
47 ]; 38 ];
48 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3); 39 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3);
49 } 40 }
50 41
51 function step3() 42 function step3()
52 { 43 {
53 InspectorTest.completeDebuggerTest(); 44 InspectorTest.completeDebuggerTest();
54 } 45 }
55 } 46 }
56 47
57 </script> 48 </script>
58 </head> 49 </head>
59 50
60 <body onload="runTest()"> 51 <body onload="runTest()">
61 <input type='button' onclick='testFunction()' value='Test'/>
62 <p> 52 <p>
63 Tests that stepping into blackboxed framework will not pause on setTimeout() ins ide the framework. 53 Tests that stepping into blackboxed framework will not pause if source map is us ed.
64 </p> 54 </p>
65 </body> 55 </body>
66 </html> 56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698