blob: 04fe6b2d7ad09054f8eb4b47fef349b63d20f845 [file] [log] [blame]
apecc98db2006-03-09 05:49:42 +00001<html>
2<body>
3<embed name="plg" type="application/x-webkit-test-netscape"></embed>
eric@webkit.orgb5c79932009-09-29 19:15:13 +00004<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=7656">bug 7656<a/>:
apecc98db2006-03-09 05:49:42 +00005Query string always appended to Flash URLs, instead of being replaced</p>
6<script>
rniwa@webkit.org5cf7fa82012-06-15 07:38:37 +00007 if (window.testRunner) {
8 testRunner.dumpAsText();
9 testRunner.waitUntilDone();
apecc98db2006-03-09 05:49:42 +000010 }
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
rniwa@webkit.org5cf7fa82012-06-15 07:38:37 +000027 if (window.testRunner)
28 testRunner.notifyDone();
apecc98db2006-03-09 05:49:42 +000029 }
30 }
31 } catch (ex) {
32 alert("Exception: " + ex.description);
33 }
34</script>
35</body>
36</html>