Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / select-event-on-input-recursive.html
blobdcb15672305b7fa8d31bea327be4f335a0cc95d3
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <input id="input" value="abcd" />
8 <script>
9 window.jsTestIsAsync = true;
11 var eventCalledCount = 0;
12 input.addEventListener("select", function () {
13 eventCalledCount++;
14 input.selectionStart = 1;
15 input.selectionEnd = 3;
16 });
18 var animationFrameCount = 0;
19 var animation = function () {
20 animationFrameCount++;
21 shouldBeTrue("animationFrameCount == eventCalledCount");
22 if (animationFrameCount == 10)
23 window.finishJSTest();
24 else
25 window.requestAnimationFrame(animation);
27 window.requestAnimationFrame(animation);
29 input.select();
30 </script>
31 </body>
32 </html>