4 <script src=
"../../resources/js-test.js"></script>
7 <input id=
"input" value=
"abcd" />
9 window
.jsTestIsAsync
= true;
11 var eventCalledCount
= 0;
12 input
.addEventListener("select", function () {
14 input
.selectionStart
= 1;
15 input
.selectionEnd
= 3;
18 var animationFrameCount
= 0;
19 var animation = function () {
20 animationFrameCount
++;
21 shouldBeTrue("animationFrameCount == eventCalledCount");
22 if (animationFrameCount
== 10)
23 window
.finishJSTest();
25 window
.requestAnimationFrame(animation
);
27 window
.requestAnimationFrame(animation
);