summaryrefslogtreecommitdiffstats
path: root/dom/animation/test/mozilla/file_disable_animations_api_timelines.html
blob: 39fedb299a1e5eff9adfe497db32f938d4a9f5e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!doctype html>
<meta charset=utf-8>
<script src="../testcommon.js"></script>
<body>
<script>
'use strict';

test(t => {
  assert_false(
    window.hasOwnProperty('DocumentTimeline'),
    'DocumentTimeline should not be exposed on the global'
  );
  assert_false(
    window.hasOwnProperty('AnimationTimeline'),
    'AnimationTimeline should not be exposed on the global'
  );
  assert_false(
    'timeline' in document,
    'document should not have a timeline property'
  );

  const anim = addDiv(t).animate(null);
  assert_false(
    'timeline' in anim,
    'Animation should not have a timeline property'
  );
}, 'Timeline-related interfaces and members are disabled');

done();
</script>