4 -webkit-user-select: none;
10 <script src=
"../../resources/js-test.js"></script>
12 <p id=
"description"></p>
15 <li>Click text input/textarea
</li>
18 <input class=
"sample" placeholder=
"edit me!" value=
""><br>
19 <textarea class=
"sample" placeholder=
"edit me!" ></textarea>
22 description('Tests user-select:none doesn\'t affect editing');
23 function $(id
) { return document
.getElementById(id
); }
26 var expectedText
= 'wxy';
27 var samples
= document
.querySelectorAll('.sample');
28 for (var i
= 0; i
< samples
.length
; ++i
) {
31 if (window
.eventSender
) {
32 for (var j
= 0; j
< expectedText
.length
; ++j
)
33 eventSender
.keyDown(expectedText
[j
]);
34 shouldBeEqualToString('sample.value', expectedText
);
38 if (window
.testRunner
)
39 $('container').outerHTML
= '';