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

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

Issue 1411103011: Call setUseMobileViewportStyle before setViewportEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2526
Patch Set: Created 5 years, 1 month 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head></head>
4 <script>
5
6 function sendValueToTest(value) {
7 window.domAutomationController.setAutomationId(0);
8 window.domAutomationController.send(value);
9 }
10
11 var resourcesNumber = -1;
12 window.onload = function () {
13 resourcesNumber = window.performance.getEntriesByType("resource").length;
14 };
15
16 function getResourceNumber() {
17 setInterval(function() {
18 if (resourcesNumber != -1) {
19 sendValueToTest(resourcesNumber);
20 }
21 }, 300);
22 }
23 </script>
24
25 <picture>
26 <source media="(min-width: 980px)" srcset="200.png">
27 <img src="400.png">
28 </picture>
29
30 </html>
OLDNEW
« no previous file with comments | « content/test/data/resource_loading/400.png ('k') | third_party/WebKit/Source/web/DevToolsEmulator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698