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

Side by Side Diff: LayoutTests/http/tests/loading/basic-credentials-sent-automatically.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 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.dumpChildFramesAsText();
7 testRunner.setHandlesAuthenticationChallenges(true);
8 testRunner.setAuthenticationUsername("first");
9 testRunner.setAuthenticationPassword("first-pw");
10 testRunner.waitUntilDone();
11 }
12
13 function firstFrameLoaded()
14 {
15 if (window.testRunner) {
16 testRunner.setAuthenticationUsername("second");
17 testRunner.setAuthenticationPassword("second-pw");
18 }
19 var frame = document.createElement("iframe");
20 frame.setAttribute("src", "http://127.0.0.1:8000/loading/resources/protected -resource.php");
21 frame.setAttribute("onload", "secondFrameLoaded()");
22 document.body.appendChild(frame);
23 }
24
25 function secondFrameLoaded()
26 {
27 if (window.testRunner) {
28 testRunner.setAuthenticationUsername("third");
29 testRunner.setAuthenticationPassword("third-pw");
30 }
31 var frame = document.createElement("iframe");
32 frame.setAttribute("src", "http://127.0.0.1:8000/loading/resources/protected -resource.php");
33 frame.setAttribute("onload", "thirdFrameLoaded()");
34 document.body.appendChild(frame);
35 }
36
37 function thirdFrameLoaded()
38 {
39 if (window.testRunner) {
40 testRunner.setAuthenticationUsername("fourth");
41 testRunner.setAuthenticationPassword("fourth-pw");
42 }
43 var frame = document.createElement("iframe");
44 frame.setAttribute("src", "http://127.0.0.1:8000/loading/resources/othersubr esources/protected-resource.php");
45 frame.setAttribute("onload", "fourthFrameLoaded()");
46 document.body.appendChild(frame);
47 }
48
49 function fourthFrameLoaded()
50 {
51 if (window.testRunner)
52 testRunner.notifyDone();
53 }
54
55 </script>
56 </head>
57 <body>
58 This test makes sure that once an HTTP Basic Auth. protected path is authenticat ed once, urls that emanate from that path automatically have their credentials s ent without a challenge.<br>
59 The first frame's path is /loading/resources/subresources/protected-resource.php , and we should get a challenge for it.<br>
60 It will be authorized with first/first-pw.<br>
61 The second frame's path is /loading/resources/protected-resource.php, and we sho uld get a challenge for it, because it does not share a common subpath of the pr eviously authorized resource.<br>
62 It will be authorized with second/second-pw.<br>
63 The third frame's path is also /loading/resources/protected-resource.php, and we should *not* get a challenge for it because we authorized to this path for the second frame.<br>
64 It will be authorized with second/second-pw.<br>
65 The fourth frame's path is /loading/resources/othersubresources/protected-resour ce.php, and we should *not* get a challenge for it, because it has a common subp ath with the previously authorized second and third frames.<br>
66 It will be authorized with second/second-pw.<br>
67 <iframe src="resources/subresources/protected-resource.php" onload="firstFrameLo aded();"></iframe>
68 </body>
69 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698