OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <script src="../resources/js-test.js"></script> | 2 <script src="../resources/js-test.js"></script> |
3 <style> | 3 <style> |
4 #scroller { | 4 #scroller { |
5 overflow: scroll; | 5 overflow: scroll; |
6 height: 300px; | 6 height: 300px; |
7 width: 300px; | 7 width: 300px; |
8 background-color: red; | 8 background-color: rgba(255,0,0,0.5); /* Force non-promotion due to backgroun
d opacity */; |
9 } | 9 } |
10 | 10 |
11 #scrolled { | 11 #scrolled { |
12 height: 1000px; | 12 height: 1000px; |
13 width: 250px; | 13 width: 250px; |
14 background-color: green; | 14 background-color: rgba(0,128,0,0.5); /* Force non-promotion due to backgroun
d opacity */; |
15 } | 15 } |
16 </style> | 16 </style> |
17 | 17 |
18 <script> | 18 <script> |
19 jsTestIsAsync = true; | 19 jsTestIsAsync = true; |
20 | 20 |
21 description('This test checks that changes to the compositor\'s settings are app
lied correctly.'); | 21 description('This test checks that changes to the compositor\'s settings are app
lied correctly.'); |
22 | 22 |
23 function isUsingCompositedScrolling(layer) { | 23 function isUsingCompositedScrolling(layer) { |
24 layer = layer || JSON.parse(window.internals.layerTreeAsText(document)); | 24 layer = layer || JSON.parse(window.internals.layerTreeAsText(document)); |
(...skipping 23 matching lines...) Expand all Loading... |
48 } else { | 48 } else { |
49 testFailed('Composited scrolling did not become enabled: ' + stateBefore
+ ", " + stateAfter); | 49 testFailed('Composited scrolling did not become enabled: ' + stateBefore
+ ", " + stateAfter); |
50 } | 50 } |
51 finishJSTest(); | 51 finishJSTest(); |
52 }; | 52 }; |
53 </script> | 53 </script> |
54 | 54 |
55 <div id="scroller"> | 55 <div id="scroller"> |
56 <div id="scrolled"></div> | 56 <div id="scrolled"></div> |
57 </div> | 57 </div> |
OLD | NEW |