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

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

Issue 23591029: Revalidation header blacklisting should be case-insensitive. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: No copies. 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/cache/content-type-ignored-during-revalidation.html
diff --git a/LayoutTests/http/tests/cache/content-type-ignored-during-revalidation.html b/LayoutTests/http/tests/cache/content-type-ignored-during-revalidation.html
new file mode 100644
index 0000000000000000000000000000000000000000..41a0ee74564191d858dc5054076a231dcc865383
--- /dev/null
+++ b/LayoutTests/http/tests/cache/content-type-ignored-during-revalidation.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <link rel="stylesheet" href="resources/stylesheet304-bad-content-type.php">
+</head>
+<body>
+ <div id="test">This div should have a green background.</div>
+
+ <script src="/js-test-resources/js-test-pre.js"></script>
+ <script>
+ window.jsTestIsAsync = true;
+
+ description("Certain headers (such as 'content-type') ought to be ignored when resources like stylesheets are revalidated via a 304 response.");
+
+ window.onload = function () {
+ if (window.sessionStorage.reloaded) {
+ window.sessionStorage.removeItem("reloaded");
+ shouldBeEqualToString("window.getComputedStyle(document.getElementById('test')).backgroundColor", "rgb(0, 255, 0)");
+ finishJSTest();
+ } else {
+ window.sessionStorage.reloaded = 1;
+ window.location.reload();
+ }
+ };
+ </script>
+ <script src="/js-test-resources/js-test-post.js"></script>
+</body>
+</html>
« 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