| Index: pages/testcases/generic/index.html |
| diff --git a/pages/testcases/generic/index.html b/pages/testcases/generic/index.html |
| index 62761a24d2cb9a010f4f07a8f52eab3657775269..a7f487889e4205045a538d75c35ccca282045d01 100644 |
| --- a/pages/testcases/generic/index.html |
| +++ b/pages/testcases/generic/index.html |
| @@ -1,29 +1,10 @@ |
| title=ABP Test Pages |
| -template=blank |
| - |
| -<head> |
| - <style> |
| - html, body { margin: 0; height: 100%; } |
| - #iframe { display: block; width: 100%; height: 100%; border: none; } |
| - </style> |
| -</head> |
| - |
| -<iframe id="iframe"></iframe> |
| +template=frame |
| <script type="text/javascript"> |
| - var iframe = document.getElementById("iframe") |
| - function update_iframe_location() |
| + function transform_url(href, hash) |
| { |
| - var hash = window.location.hash; |
| - if (hash) |
| - { |
| - var url = window.location.href. |
| - substr(0, window.location.href.length - hash.length). |
| - replace("://testpages", "://www.testpages") + hash.substring(1); |
| - |
| - iframe.src = url; |
| - } |
| + return href.substr(0, href.length - hash.length). |
| + replace("://testpages", "://www.testpages") + hash.substring(1); |
| } |
| - window.addEventListener("hashchange", update_iframe_location); |
| - update_iframe_location(); |
| </script> |