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

Unified Diff: LayoutTests/http/tests/loading/promote-img-in-viewport-priority.html

Issue 109153003: Raise the loading priority of in-viewport images. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changes from review. Created 7 years 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/loading/promote-img-in-viewport-priority-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/loading/promote-img-in-viewport-priority.html
diff --git a/LayoutTests/http/tests/loading/promote-img-in-viewport-priority.html b/LayoutTests/http/tests/loading/promote-img-in-viewport-priority.html
new file mode 100644
index 0000000000000000000000000000000000000000..4084f327bf9abfceb2c9f49b9e07f436fb1b880f
--- /dev/null
+++ b/LayoutTests/http/tests/loading/promote-img-in-viewport-priority.html
@@ -0,0 +1,23 @@
+<html>
+ <head>
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpResourceRequestPriorities();
+ testRunner.dumpAsText();
+ }
+ </script>
+ <script src="/js-test-resources/js-test.js"></script>
+ </head>
+ <body>
+ <div style="width: 100%">
+ <img src="../misc/resources/image-slow.pl"/>
+ </div>
+ <div style="height: 99999px; width: 100%" id="view_div"></div>
+ <div style="width: 100%">
+ <img src="../misc/resources/image-slow-out-of-viewport.pl">
+ </div>
+ <script>
+ document.body.offsetTop; // Force a layout.
+ </script>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/loading/promote-img-in-viewport-priority-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698