| Index: third_party/WebKit/LayoutTests/fast/forms/search/search-setrangetext-noevents.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/forms/search/search-setrangetext-noevents.html b/third_party/WebKit/LayoutTests/fast/forms/search/search-setrangetext-noevents.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..84abaacde2afd6801737616bd8403a2a1959b8cd
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/forms/search/search-setrangetext-noevents.html
|
| @@ -0,0 +1,27 @@
|
| +<!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>
|
|
|