Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / onchange-passwordfield.html
blob2787f902ef0afc19aceb56ed0eb956a5f160c915
1 <p>This test verifies that the ENTER key fires the change event.</p>
2 <hr>
3 <input id="input" type="password" onchange="changeHandler()" onblur="blurHandler()"></input>
4 <pre id="console"></pre>
6 <script>
7 function log(s)
9 document.getElementById('console').appendChild(document.createTextNode(s + "\n"));
12 function changeHandler()
14 log ('PASS: change event fired.\n');
17 function blurHandler()
19 log ('blur event fired.\n');
22 if (window.testRunner)
23 testRunner.dumpAsText();
25 // change the field
26 document.getElementById('input').focus();
27 document.execCommand("InsertText", false, "foo bar baz");
29 // hit enter
30 input.focus();
31 if (window.eventSender)
32 eventSender.keyDown("\r", []);
34 </script>