Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(544)

Side by Side Diff: LayoutTests/plugins/geturl-replace-query.html

Issue 1319473007: Delete a bunch of NPAPI layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698