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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/cross-origin-no-authorization-expected.txt

Issue 14200030: Remove XMLHttpRequestException in favor of DOMException (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix tests after rebasing... 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-no-authorization-expected.txt
diff --git a/LayoutTests/http/tests/xmlhttprequest/cross-origin-no-authorization-expected.txt b/LayoutTests/http/tests/xmlhttprequest/cross-origin-no-authorization-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..b4a463ca5d0666bebed407bc7dfac86ae2e2767b
--- /dev/null
+++ b/LayoutTests/http/tests/xmlhttprequest/cross-origin-no-authorization-expected.txt
@@ -0,0 +1,27 @@
+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/cross-origin-no-authorization.php. Credentials flag is true, but Access-Control-Allow-Credentials is not "true".
+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/cross-origin-no-authorization.php. Credentials flag is true, but Access-Control-Allow-Credentials is not "true".
+Start
+Trying different ways to access a password protected resource from another origin. The UA already has login and password for this protection space.
+
+You should see several PASS messages followed by a DONE
+
+SCRIPT SRC='...' Should succeed, since authorization is sent for cross-origin subresource loads.
+PASS: Loaded, user test
+Cross-origin XMLHttpRequest (sync), authorization will not be sent, because withCredentials is false.
+PASS: 401 Authorization required
+Cross-origin XMLHttpRequest (sync), testing authorization that's not allowed by the server (withCredentials is true, but access control headers are not set).
+PASS: Got an exception. Error: NetworkError: DOM Exception 19
+Cross-origin XMLHttpRequest (sync), testing cookies.
+PASS
+Cross-origin XMLHttpRequest (async), authorization will not be sent, because withCredentials is false.
+PASS: 401 Authorization required
+Cross-origin XMLHttpRequest (async), testing authorization that's not allowed by the server (withCredentials is true, but access control headers are not set).
+PASS: Received error event.
+Cross-origin XMLHttpRequest (async), testing cookies.
+PASS
+Cross-origin XMLHttpRequest (sync), testing authorization with explicitly provided credentials that should be ignored.
+PASS: 401 Authorization required
+Cross-origin XMLHttpRequest (async), testing authorization with explicitly provided credentials that should be ignored.
+PASS: 401 Authorization required
+DONE
+

Powered by Google App Engine
This is Rietveld 408576698