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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/resource_loading/resource_loading_non_mobile.html
diff --git a/content/test/data/resource_loading/resource_loading_non_mobile.html b/content/test/data/resource_loading/resource_loading_non_mobile.html
new file mode 100644
index 0000000000000000000000000000000000000000..4f4992802aa03fc5a9833c1b670224f55ad73008
--- /dev/null
+++ b/content/test/data/resource_loading/resource_loading_non_mobile.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<head></head>
+<script>
+
+function sendValueToTest(value) {
+ window.domAutomationController.setAutomationId(0);
+ window.domAutomationController.send(value);
+}
+
+var resourcesNumber = -1;
+window.onload = function () {
+ resourcesNumber = window.performance.getEntriesByType("resource").length;
+};
+
+function getResourceNumber() {
+ setInterval(function() {
+ if (resourcesNumber != -1) {
+ sendValueToTest(resourcesNumber);
+ }
+ }, 300);
+}
+</script>
+
+<picture>
+ <source media="(min-width: 980px)" srcset="200.png">
+ <img src="400.png">
+</picture>
+
+</html>
« 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