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

Side by Side Diff: webkit/data/layout_tests/LayoutTests/http/tests/xmlhttprequest/authorization-header.html

Issue 66044: Merge layout tests from - https://bugs.webkit.org/show_bug.cgi?id=24957... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/172/src/
Patch Set: Created 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 <p>Test that Authorization header can be set via setRequestHeader.</p>
2 <script>
3 if (window.layoutTestController)
4 layoutTestController.dumpAsText();
5
6 try {
7 var req = new XMLHttpRequest;
8 req.open("GET", "resources/basic-auth/basic-auth.php?uid=Authorization-Heade r", false);
9 req.setRequestHeader("Authorization", "Basic QXV0aG9yaXphdGlvbi1IZWFkZXI6QXV 0aG9yaXphdGlvbi1IZWFkZXI=");
10 req.send(null);
11 document.write(req.responseText.match(/Authorization\-Header/) ? "PASS" : (" FAIL. Unexpected response: " + req.responseText));
12 } catch (ex) {
13 document.write("FAIL. Exception: " + ex);
14 }
15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698