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

Side by Side Diff: LayoutTests/http/tests/cache/content-type-ignored-during-revalidation.html

Issue 24380002: Merge 157358 "Revalidation header blacklisting should be case-insensitive." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1599/
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/cache/content-type-ignored-during-revalidation-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="stylesheet" href="resources/stylesheet304-bad-content-type.php"> 4 <link rel="stylesheet" href="resources/stylesheet304-bad-content-type.php">
5 </head> 5 </head>
6 <body> 6 <body>
7 <div id="test">This div should have a green background.</div> 7 <div id="test">This div should have a green background.</div>
8 8
9 <script src="/js-test-resources/js-test-pre.js"></script> 9 <script src="/js-test-resources/js-test-pre.js"></script>
10 <script> 10 <script>
11 window.jsTestIsAsync = true; 11 window.jsTestIsAsync = true;
12 12
13 description("Certain headers (such as 'content-type') ought to be ignore d when resources like stylesheets are revalidated via a 304 response."); 13 description("Certain headers (such as 'content-type') ought to be ignore d when resources like stylesheets are revalidated via a 304 response.");
14 14
15 window.onload = function () { 15 window.onload = function () {
16 if (window.sessionStorage.reloaded) { 16 if (window.sessionStorage.reloaded) {
17 window.sessionStorage.removeItem("reloaded"); 17 window.sessionStorage.removeItem("reloaded");
18 shouldBeEqualToString("window.getComputedStyle(document.getEleme ntById('test')).backgroundColor", "rgb(0, 255, 0)"); 18 shouldBeEqualToString("window.getComputedStyle(document.getEleme ntById('test')).backgroundColor", "rgb(0, 255, 0)");
19 finishJSTest(); 19 finishJSTest();
20 } else { 20 } else {
21 window.sessionStorage.reloaded = 1; 21 window.sessionStorage.reloaded = 1;
22 window.location.reload(); 22 window.location.reload();
23 } 23 }
24 }; 24 };
25 </script> 25 </script>
26 <script src="/js-test-resources/js-test-post.js"></script> 26 <script src="/js-test-resources/js-test-post.js"></script>
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/cache/content-type-ignored-during-revalidation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698