| Index: LayoutTests/http/tests/xmlhttprequest/cross-origin-authorization-with-embedder.html
|
| diff --git a/LayoutTests/http/tests/xmlhttprequest/cross-origin-authorization-with-embedder.html b/LayoutTests/http/tests/xmlhttprequest/cross-origin-authorization-with-embedder.html
|
| deleted file mode 100644
|
| index 682346f76e8538d6e1b7035a4226f6d514534212..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/http/tests/xmlhttprequest/cross-origin-authorization-with-embedder.html
|
| +++ /dev/null
|
| @@ -1,42 +0,0 @@
|
| -<button onclick="presetAuthorization()">Start</button>
|
| -<pre id="console"></pre>
|
| -<script>
|
| -if (window.testRunner) {
|
| - testRunner.dumpAsText();
|
| - testRunner.waitUntilDone();
|
| - testRunner.setCanOpenWindows();
|
| -}
|
| -
|
| -function log(message)
|
| -{
|
| - document.getElementById('console').appendChild(document.createTextNode(message + '\n'));
|
| -}
|
| -
|
| -function presetAuthorization()
|
| -{
|
| - if (window.testRunner)
|
| - testRunner.authenticateSession("http://localhost:8000/xmlhttprequest/resources/cross-origin-authorization.php", "test", "test");
|
| -
|
| - test();
|
| -}
|
| -
|
| -function test()
|
| -{
|
| - var req = new XMLHttpRequest;
|
| - req.open("GET", "http://localhost:8000/xmlhttprequest/resources/cross-origin-authorization.php", false);
|
| - try {
|
| - req.send();
|
| - log((req.status == 401) ? "PASS" : "FAIL: credentials were sent");
|
| - } catch (ex) {
|
| - // This is not a correct outcome, but it's fine for the purposes of this test.
|
| - log("PASS");
|
| - }
|
| - log("DONE");
|
| - if (window.testRunner)
|
| - testRunner.notifyDone();
|
| -}
|
| -
|
| -
|
| -if (window.testRunner)
|
| - presetAuthorization();
|
| -</script>
|
|
|