| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script> | |
| 4 if (window.testRunner) { | |
| 5 testRunner.dumpAsText(); | |
| 6 testRunner.waitUntilDone(); | |
| 7 } | |
| 8 document.addEventListener("beforeload", function(event) { | |
| 9 var console = document.getElementById("console"); | |
| 10 | |
| 11 if (event.url == "scheme://url-with-leading-and-trailing-space/"
) | |
| 12 console.innerHTML = "PASS"; | |
| 13 else | |
| 14 console.innerHTML = "FAIL"; | |
| 15 | |
| 16 event.preventDefault(); | |
| 17 | |
| 18 if (window.testRunner) | |
| 19 testRunner.notifyDone(); | |
| 20 }, true); | |
| 21 </script> | |
| 22 </head> | |
| 23 <body> | |
| 24 <object width="0" height="0" type="application/x-webkit-test-netscape"> | |
| 25 <param name="movie" value=" scheme://url-with-leading-and-trailing-
space/ "> | |
| 26 </object> | |
| 27 <p>This test verifies that a URL specified in a <param> of an <
object> is parsed the same as if it was specified as the data attribute of th
e <object>. Specifically, this verifies that leading/trailing whitespace a
re stripped.</p> | |
| 28 <div id="console"></div> | |
| 29 </body> | |
| 30 </html> | |
| OLD | NEW |