diff options
Diffstat (limited to 'testing/web-platform/tests/scheduler/scheduler-replaceable.any.js')
-rw-r--r-- | testing/web-platform/tests/scheduler/scheduler-replaceable.any.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/web-platform/tests/scheduler/scheduler-replaceable.any.js b/testing/web-platform/tests/scheduler/scheduler-replaceable.any.js new file mode 100644 index 0000000000..12bf1116dd --- /dev/null +++ b/testing/web-platform/tests/scheduler/scheduler-replaceable.any.js @@ -0,0 +1,12 @@ +// META: title=Scheduler: scheduler should be replaceable +// META: global=window,worker +'use strict'; + +test(() => { + class Scheduler { + constructor() { + scheduler = this; + } + } + new Scheduler(); +}, 'Tests replacing window.scheduler with a different object'); |