We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 831dc2b commit 9910784Copy full SHA for 9910784
hr-time/basic.any.js
@@ -26,3 +26,12 @@ async_test(function() {
26
this.done();
27
}, 2000);
28
}, 'High resolution time has approximately the right relative magnitude');
29
+
30
+test(function() {
31
+ var didHandle = false;
32
+ self.performance.addEventListener("testEvent", function() {
33
+ didHandle = true;
34
+ }, { once: true} );
35
+ self.performance.dispatchEvent(new Event("testEvent"));
36
+ assert_true(didHandle, "Performance extends EventTarget, so event dispatching should work.");
37
+}, "Performance interface extends EventTarget.");
0 commit comments