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> |