blob: 51aabeb76e3eb97fe0fc44d2136dd954344717c6 [file] [log] [blame]
<!doctype HTML>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<input width=10 value="This is a long truncated text entry" style="font-size:40pt;"/>
<script>
if (window.internals)
window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
test(function() {
var json = JSON.parse(window.internals.layerTreeAsText(document));
// The <input> 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>