historical-search-event.html (830B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>search event should not be supported</title> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script src="/resources/testdriver.js"></script> 7 <script src="/resources/testdriver-vendor.js"></script> 8 <input id=input type=search incremental> 9 <script> 10 promise_test(async t => { 11 const input = document.getElementById('input'); 12 const eventWatcher = new EventWatcher(t, input, ['search', 'keypress']); 13 await Promise.all([ 14 test_driver.send_keys(input, 'x'), 15 eventWatcher.wait_for(['keypress']) 16 ]); 17 // During this timeout, the search event will fire, if it's supported, 18 // which fails the test since the event watcher isn't expecting it. 19 await new Promise(resolve => t.step_timeout(resolve, 1000)); 20 }); 21 </script>