Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / input-appearance-focus.html
blob71118fe298acfef08c6825bde6a906a5a4744716
1 <html>
2 <body onload="document.getElementById('sp').focus(); document.getElementById('sp').blur(); document.getElementById('sp2').focus();">
3 This test uses the new text field to test focus() and blur() and to make sure that onFocus and onBlur events fire correctly.
4 <p>
5 <input type="text" id="sp" value="My Text Field 1" style="-khtml-appearance: textfield;" onfocus="document.getElementById('result').innerHTML+='<br>Test Passed. Text field 1\'s onFocus event has fired.'" onblur="document.getElementById('result').innerHTML+='<br>Test Passed. Text field 1\'s onBlur event has fired.'"></input>
6 <input type="text" id="sp2" value="My Text Field 2" style="-khtml-appearance: textfield;" onfocus="document.getElementById('result').innerHTML+='<br>Test Passed. Text field 2\'s onFocus event has fired.'" onblur="document.getElementById('result').innerHTML+='<br>Test Passed. Text field 2\'s onBlur event has fired.'"></input>
8 <div id="result"></div>
9 </p>
10 </body>
11 </html>