2 <script src=
"/js-test-resources/js-test.js"></script>
5 description("This test checks that all URLs in a redirect chain are passed to the PermissionClient.");
6 window
.jsTestIsAsync
= true;
9 testRunner
.dumpPermissionClientCallbacks();
11 var img
= new Image();
12 img
.src
= "http://127.0.0.1:8000/permissionclient/resources/redir.php?url=http://127.0.0.1:8000/permissionclient/resources/boston.gif";
13 img
.onerror = function() { testFailed('error event for image'); finishJSTest(); };
14 img
.onload = function() { finishJSTest(); };
15 document
.body
.appendChild(img
);