Crash when 'input' event handler for input[type=color] changes the input type
[WebKit-https.git] / LayoutTests / fast / forms / color / color-type-change-on-input-crash.html
1 <!DOCTYPE html>
2 <html>
3 <script src="../../../resources/js-test.js"></script>
4 </head>
5 <body>
6 <script>
7 description('Changing the input type from "color" to another in "input" event handler should not crash.');
8
9 function runTest() {
10     var input = document.createElement('input');
11     input.type = 'color';
12     input.oninput = function() {
13         this.type = 'text';
14     };
15     internals.selectColorInColorChooser(input, '#ff0000');
16 }
17
18 runTest();
19 </script>
20 </body>
21 </html>