File tree 3 files changed +27
-47
lines changed
3 files changed +27
-47
lines changed Original file line number Diff line number Diff line change
1
+ // META: global=window,worker
2
+ // META: script=/resources/WebIDLParser.js
3
+ // META: script=/resources/idlharness.js
4
+
5
+ 'use strict' ;
6
+
7
+ // https://w3c.github.io/hr-time/
8
+
9
+ idl_test (
10
+ [ 'hr-time' ] ,
11
+ [ 'html' , 'dom' ] ,
12
+ async idl_array => {
13
+ if ( self . GLOBAL . isWorker ( ) ) {
14
+ idl_array . add_objects ( { WorkerGlobalScope : [ 'self' ] } ) ;
15
+ } else {
16
+ idl_array . add_objects ( { Window : [ 'self' ] } ) ;
17
+ }
18
+ idl_array . add_objects ( {
19
+ Performance : [ 'performance' ] ,
20
+ } ) ;
21
+ }
22
+ ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
// GENERATED CONTENT - DO NOT EDIT
2
- // Content of this file was automatically extracted from the High Resolution Time spec.
3
- // See https://w3c.github.io/hr-time/
2
+ // Content of this file was automatically extracted from the
3
+ // "High Resolution Time Level 2" spec.
4
+ // See: https://w3c.github.io/hr-time/
4
5
5
6
typedef double DOMHighResTimeStamp;
6
7
7
8
[Exposed=(Window,Worker)]
8
9
interface Performance : EventTarget {
9
- DOMHighResTimeStamp now ();
10
+ DOMHighResTimeStamp now();
10
11
readonly attribute DOMHighResTimeStamp timeOrigin;
11
12
[Default] object toJSON();
12
13
};
13
14
14
- partial interface WindowOrWorkerGlobalScope {
15
+ partial interface mixin WindowOrWorkerGlobalScope {
15
16
[Replaceable]
16
17
readonly attribute Performance performance;
17
18
};
You can’t perform that action at this time.
0 commit comments