Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/search/search-change-type-onsearch.html

Issue 1577243002: setRangeText shouldn't dispatch 'search' event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/search/search-setrangetext-noevents.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/search/search-setrangetext-noevents.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698