https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 2ecb5abe933bc46e324ea1a1f8528a844b99e762 authored by kaixinjxq on 14 March 2018, 02:09:20 UTC
Add sensor tests that throw NotSupportedError when set an unsupported option
Tip revision: 2ecb5ab
hr-time.idl
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;
};
back to top