OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
jochen (gone - plz use gerrit)
2015/10/20 09:48:04
please add <!DOCTYPE html>
| |
2 <head></head> | |
3 <script> | |
4 | |
5 function sendValueToTest(value) { | |
6 window.domAutomationController.setAutomationId(0); | |
7 window.domAutomationController.send(value); | |
8 } | |
9 | |
10 var resourcesNumber = -1; | |
11 window.onload = function () { | |
12 resourcesNumber = window.performance.getEntriesByType("resource").length; | |
13 }; | |
14 | |
15 function getResourceNumber() { | |
16 setInterval(function() { | |
17 if (resourcesNumber != -1) { | |
18 sendValueToTest(resourcesNumber); | |
19 } | |
20 }, 300); | |
21 } | |
22 </script> | |
23 | |
24 <picture> | |
25 <source media="(min-width: 980px)" srcset="200.png"> | |
26 <img src="400.png"> | |
27 </picture> | |
28 | |
29 </html> | |
OLD | NEW |