4 // This test case is based on the test case http://data.ici-bas.fr/chromiumissue10879/.
5 window.changed = false;
6 function checkForChange()
11 if (!window.changed && document.getElementById("field").value != "")
20 document.getElementById("log").appendChild(document.createTextNode(msg + "\n"));
25 <p id="description">This test verifies that on autocompletion the 'onchange' event is fired.</p>
26 <p>Steps to reproduce:</p>
28 <li>In the input field, type the word "apple" (without quotes). Then click the button Submit or hit the return/enter
29 key on your keyboard</li>
30 <li>Once the page reloads, in the input field, type "ap" (without quotes) and let the browser autocomplete the word (or select
31 "apple" from the autocompletion drop-down list contextual menu). Then click the button Submit or hit the return/enter
32 key on your keyboard.</li>
34 <form method="get" onsubmit="return checkForChange()">
35 <p><input type="text" name="field" id="field" value="" onchange="window.changed = true"/></p>
36 <p><input type="submit" value="Submit"/></p>