large-duration-threshold.html (622B)
1 <!DOCTYPE html> 2 <html> 3 <meta charset=utf-8 /> 4 <title>Event Timing: PerformanceObserver with a durationThreshold of 125</title> 5 <script src=/resources/testharness.js></script> 6 <script src=/resources/testharnessreport.js></script> 7 <script src=/resources/testdriver.js></script> 8 <script src=/resources/testdriver-vendor.js></script> 9 <script src=resources/event-timing-test-utils.js></script> 10 <div id='myDiv'>Click me</div> 11 <script> 12 promise_test(async t => { 13 return testDuration(t, 'myDiv', numEntries=2, dur=125, slowDur=140); 14 }, "PerformanceObserver observes events according to its durationThreshold"); 15 </script> 16 </html>