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

Side by Side Diff: LayoutTests/fast/events/scale-and-scroll-iframe-body.html

Issue 190723007: Fix tests to be compatible with Android scale initialization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reupload Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 ::-webkit-scrollbar { 4 ::-webkit-scrollbar {
5 width: 0px; 5 width: 0px;
6 height: 0px; 6 height: 0px;
7 } 7 }
8 </style> 8 </style>
9 <script> 9 <script>
10 window.enablePixelTesting = true; 10 window.enablePixelTesting = true;
(...skipping 17 matching lines...) Expand all
28 eventSender.setPageScaleFactor(scaleFactor, scaleOffset, scaleOf fset); 28 eventSender.setPageScaleFactor(scaleFactor, scaleOffset, scaleOf fset);
29 } 29 }
30 30
31 function test() { 31 function test() {
32 scaleWithEventSender(); 32 scaleWithEventSender();
33 scroll(); 33 scroll();
34 } 34 }
35 </script> 35 </script>
36 <script src="../../resources/js-test.js"></script> 36 <script src="../../resources/js-test.js"></script>
37 </head> 37 </head>
38 <body onload="test();" style="height: 2000px"> 38 <body onload="test();" style="width: 4000px; height: 4000px">
39 <iframe id="frame" style="width:400px; height: 400px; position: absolute; to p: 100px;"></iframe> 39 <iframe id="frame" style="width:400px; height: 400px; position: absolute; to p: 100px;"></iframe>
40 <div id="console"></div> 40 <div id="console"></div>
41 41
42 <script> 42 <script>
43 var frame = document.getElementById('frame'); 43 var frame = document.getElementById('frame');
44 var doc = frame.contentDocument.open(); 44 var doc = frame.contentDocument.open();
45 doc.write("<div style='left:0; top:0; width:100px; height:100px; positio n:absolute; background:yellow;'></div>"); 45 doc.write("<div style='left:0; top:0; width:100px; height:100px; positio n:absolute; background:yellow;'></div>");
46 doc.write("<div style='left:100px; top:0; width:100px; height:100px; pos ition:absolute; background:green;'></div>"); 46 doc.write("<div style='left:100px; top:0; width:100px; height:100px; pos ition:absolute; background:green;'></div>");
47 doc.write("<div style='left:200px; top:0; width:100px; height:100px; pos ition:absolute; background:blue;'></div>"); 47 doc.write("<div style='left:200px; top:0; width:100px; height:100px; pos ition:absolute; background:blue;'></div>");
48 doc.write("<div style='left:300px; top:0; width:100px; height:100px; pos ition:absolute; background:green;'></div>"); 48 doc.write("<div style='left:300px; top:0; width:100px; height:100px; pos ition:absolute; background:green;'></div>");
49 doc.write("<div style='left:400px; top:0; width:100px; height:100px; pos ition:absolute; background:blue;'></div>"); 49 doc.write("<div style='left:400px; top:0; width:100px; height:100px; pos ition:absolute; background:blue;'></div>");
50 50
51 doc.write("<div style='left:0; top:100px; width:100px; height:100px; pos ition:absolute; background: green;'></div>"); 51 doc.write("<div style='left:0; top:100px; width:100px; height:100px; pos ition:absolute; background: green;'></div>");
52 doc.write("<div style='left:100px; top:100px; width:100px; height:100px; position:absolute; background:blue;'></div>"); 52 doc.write("<div style='left:100px; top:100px; width:100px; height:100px; position:absolute; background:blue;'></div>");
53 doc.write("<div style='left:200px; top:100px; width:100px; height:100px; position:absolute; background:green;'></div>"); 53 doc.write("<div style='left:200px; top:100px; width:100px; height:100px; position:absolute; background:green;'></div>");
54 doc.write("<div style='left:300px; top:100px; width:100px; height:100px; position:absolute; background:blue;'></div>"); 54 doc.write("<div style='left:300px; top:100px; width:100px; height:100px; position:absolute; background:blue;'></div>");
55 doc.write("<div style='left:400px; top:100px; width:100px; height:100px; position:absolute; background:green;'></div>"); 55 doc.write("<div style='left:400px; top:100px; width:100px; height:100px; position:absolute; background:green;'></div>");
56 doc.close(); 56 doc.close();
57 frame.contentDocument.body.style.width = "2000px"; 57 frame.contentDocument.body.style.width = "2000px";
58 frame.contentDocument.body.style.height = "2000px"; 58 frame.contentDocument.body.style.height = "2000px";
59 </script> 59 </script>
60 </body> 60 </body>
61 </html> 61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698