blob: 66dd37474994fa0356a387a4e6fa760aa5f482c0 [file] [log] [blame]
<!doctype HTML>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<select size="2">
<option> value 1</option>
<option> value 2</option>
<option> value 3</option>
<option> value 4</option>
</select>
<script>
if (window.internals)
window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
test(function() {
var json = JSON.parse(window.internals.layerTreeAsText(document));
// The <select> element's scroller should be painted into the root layer.
if (internals.runtimeFlags.rootLayerScrollingEnabled) {
assert_equals(json["layers"].length, 3);
} else {
assert_equals(json["layers"].length, 1);
}
}, "test");
</script>