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
)
18 eventSender
.keyDown(value
, []);
23 if (window
.testRunner
)
24 testRunner
.dumpAsText();
26 logDiv
= document
.getElementById('log');
27 var input
= document
.getElementsByTagName('input')[0];
29 input
.addEventListener('input', function()
34 log('Input event should fire once per actual input', count
== 1);
39 <body onload=
"runTest()">