| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <body> | |
| 3 <embed name="plg" type="application/x-webkit-test-netscape"></embed> | |
| 4 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=7656">bug 7656<a/>: | |
| 5 Query string always appended to Flash URLs, instead of being replaced</p> | |
| 6 <script> | |
| 7 if (window.testRunner) { | |
| 8 testRunner.dumpAsText(); | |
| 9 testRunner.waitUntilDone(); | |
| 10 } | |
| 11 | |
| 12 try { | |
| 13 | |
| 14 loc = window.location.href; | |
| 15 | |
| 16 if (loc.indexOf('?') == -1) { | |
| 17 window.location.href = loc + "?1"; | |
| 18 } else { | |
| 19 | |
| 20 if (loc.substring(loc.indexOf('?'), loc.length) == "?1") { | |
| 21 plg.getURL("?2", "_self"); | |
| 22 } else { | |
| 23 query = loc.substring(loc.indexOf('?'), loc.length); | |
| 24 document.write(query == "?2" ? | |
| 25 "SUCCESS" : "FAILURE: " + query); | |
| 26 | |
| 27 if (window.testRunner) | |
| 28 testRunner.notifyDone(); | |
| 29 } | |
| 30 } | |
| 31 } catch (ex) { | |
| 32 alert("Exception: " + ex.description); | |
| 33 } | |
| 34 </script> | |
| 35 </body> | |
| 36 </html> | |
| OLD | NEW |