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

Unified Diff: LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-before-open-sync-request-expected.txt

Issue 23041002: Improve 'XMLHttpRequest' exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ExceptionMessages. Created 7 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
Index: LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-before-open-sync-request-expected.txt
diff --git a/LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-before-open-sync-request-expected.txt b/LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-before-open-sync-request-expected.txt
index b78c9e12f88114e2f1bde04daba085244dcfd752..ff7e9c732ccc0f8109af3a15b7d2628e6280c584 100644
--- a/LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-before-open-sync-request-expected.txt
+++ b/LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-before-open-sync-request-expected.txt
@@ -1,14 +1,12 @@
-CONSOLE MESSAGE: Synchronous HTTP(S) requests made from the window context cannot have XMLHttpRequest.responseType set.
-CONSOLE MESSAGE: Synchronous HTTP(S) requests made from the window context cannot have XMLHttpRequest.responseType set.
This tests that XMLHttpRequest open() disallows synchronous HTTP(S) requests when a non-default responseType is set.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
xhr.responseType = 'document';
-PASS xhr.open('GET', 'http://mydomain/', false); threw exception InvalidAccessError: A parameter or an operation was not supported by the underlying object..
+PASS xhr.open('GET', 'http://mydomain/', false); threw exception InvalidAccessError: Failed to execute 'open' on 'XMLHttpRequest': synchronous HTTP requests from a document must not set a response type..
xhr.responseType = 'document';
-PASS xhr.open('GET', 'https://mysecuredomain/', false); threw exception InvalidAccessError: A parameter or an operation was not supported by the underlying object..
+PASS xhr.open('GET', 'https://mysecuredomain/', false); threw exception InvalidAccessError: Failed to execute 'open' on 'XMLHttpRequest': synchronous HTTP requests from a document must not set a response type..
PASS window.location.protocol is "file:"
xhr.responseType = 'document';
xhr.open('GET', window.location.href, false);

Powered by Google App Engine
This is Rietveld 408576698