OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 iframe { | 5 iframe { |
6 height: 150px; | 6 height: 150px; |
7 width: 150px; | 7 width: 150px; |
8 } | 8 } |
9 </style> | 9 </style> |
10 <script> | 10 <script> |
11 if (window.internals) { | 11 if (window.internals) { |
12 internals.settings.setCompositedScrollingForFramesEnabled(true); | 12 internals.settings.setPreferCompositingToLCDTextEnabled(true); |
13 } | 13 } |
14 function doTest() | 14 function doTest() |
15 { | 15 { |
16 if (window.testRunner) { | 16 if (window.testRunner) { |
17 testRunner.dumpAsText(); | 17 testRunner.dumpAsText(); |
18 if (window.internals) | 18 if (window.internals) |
19 document.getElementById("result").innerText = window.internals.nonFast
ScrollableRects(document).length ? "FAIL" : "PASS"; | 19 document.getElementById("result").innerText = window.internals.nonFast
ScrollableRects(document).length ? "FAIL" : "PASS"; |
20 } | 20 } |
21 } | 21 } |
22 window.addEventListener("load", doTest, false); | 22 window.addEventListener("load", doTest, false); |
23 </script> | 23 </script> |
24 </head> | 24 </head> |
25 <body> | 25 <body> |
26 <iframe id="scrollable-iframe" src="resources/subframe.html" style="width: 100
px; height: 100px"></iframe> | 26 <iframe id="scrollable-iframe" src="resources/subframe.html" style="width: 100
px; height: 100px"></iframe> |
27 <iframe id="non-scrollable-iframe" src="resources/subframe.html" style="width:
2000px; height: 2000px"></iframe> | 27 <iframe id="non-scrollable-iframe" src="resources/subframe.html" style="width:
2000px; height: 2000px"></iframe> |
28 <pre id="result"></pre> | 28 <pre id="result"></pre> |
29 </body> | 29 </body> |
30 </html> | 30 </html> |
OLD | NEW |