blob: cb7d37ff98698b6b60e1c1083df3c53ff307b021 [file] [log] [blame]
description('This test checks users can input pre-edit text longer than maxlength.');
var input = document.createElement('input');
document.body.appendChild(input);
input.maxLength = 2;
input.focus();
textInputController.setMarkedText('abcd', 0, 4);
// The selection should have 4 characters though maxLength is 2.
shouldBe('document.getSelection().toString()', '"abcd"');