From 6c24d15b8c950139bd904ed85e66c7e96d547a94 Mon Sep 17 00:00:00 2001 From: Andrea Marchesini Date: Wed, 24 Jan 2018 07:33:49 +0100 Subject: [PATCH] Bug 1432522 - Performance should be an EventTarget, r=smaug --- dom/webidl/Performance.webidl | 2 +- .../meta/hr-time/idlharness.html.ini | 7 ------ .../navigation-timing/idlharness.html.ini | 25 ------------------- 3 files changed, 1 insertion(+), 33 deletions(-) delete mode 100644 testing/web-platform/meta/hr-time/idlharness.html.ini delete mode 100644 testing/web-platform/meta/navigation-timing/idlharness.html.ini diff --git a/dom/webidl/Performance.webidl b/dom/webidl/Performance.webidl index 68e074604707..5f63bd926738 100644 --- a/dom/webidl/Performance.webidl +++ b/dom/webidl/Performance.webidl @@ -14,7 +14,7 @@ typedef double DOMHighResTimeStamp; typedef sequence PerformanceEntryList; [Exposed=(Window,Worker)] -interface Performance { +interface Performance : EventTarget { [DependsOn=DeviceState, Affects=Nothing] DOMHighResTimeStamp now(); diff --git a/testing/web-platform/meta/hr-time/idlharness.html.ini b/testing/web-platform/meta/hr-time/idlharness.html.ini deleted file mode 100644 index b73e7476c2e2..000000000000 --- a/testing/web-platform/meta/hr-time/idlharness.html.ini +++ /dev/null @@ -1,7 +0,0 @@ -[idlharness.html] - [Performance interface: existence and properties of interface object] - expected: FAIL - - [Performance interface: existence and properties of interface prototype object] - expected: FAIL - diff --git a/testing/web-platform/meta/navigation-timing/idlharness.html.ini b/testing/web-platform/meta/navigation-timing/idlharness.html.ini deleted file mode 100644 index 1b68b9e63b2d..000000000000 --- a/testing/web-platform/meta/navigation-timing/idlharness.html.ini +++ /dev/null @@ -1,25 +0,0 @@ -[idlharness.html] - [Performance interface: existence and properties of interface object] - expected: FAIL - - [Performance interface: existence and properties of interface prototype object] - expected: FAIL - - [EventTarget interface: window.performance must inherit property "addEventListener" with the proper type (0)] - expected: FAIL - - [EventTarget interface: calling addEventListener(DOMString,EventListener,boolean) on window.performance with too few arguments must throw TypeError] - expected: FAIL - - [EventTarget interface: window.performance must inherit property "removeEventListener" with the proper type (1)] - expected: FAIL - - [EventTarget interface: calling removeEventListener(DOMString,EventListener,boolean) on window.performance with too few arguments must throw TypeError] - expected: FAIL - - [EventTarget interface: window.performance must inherit property "dispatchEvent" with the proper type (2)] - expected: FAIL - - [EventTarget interface: calling dispatchEvent(Event) on window.performance with too few arguments must throw TypeError] - expected: FAIL -