OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <style> |
3 <head> | 3 iframe { |
4 position: absolute; | |
5 left: 200px; | |
6 top: 200px; | |
7 height: 120px; | |
8 width: 120px; | |
9 padding: 10px; | |
10 border: none; | |
11 transform:scale(2); | |
Rick Byers
2015/01/26 22:28:32
nit: missing space
majidvp
2015/01/26 22:42:50
Done.
| |
12 } | |
13 </style> | |
14 | |
15 <iframe src="data:text/html;charset=utf-8,<html><body style='width:1000px; heigh t:1000px;'><p style='font-size: 6px'>Should be covered by a green overlay.</p></ body></html>"></iframe> | |
16 <div id="console"></div> | |
17 | |
18 <script src="../resources/js-test.js"></script> | |
4 <script src="resources/non-fast-scrollable-region-testing.js"></script> | 19 <script src="resources/non-fast-scrollable-region-testing.js"></script> |
5 </head> | 20 <script> |
6 <body onload="runNonFastScrollableRegionTest();"> | 21 window.jsTestIsAsync = true; |
7 <iframe src="data:text/html;charset=utf-8,<html><body style='width:1000px;height :1000px;'></body></html>" style="position:absolute;left:200px;top:150px;width;15 0px;height:200px;transform:scale(2);padding:10px;"></iframe> | 22 description('This test ensures non-fast scrollable areas are calculated ' + |
8 </body> | 23 'correctly when page is scaled.'); |
Rick Byers
2015/01/26 22:28:32
this description is stale - this is about a scaled
majidvp
2015/01/26 22:42:50
Done.
| |
9 </html> | |
10 | 24 |
25 onload = function() { | |
26 awaitCompsitingUpdate(function(){ | |
27 nonFastScrollableRects = window.internals.nonFastScrollableRects(document) ; | |
28 shouldBe('nonFastScrollableRects.length', '1'); | |
29 shouldBeEqualToString('rectToString(nonFastScrollableRects[0])', '[150, 15 0, 240, 240]'); | |
30 | |
31 drawNonFastScrollableRegionOverlays(); | |
32 | |
33 finishJSTest(); | |
34 }); | |
35 }; | |
36 </script> | |
OLD | NEW |