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

Side by Side Diff: content/test/data/fullscreen_frame.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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 5
6 var expectedWidth, expectedHeight; 6 var expectedWidth, expectedHeight;
7 7
8 function onResize() { 8 function onResize() {
9 if (window.innerWidth == expectedWidth && window.innerHeight == expectedHeight ) { 9 if (window.innerWidth == expectedWidth && window.innerHeight == expectedHeight ) {
10 domAutomationController.setAutomationId(0);
11 domAutomationController.send("resize"); 10 domAutomationController.send("resize");
12 removeResizeListener(); 11 removeResizeListener();
13 } 12 }
14 } 13 }
15 14
16 function addResizeListener(width, height) { 15 function addResizeListener(width, height) {
17 expectedWidth = width; 16 expectedWidth = width;
18 expectedHeight = height; 17 expectedHeight = height;
19 window.addEventListener('resize', onResize); 18 window.addEventListener('resize', onResize);
20 } 19 }
(...skipping 18 matching lines...) Expand all
39 38
40 <div id="fullscreen-div" style="border: 1px solid black;"> 39 <div id="fullscreen-div" style="border: 1px solid black;">
41 This div will go fullscreen 40 This div will go fullscreen
42 </div> 41 </div>
43 42
44 <iframe id="child-0" srcdoc="This should not go fullscreen"></iframe> 43 <iframe id="child-0" srcdoc="This should not go fullscreen"></iframe>
45 44
46 </body> 45 </body>
47 </html> 46 </html>
48 47
OLDNEW
« no previous file with comments | « content/test/data/cross_site_document_request.html ('k') | content/test/data/gpu/concave_paths.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698