<!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>
