Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / forms / radio / radio-onchange.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <input type="radio" name="test" id="rd">
8 <input type="radio" name="test" id="rd2" onchange="handleChange()">
9 <input type="radio" name="test" id="rd3" value="" onchange="handleChange()">
10 <script>
11 description("This is to test onchange of radio buttons");
12
13 function handleChange() {
14     testPassed('onChange event fired for a radio button.');
15 }
16
17 document.getElementById('rd2').click();
18 document.getElementById('rd3').click();
19 </script>
20 </body>
21 </html>