High Resolution Time IDL tests
[Exposed=Windows,Worker]
interface WindowOrWorkerGlobalScope {
};
[Exposed=(Window,Worker)]
interface EventTarget {
};
[Exposed=Window]
interface PerformanceTiming {
};
[Exposed=Window]
interface PerformanceNavigation {
};
// from nav-timing
partial interface Performance {
[SameObject]
readonly attribute PerformanceTiming timing;
[SameObject]
readonly attribute PerformanceNavigation navigation;
[Default] object toJSON();
};
typedef double DOMHighResTimeStamp;
[Exposed=(Window,Worker)]
interface Performance : EventTarget {
DOMHighResTimeStamp now();
readonly attribute DOMHighResTimeStamp timeOrigin;
[Default] object toJSON();
};
partial interface WindowOrWorkerGlobalScope {
[Replaceable]
readonly attribute Performance performance;
};