[Tools] Add a driver for cog for benchmark_runner.py
[WebKit-https.git] / LayoutTests / fast / events / form-onchange.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9
10 <div onchange="testPassed('div.onchange fired.');">
11   <form onchange="testPassed('form.onchange fired.');">
12       <input type="text" id="e" onchange="testPassed('input.onchange fired.');">
13   </form>
14 </div>
15
16 <script>
17 description('Tests that the onchange event can be set on any element with an attribute.');
18
19 document.getElementById('e').focus();
20 document.execCommand("InsertText", false, "foo");
21 document.getElementById('e').blur();
22
23 </script>
24 <script src="../../resources/js-test-post.js"></script>
25 </body>
26 </html>