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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/search/search-setrangetext-noevents.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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <script src="../../../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script>
5 <div id="log"></div>
6 <input type="search" incremental value="abcdef">
7 <script>
8 var input = document.querySelector('input');
9
10 var test = async_test('Changing the input type in search event handler should no t crash.');
11 test.step(function() {
12 input.onsearch = function() {
13 assert_unreached();
14 };
15 input.oninput = function() {
16 assert_unreached();
17 };
18 // A search event would have 0.2s delay in this case.
19 setTimeout(function() {
20 test.done();
21 }, 300);
22
23 input.focus();
24 input.setRangeText('a', 6, 6);
25 });
26 </script>
27 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698