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

Unified Diff: LayoutTests/http/tests/cache/image-with-dpr-header-cached.html

Issue 46313002: Support the DPR header for client hints. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: with cache tests Created 7 years, 2 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/image-with-dpr-header-cached-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/cache/image-with-dpr-header-cached.html
diff --git a/LayoutTests/http/tests/cache/image-with-dpr-header-cached.html b/LayoutTests/http/tests/cache/image-with-dpr-header-cached.html
new file mode 100644
index 0000000000000000000000000000000000000000..c1bb5963572243ad77f894e6f91fdd93df00bd02
--- /dev/null
+++ b/LayoutTests/http/tests/cache/image-with-dpr-header-cached.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<body>
+<script>
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+}
+window.onload = function() {
+ if (window.sessionStorage.getItem("reloaded")) {
+ window.sessionStorage.removeItem("reloaded");
+ if (window.testRunner) {
+ window.testRunner.notifyDone();
+ }
+ } else {
+ window.sessionStorage.reloaded = "true";
+ location.reload();
+ }
+}
+</script>
+<!-- Reuse from cache - should keep the DPR -->
+<img src="http://127.0.0.1:8000/resources/dpr.php?name=square100.png&mimeType=image/png&dpr=4.0">
+<!-- Revalidation - should keep previous DPR -->
+<img src="http://127.0.0.1:8000/resources/dpr.php?name=square100.png&mimeType=image/png&dpr=4.0&expires=1">
+
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/cache/image-with-dpr-header-cached-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698