Chromium Code Reviews| 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..aff3de2b6b21a56c8a7553a8d8d6fc071f38c157 |
| --- /dev/null |
| +++ b/content/test/data/resource_loading/resource_loading_non_mobile.html |
| @@ -0,0 +1,29 @@ |
| +<html> |
|
jochen (gone - plz use gerrit)
2015/10/20 09:48:04
please add <!DOCTYPE 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> |