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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/cross-origin-authorization-with-embedder.html

Issue 14195011: Removed WONTFIX tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698