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

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

Issue 2503453003: Remove all calls to domAutomationController.setAutomationId.
Patch Set: Fix nacl_browsertest_util.cc Created 3 years, 5 months 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
« no previous file with comments | « content/test/data/post_message.html ('k') | content/test/data/simple_database.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head></head> 3 <head></head>
4 <script> 4 <script>
5 5
6 function sendValueToTest(value) { 6 function sendValueToTest(value) {
7 window.domAutomationController.setAutomationId(0);
8 window.domAutomationController.send(value); 7 window.domAutomationController.send(value);
9 } 8 }
10 9
11 var resourcesNumber = -1; 10 var resourcesNumber = -1;
12 window.onload = function () { 11 window.onload = function () {
13 resourcesNumber = window.performance.getEntriesByType("resource").length; 12 resourcesNumber = window.performance.getEntriesByType("resource").length;
14 }; 13 };
15 14
16 function getResourceNumber() { 15 function getResourceNumber() {
17 setInterval(function() { 16 setInterval(function() {
18 if (resourcesNumber != -1) { 17 if (resourcesNumber != -1) {
19 sendValueToTest(resourcesNumber); 18 sendValueToTest(resourcesNumber);
20 } 19 }
21 }, 300); 20 }, 300);
22 } 21 }
23 </script> 22 </script>
24 23
25 <picture> 24 <picture>
26 <source media="(min-width: 980px)" srcset="200.png"> 25 <source media="(min-width: 980px)" srcset="200.png">
27 <img src="400.png"> 26 <img src="400.png">
28 </picture> 27 </picture>
29 28
30 <img srcset = "635.png 635w, 1270.png 1270w" 29 <img srcset = "635.png 635w, 1270.png 1270w"
31 sizes = "(max-width: 600px) calc(100vw - 32px), 30 sizes = "(max-width: 600px) calc(100vw - 32px),
32 (max-width: 1000px) calc(66.67vw - 32px), 31 (max-width: 1000px) calc(66.67vw - 32px),
33 635px"> 32 635px">
34 </html> 33 </html>
OLDNEW
« no previous file with comments | « content/test/data/post_message.html ('k') | content/test/data/simple_database.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698