1 Tests that we don't crash when killing an text input's or textarea's renderer and then calling select.
2 <textarea id=
"textarea1">textarea
</textarea>
3 <textarea id=
"textarea2">textarea
</textarea>
4 <textarea id=
"textarea3">textarea
</textarea>
5 <textarea id=
"textarea4">textarea
</textarea>
11 if (window
.testRunner
)
12 testRunner
.dumpAsText();
15 return document
.getElementById(id
);
18 function testSettingSelection(tagName
) {
19 var id
= tagName
+ '1';
20 $(id
).style
.display
= "none";
24 $(id
).style
.display
= "none";
25 $(id
).setSelectionRange(1, 2);
28 $(id
).style
.display
= "none";
29 $(id
).selectionStart
= 2;
32 $(id
).style
.display
= "none";
33 $(id
).selectionEnd
= 1;
36 testSettingSelection('textarea');
37 testSettingSelection('input');