| <embed name="plg" type="application/x-webkit-test-netscape"></embed> |
| <p>Test for <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=7656">bug 7656<a/>: |
| Query string always appended to Flash URLs, instead of being replaced</p> |
| if (window.layoutTestController) { |
| layoutTestController.dumpAsText(); |
| layoutTestController.waitUntilDone(); |
| loc = window.location.href; |
| if (loc.indexOf('?') == -1) { |
| window.location.href = loc + "?1"; |
| if (loc.substring(loc.indexOf('?'), loc.length) == "?1") { |
| plg.getURL("?2", "_self"); |
| query = loc.substring(loc.indexOf('?'), loc.length); |
| document.write(query == "?2" ? |
| "SUCCESS" : "FAILURE: " + query); |
| if (window.layoutTestController) |
| layoutTestController.notifyDone(); |
| alert("Exception: " + ex.description); |