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

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

Issue 2647083002: [DevTools] disable frameworks tests for V8 roll (Closed)
Patch Set: Created 3 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>
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.js"></script>
6 <script> 6 <script>
7 7
8 function testFunction() 8 function testFunction()
9 { 9 {
10 debugger; 10 debugger;
(...skipping 12 matching lines...) Expand all
23 { 23 {
24 var func = Framework.bind(callback4, null, 1); 24 var func = Framework.bind(callback4, null, 1);
25 func = Framework.bind(func, null, 2); 25 func = Framework.bind(func, null, 2);
26 func = Framework.bind(func, null, 3); 26 func = Framework.bind(func, null, 3);
27 Framework.safeRun(func, Framework.empty); 27 Framework.safeRun(func, Framework.empty);
28 } 28 }
29 29
30 function callback4() 30 function callback4()
31 { 31 {
32 Framework.safeRun(Framework.doSomeWork, function() { 32 Framework.safeRun(Framework.doSomeWork, function() {
33 return 0; // Should NOT step into this callback (otherwise too many Step Ins) 33 return 0;
34 }); 34 });
35 try { 35 try {
36 Framework.throwFrameworkException("message"); 36 Framework.throwFrameworkException("message");
37 } catch (e) { 37 } catch (e) {
38 window.ex = e; 38 window.ex = e;
39 } 39 }
40 } 40 }
41 41
42 function test() 42 function test()
43 { 43 {
44 var frameworkRegexString = "/framework\\.js$"; 44 var frameworkRegexString = "/framework\\.js$";
45 Common.settingForTest("skipStackFramesPattern").set(frameworkRegexString); 45 Common.settingForTest("skipStackFramesPattern").set(frameworkRegexString);
46 46
47 InspectorTest.startDebuggerTest(step1, true); 47 InspectorTest.startDebuggerTest(step1, true);
48 48
49 function step1() 49 function step1()
50 { 50 {
51 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); 51 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
52 } 52 }
53 53
54 function step2() 54 function step2()
55 { 55 {
56 var actions = [ 56 var actions = [
57 "Print", // debugger; 57 "Print", // debugger;
58 "StepInto", "StepInto", "Print", // callback1 58 "StepInto", "StepInto", "Print", // callback1
59 "StepInto", "Print", // callback2 59 "StepInto", "Print", // callback2
60 "StepInto", "Print", // callback2, skipped 60 "StepInto", "Print", // callback2, skipped
61 "StepInto", "Print", // callback3 61 "StepInto", "Print", // callback3
62 "StepInto", "StepInto", "StepInto", "StepInto", "Print", // callback 4 62 "StepInto", "StepInto", "StepInto", "StepInto", "Print", // callback 4
63 "StepInto", "Print", // callback4, skipped 63 "StepInto", "StepInto", "StepInto", "Print", // callback4, skipped
kozy 2017/01/20 21:59:59 print before new stepIntos
64 "StepInto", "Print", // callback4, inside catch 64 "StepInto", "Print", // callback4, inside catch
65 "StepOut", "Print", // return to callback3 65 "StepOut", "Print", // return to callback3
66 "StepOver", "Print", // return to callback2 66 "StepOver", "Print", // return to callback2
67 "StepInto", "Print", // return to callback1 67 "StepInto", "Print", // return to callback1
68 ]; 68 ];
69 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3); 69 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3);
70 } 70 }
71 71
72 function step3() 72 function step3()
73 { 73 {
74 InspectorTest.completeDebuggerTest(); 74 InspectorTest.completeDebuggerTest();
75 } 75 }
76 } 76 }
77 77
78 </script> 78 </script>
79 </head> 79 </head>
80 80
81 <body onload="runTest()"> 81 <body onload="runTest()">
82 <input type='button' onclick='testFunction()' value='Test'/> 82 <input type='button' onclick='testFunction()' value='Test'/>
83 <p> 83 <p>
84 Tests stepping into/over/out with framework black-boxing. 84 Tests stepping into/over/out with framework black-boxing.
85 </p> 85 </p>
86 </body> 86 </body>
87 </html> 87 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698