| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="resources/console-clear-arguments-test.js"></script> | 3 <script src="resources/console-clear-arguments-test.js"></script> |
| 4 <script> | 4 <script> |
| 5 | 5 |
| 6 if (window.testRunner) { | 6 if (window.testRunner) { |
| 7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
| 8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
| 9 } | 9 } |
| 10 | 10 |
| 11 var loadCount = 0; | 11 var loadCount = 0; |
| 12 function frameLoaded(event) { | 12 function frameLoaded(event) { |
| 13 ++loadCount; | 13 ++loadCount; |
| 14 if (loadCount === 1) { | 14 if (loadCount === 1) { |
| 15 document.getElementById('theFrame').src = "about:blank"; | 15 document.getElementById('theFrame').src = "about:blank"; |
| 16 return; | 16 return; |
| 17 } | 17 } |
| 18 | 18 |
| 19 dumpConsoleMessageArgumentCounts(); | 19 dumpConsoleMessageCounts(); |
| 20 if (window.testRunner) | 20 if (window.testRunner) |
| 21 testRunner.notifyDone(); | 21 testRunner.notifyDone(); |
| 22 } | 22 } |
| 23 | 23 |
| 24 </script> | 24 </script> |
| 25 | 25 |
| 26 </head> | 26 </head> |
| 27 <body> | 27 <body> |
| 28 <p> | 28 <p> |
| 29 Tests that Web Inspector will discard console message arguments when iframe wher
e the message was | 29 Tests that Web Inspector will discard console message arguments when iframe wher
e the message was |
| 30 logged is navigated to a different page. | 30 logged is navigated to a different page. |
| 31 </p> | 31 </p> |
| 32 <iframe id="theFrame" onload="frameLoaded(event)" src="resources/console-clear-a
rguments-iframe.html"></iframe> | 32 <iframe id="theFrame" onload="frameLoaded(event)" src="resources/console-clear-a
rguments-iframe.html"></iframe> |
| 33 <div id="output"></div> | 33 <div id="output"></div> |
| 34 </body> | 34 </body> |
| 35 </html> | 35 </html> |
| 36 | 36 |
| OLD | NEW |