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

Unified Diff: LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-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-sync-request-expected.txt
diff --git a/LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-sync-request-expected.txt b/LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-sync-request-expected.txt
index ca0abd25344f26acb395ea4bbd5c3420e1c89fa2..ef6aaf277f5c5518b5511b5b7713de64b0616fe0 100644
--- a/LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-sync-request-expected.txt
+++ b/LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-sync-request-expected.txt
@@ -1,12 +1,10 @@
-CONSOLE MESSAGE: XMLHttpRequest.responseType cannot be changed for synchronous HTTP(S) requests made from the window context.
-CONSOLE MESSAGE: XMLHttpRequest.responseType cannot be changed for synchronous HTTP(S) requests made from the window context.
This tests that the XMLHttpRequest responseType attribute is not modifiable for synchronous HTTP(S) requests.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS xhr.responseType = 'document'; threw exception InvalidAccessError: A parameter or an operation was not supported by the underlying object..
-PASS xhr.responseType = 'document'; threw exception InvalidAccessError: A parameter or an operation was not supported by the underlying object..
+PASS xhr.responseType = 'document'; threw exception InvalidAccessError: Failed to set the 'responseType' property on 'XMLHttpRequest': the response type can only be changed for asynchronous HTTP requests made from a document..
+PASS xhr.responseType = 'document'; threw exception InvalidAccessError: Failed to set the 'responseType' property on 'XMLHttpRequest': the response type can only be changed for asynchronous HTTP requests made from a document..
PASS window.location.protocol is "file:"
xhr.responseType = 'document';
PASS xhr.responseType is "document"

Powered by Google App Engine
This is Rietveld 408576698