blob: c80c33757daa0784b09e438949e8352cfcd362f2 [file] [log] [blame]
<!DOCTYPE html>
<meta charset="utf-8">
<title>Test instantiating an Animation with a ScrollTimeline.</title>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script>
test(t => {
var scrollTimeline = new ScrollTimeline({ timeRange: 100, orientation: 'block' });
var animationObject = new Animation(null, scrollTimeline);
assert_equals(animationObject.timeline, scrollTimeline,
"Animation timeline should be the ScrollTimeline passed in the constructor.");
}, 'Instantiating an Animation with a ScrollTimeline should be successful.');
</script>