blob: 84abaacde2afd6801737616bd8403a2a1959b8cd [file] [log] [blame]
<!DOCTYPE html>
<body>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<div id="log"></div>
<input type="search" incremental value="abcdef">
<script>
var input = document.querySelector('input');
var test = async_test('Changing the input type in search event handler should not crash.');
test.step(function() {
input.onsearch = function() {
assert_unreached();
};
input.oninput = function() {
assert_unreached();
};
// A search event would have 0.2s delay in this case.
setTimeout(function() {
test.done();
}, 300);
input.focus();
input.setRangeText('a', 6, 6);
});
</script>
</body>