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

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

Issue 2647083002: [DevTools] disable frameworks tests for V8 roll (Closed)
Patch Set: addressed comments 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/jquery-1.11.1.min.js"></script> 5 <script src="../debugger/resources/jquery-1.11.1.min.js"></script>
6 <script> 6 <script>
7 7
8 function testFunction() 8 function testFunction()
9 { 9 {
10 var pp = $("p"); 10 var pp = $("p");
11 var scripts = $("script"); 11 var scripts = $("script");
12 pp.on("testevent", onTestEvent1); 12 pp.on("testevent", onTestEvent1);
13 pp.on("testevent", onTestEvent2); 13 pp.on("testevent", onTestEvent2);
14 pp.on("testevent", onTestEvent3);
15 14
16 debugger; 15 debugger;
17 16
18 scripts.each(onEachScript); 17 scripts.each(onEachScript);
19 pp.trigger("testevent"); 18 pp.trigger("testevent");
20 } 19 }
21 20
22 function onTestEvent1() 21 function onTestEvent1()
23 { 22 {
24 output("onTestEvent1"); 23 output("onTestEvent1");
25 } 24 }
26 25
27 function onTestEvent2() 26 function onTestEvent2()
28 { 27 {
29 output("onTestEvent2"); 28 output("onTestEvent2");
30 } 29 }
31 30
32 function onTestEvent3()
33 {
34 output("onTestEvent3");
35 }
36
37 function onEachScript(index, script) 31 function onEachScript(index, script)
38 { 32 {
39 return script.textContent; 33 return script.textContent;
40 } 34 }
41 35
42 function test() 36 function test()
43 { 37 {
44 var frameworkRegexString = "/jquery-1\\.11\\.1\\.min\\.js$"; 38 var frameworkRegexString = "/jquery-1\\.11\\.1\\.min\\.js$";
45 Common.settingForTest("skipStackFramesPattern").set(frameworkRegexString); 39 Common.settingForTest("skipStackFramesPattern").set(frameworkRegexString);
46 40
47 InspectorTest.startDebuggerTest(step1, true); 41 InspectorTest.startDebuggerTest(step1, true);
48 42
49 function step1() 43 function step1()
50 { 44 {
51 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); 45 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
52 } 46 }
53 47
54 function step2() 48 function step2()
55 { 49 {
56 var actions = [ 50 var actions = [
57 "Print", // "debugger" in testFunction() 51 "Print", // "debugger" in testFunction()
58 "StepInto", "StepInto", "Print", // entered onEachScript() 52 "StepInto", "StepInto", "Print", // entered onEachScript()
59 "StepInto", "StepInto", "Print", // again in onEachScript() 53 "StepInto", "StepInto", "Print", // again in onEachScript()
60 "StepOver", "StepOver", "Print", // again in onEachScript() 54 "StepOver", "StepOver", "Print", // again in onEachScript()
61 "StepOut", "Print", // last time in onEachScript() 55 "StepOver", "StepOver", "Print", // again in onEachScript()
62 "StepOut", "Print", // about to execute jQuery.trigger( ) 56 "StepOut", "Print", // about to execute jQuery.trigger( )
63 "StepInto", "Print", // onTestEvent1 57 "StepInto", "Print", // onTestEvent1
64 "StepOut", "Print", // onTestEvent2 58 "StepOver", "StepOver", "Print" // onTestEvent2
65 "StepOver", "StepOver", "Print", // onTestEvent3
66 ]; 59 ];
67 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3); 60 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3);
68 } 61 }
69 62
70 function step3() 63 function step3()
71 { 64 {
72 InspectorTest.completeDebuggerTest(); 65 InspectorTest.completeDebuggerTest();
73 } 66 }
74 } 67 }
75 68
76 </script> 69 </script>
77 </head> 70 </head>
78 71
79 <body onload="runTest()"> 72 <body onload="runTest()">
80 <input type='button' onclick='testFunction()' value='Test'/> 73 <input type='button' onclick='testFunction()' value='Test'/>
81 <p> 74 <p>
82 Tests framework blackboxing feature on jQuery. 75 Tests framework blackboxing feature on jQuery.
83 </p> 76 </p>
84 </body> 77 </body>
85 </html> 78 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698