Index: third_party/WebKit/LayoutTests/fast/forms/search/search-type-change-crash.html |
diff --git a/third_party/WebKit/LayoutTests/fast/forms/search/search-type-change-crash.html b/third_party/WebKit/LayoutTests/fast/forms/search/search-type-change-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e76049482faf20f5ec4df543222bc908c19d14e8 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/forms/search/search-type-change-crash.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<body> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
+<div id="container"> |
+<style></style> |
+<input id="input" type="time" onblur="this.type = 'search';"> |
+</div> |
+<script> |
+var test = async_test('No crash by changing type on blur.'); |
+window.onload = test.step_func_done(() => { |
+ document.querySelector('#input').focus(); |
+ document.querySelector('#container').style.display = 'none'; |
+ document.querySelector('#input').value = '23:59'; |
+}); |
+</script> |
+</body> |