| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script> | 3 <script> |
| 4 document.writeln("<script>\nfunction f1() {\n window.foo = true;\n}\nf1();\
n <" + "/script>"); | 4 document.writeln("<script>\nfunction f1() {\n window.foo = true;\n}\nf1();\
n <" + "/script>"); |
| 5 </script> | 5 </script> |
| 6 | 6 |
| 7 <script> | 7 <script> |
| 8 console.assert(window.foo, "FAIL"); | 8 console.assert(window.foo, "FAIL"); |
| 9 </script> | 9 </script> |
| 10 | 10 |
| 11 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 11 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 12 <script src="../../../http/tests/inspector/debugger-test.js"></script> | 12 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 13 | 13 |
| 14 <script> | 14 <script> |
| 15 | 15 |
| 16 function test() | 16 function test() |
| 17 { | 17 { |
| 18 var numberOfStepInto = 9; | 18 var numberOfStepInto = 9; |
| 19 | 19 |
| 20 InspectorTest.startDumpingProtocolMessages(); |
| 20 InspectorTest.startDebuggerTest(step1, true); | 21 InspectorTest.startDebuggerTest(step1, true); |
| 21 | 22 |
| 22 function step1() | 23 function step1() |
| 23 { | 24 { |
| 24 InspectorTest.showScriptSource("debugger-step-into-document-write.html",
step2); | 25 InspectorTest.showScriptSource("debugger-step-into-document-write.html",
step2); |
| 25 } | 26 } |
| 26 | 27 |
| 27 function step2(sourceFrame) | 28 function step2(sourceFrame) |
| 28 { | 29 { |
| 29 InspectorTest.addResult("Script source was shown."); | 30 InspectorTest.addResult("Script source was shown."); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 49 | 50 |
| 50 </script> | 51 </script> |
| 51 </head> | 52 </head> |
| 52 | 53 |
| 53 <body onload="runTest()"> | 54 <body onload="runTest()"> |
| 54 <p> | 55 <p> |
| 55 Tests that debugger StepInto will step into inlined scripts created by document.
write(). | 56 Tests that debugger StepInto will step into inlined scripts created by document.
write(). |
| 56 </p> | 57 </p> |
| 57 </body> | 58 </body> |
| 58 </html> | 59 </html> |
| OLD | NEW |