Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / onchange-setvalueforuser.html
blobf6b2398c23063ce4a19d3794caa6435948b129a7
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 <script>
5 function test() {
6 var tf = document.getElementById('tf');
8 var didFireOnChange = false;
9 tf.onchange = function() {
10 didFireOnChange = true;
13 if (window.testRunner) {
14 testRunner.dumpAsText();
17 tf.focus();
18 if (window.internals) {
19 internals.setValueForUser(tf, 'Hello!');
22 // Should not fire the event until focus is lost.
23 if (didFireOnChange) {
24 testFailed('onchange fired too early');
25 return;
28 tf.blur();
29 if (didFireOnChange) {
30 testPassed('');
31 } else {
32 testFailed('onchange never fired')
35 </script>
36 </head>
37 <body onload="test()">
38 This tests that onchange correctly fires after calling setValueForUser(). It can only be run using DumpRenderTree.<br>
39 <form name="fm">
40 <input type="text" id="tf" />
41 </form>
42 <div id="console"></div>
43 </body>
44 </html>