| Index: third_party/WebKit/LayoutTests/fast/forms/search/search-change-type-onsearch.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/forms/search/search-change-type-onsearch.html b/third_party/WebKit/LayoutTests/fast/forms/search/search-change-type-onsearch.html
|
| index 166553441529071f6e90eed35acf4c4764ba78a5..885cc25303f92ff24cf346ea7a238881a1675d9c 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/forms/search/search-change-type-onsearch.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/forms/search/search-change-type-onsearch.html
|
| @@ -8,16 +8,13 @@
|
| var input = document.querySelector('input');
|
| input.onsearch = function() {
|
| input.type = 'text';
|
| + test.done();
|
| };
|
|
|
| var test = async_test('Changing the input type in search event handler should not crash.');
|
| test.step(function() {
|
| - input.offsetTop;
|
| - input.setRangeText('', 0, 1); // Trigger 'search' event.
|
| + input.focus();
|
| + eventSender.keyDown('a'); // Trigger 'search' event.
|
| });
|
| -setTimeout(function() { test.step(function() {
|
| - assert_equals(input.type, 'text');
|
| - test.done();
|
| -})}, 0);
|
| </script>
|
| </body>
|
|
|