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

Side by Side Diff: LayoutTests/inspector/sources/debugger-step/debugger-step-out-document-write.html

Issue 1213693006: [DevTools] Don't update Object Event Listeners sidebar when hidden (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5
3 <script> 6 <script>
4 document.writeln("<script>\nfunction f1() {\n window.foo1 = true;\n}\nf1(); \n <" + "/script>"); 7 document.writeln("<script>\nfunction f1() {\n window.foo1 = true;\n}\nf1(); \n <" + "/script>");
5 </script> 8 </script>
6
7 <script> 9 <script>
8 console.assert(window.foo1, "FAIL: foo1"); 10 console.assert(window.foo1, "FAIL: foo1");
9 </script> 11 </script>
10
11 <script> 12 <script>
12 function global1() 13 function global1()
13 { 14 {
14 debugger; 15 debugger;
15 document.writeln("<script>\nfunction f2() {\n window.foo2 = true;\n}\nf2(); \n <" + "/script>"); 16 document.writeln("<script>\nfunction f2() {\n window.foo2 = true;\n}\nf2(); \n <" + "/script>");
16 } 17 }
17 var x = global1(); 18 var x = global1();
18 </script> 19 </script>
19
20 <script> 20 <script>
21 console.assert(window.foo2, "FAIL: foo2"); 21 console.assert(window.foo2, "FAIL: foo2");
22 </script> 22 </script>
23 23
24 <script src="../../../http/tests/inspector/inspector-test.js"></script>
25 <script src="../../../http/tests/inspector/debugger-test.js"></script>
26
27 <script> 24 <script>
28
29 function test() 25 function test()
30 { 26 {
31 var numberOfStepOut = 5; 27 var numberOfStepOut = 5;
32 28
33 InspectorTest.startDebuggerTest(step1, true); 29 InspectorTest.startDebuggerTest(step1, true);
34 30
35 function step1() 31 function step1()
36 { 32 {
37 InspectorTest.showScriptSource("debugger-step-out-document-write.html", step2); 33 InspectorTest.showScriptSource("debugger-step-out-document-write.html", step2);
38 } 34 }
39 35
40 function step2(sourceFrame) 36 function step2(sourceFrame)
41 { 37 {
42 InspectorTest.addResult("Script source was shown."); 38 InspectorTest.addResult("Script source was shown.");
43 InspectorTest.setBreakpoint(sourceFrame, 3, "", true); 39 InspectorTest.setBreakpoint(sourceFrame, 6, "", true);
44 InspectorTest.waitUntilPaused(step3); 40 InspectorTest.waitUntilPaused(step3);
45 InspectorTest.reloadPage(completeTest); 41 InspectorTest.reloadPage(completeTest);
46 } 42 }
47 43
48 function step3() 44 function step3()
49 { 45 {
50 var actions = ["Print"]; // First pause on breakpoint. 46 var actions = ["Print"]; // First pause on breakpoint.
51 for (var i = 0; i < numberOfStepOut; ++i) 47 for (var i = 0; i < numberOfStepOut; ++i)
52 actions.push("StepOut", "Print"); 48 actions.push("StepOut", "Print");
53 actions.push("Resume"); 49 actions.push("Resume");
54 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions); 50 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions);
55 } 51 }
56 52
57 function completeTest() 53 function completeTest()
58 { 54 {
59 InspectorTest.completeDebuggerTest(); 55 InspectorTest.completeDebuggerTest();
60 } 56 }
61 } 57 }
62
63 </script> 58 </script>
64 </head> 59 </head>
65 60
66 <body onload="runTest()"> 61 <body onload="runTest()">
67 <p> 62 <p>
68 Tests that debugger StepOut will skip inlined scripts created by document.write( ). 63 Tests that debugger StepOut will skip inlined scripts created by document.write( ).
69 </p> 64 </p>
70 </body> 65 </body>
71 </html> 66 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698