Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / text-input-event.html
blob8f7c6b8dd9d22d6d92b463eb34b1272a9001208a
1 <html>
2 <head>
3 <script>
5 var logDiv;
7 function log(msg, success)
9 logDiv.appendChild(document.createElement('div')).textContent = msg + ': ' + (success ? 'PASS' : 'FAIL');
12 function typeInto(element, value)
14 if (!window.eventSender)
15 return;
17 element.focus();
18 eventSender.keyDown(value, []);
21 function runTest()
23 if (window.testRunner)
24 testRunner.dumpAsText();
26 logDiv = document.getElementById('log');
27 var input = document.getElementsByTagName('input')[0];
28 var count = 0;
29 input.addEventListener('input', function()
31 count++;
32 }, false);
33 typeInto(input, 'x');
34 log('Input event should fire once per actual input', count == 1);
37 </script>
38 </head>
39 <body onload="runTest()">
40 <input>
41 <div id="log"></div>
42 </body>
43 </html>