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

Side by Side Diff: content/test/data/resource_loading/resource_loading_non_mobile.html

Issue 1420073002: Make sure StyleResolver sets viewport before initializing HTMLPreloadScanner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avoid XHR as well Created 5 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head></head> 3 <head></head>
4 <script> 4 <script>
5 5
6 function sendValueToTest(value) { 6 function sendValueToTest(value) {
7 window.domAutomationController.setAutomationId(0); 7 window.domAutomationController.setAutomationId(0);
8 window.domAutomationController.send(value); 8 window.domAutomationController.send(value);
9 } 9 }
10 10
11 var resourcesNumber = -1; 11 var resourcesNumber = -1;
12 window.onload = function () { 12 window.onload = function () {
13 resourcesNumber = window.performance.getEntriesByType("resource").length; 13 resourcesNumber = window.performance.getEntriesByType("resource").length;
14 }; 14 };
15 15
16 function getResourceNumber() { 16 function getResourceNumber() {
17 setInterval(function() { 17 setInterval(function() {
18 if (resourcesNumber != -1) { 18 if (resourcesNumber != -1) {
19 sendValueToTest(resourcesNumber); 19 sendValueToTest(resourcesNumber);
20 } 20 }
21 }, 300); 21 }, 300);
22 } 22 }
23 </script> 23 </script>
24 24
25 <picture> 25 <picture>
26 <source media="(min-width: 980px)" srcset="200.png"> 26 <source media="(min-width: 980px)" srcset="200.png">
27 <img src="400.png"> 27 <img src="400.png">
28 </picture> 28 </picture>
29 29
30 <img srcset = "635.png 635w, 1270.png 1270w"
31 sizes = "(max-width: 600px) calc(100vw - 32px),
32 (max-width: 1000px) calc(66.67vw - 32px),
33 635px">
30 </html> 34 </html>
OLDNEW
« no previous file with comments | « content/test/data/resource_loading/635.png ('k') | third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698