summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/long-animation-frame/tentative/loaf-window-only.worker.js
blob: c1f0439c4bda4f68aeeb5e89bb55a4d2a475d62c (plain)
1
2
3
4
5
6
7
8
9
10
11
importScripts("/resources/testharness.js");

test(() => {
  assert_false(PerformanceObserver.supportedEntryTypes.includes("long-animation-frame"));
}, 'PerformanceObserver should not include "long-animation-frame" in workers');

test(() => {
  assert_false("PerformanceLongAnimationFrameTiming" in self);
}, 'PerformanceLongAnimationFrameTiming should not be exposed in workers');

done();