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

Side by Side Diff: LayoutTests/http/tests/loading/basic-auth-resend-wrong-credentials.html

Issue 14195011: Removed WONTFIX tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.dumpChildFramesAsText();
8 testRunner.setHandlesAuthenticationChallenges(true);
9 testRunner.setAuthenticationUsername("wrongusername");
10 testRunner.setAuthenticationPassword("wrongpassword");
11 testRunner.waitUntilDone();
12 }
13
14 function firstFrameLoaded() {
15 if (window.testRunner) {
16 testRunner.setAuthenticationUsername("correctusername");
17 testRunner.setAuthenticationPassword("correctpassword");
18 }
19 var frame = document.createElement("iframe");
20 frame.setAttribute("src", "http://127.0.0.1:8000/loading/resources/test2/bas ic-auth-testing.php?username=correctusername&password=correctpassword");
21 frame.setAttribute("onload", "secondFrameLoaded()");
22 document.body.appendChild(frame);
23 }
24
25 function secondFrameLoaded() {
26 if (window.testRunner)
27 testRunner.notifyDone();
28 }
29
30 </script>
31 </head>
32 <body>
33 This test makes sure that once WebCore preemptively sends out Basic credentials it thinks apply to a new resource, and that resource response with a 401 challen ge, that it doesn't try to send the same wrong credentials a second time.<br>
34 <iframe src="resources/test2/protected-resource.php" onload="firstFrameLoaded(); "></iframe>
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698