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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState.html

Issue 486703002: Revert of XMLHttpRequest::overrideMimeType should throw InvalidStateError (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState.html b/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState.html
deleted file mode 100644
index f2023ed81e1fd4cdb5a3b5df4981add1ae2cad13..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<script src="/js-test-resources/js-test.js"></script>
-<script>
-jsTestIsAsync = true;
-
-function testOverrideMimeType(xhr) {
- debug("Testing overrideMimeType when readyState is " + xhr.readyState);
-
- var isAllowed = xhr.readyState < XMLHttpRequest.LOADING;
- if (isAllowed) {
- shouldNotThrow("xhr.overrideMimeType('text/plain')");
- } else {
- shouldThrow("xhr.overrideMimeType('text/plain')");
- }
-}
-
-var xhr = new XMLHttpRequest();
-xhr.onreadystatechange = function() {
- testOverrideMimeType(xhr);
-
- if (xhr.readyState == XMLHttpRequest.DONE)
- finishJSTest();
-}
-
-testOverrideMimeType(xhr);
-xhr.open("GET", "resources/get.txt", true);
-testOverrideMimeType(xhr);
-xhr.send(null);
-testOverrideMimeType(xhr);
-</script>
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698