blob: 3fc4ef288e69b651f06f31c3de314426341bee66 [file] [log] [blame]
<!DOCTYPE html>
<html>
<script src="../../../resources/js-test.js"></script>
</head>
<body>
<script>
description('Changing the input type from "color" to another in "input" event handler should not crash.');
function runTest() {
var input = document.createElement('input');
input.type = 'color';
input.oninput = function() {
this.type = 'text';
};
internals.selectColorInColorChooser(input, '#ff0000');
}
runTest();
</script>
</body>
</html>