2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
10 var element = document.getElementById('e');
11 var style = getComputedStyle(element);
14 var animation = new Animation(element,
15 [{opacity: '1', offset: 0},
16 {opacity: '0', offset: 1}],
20 var player = document.timeline.play(animation);
22 player.currentTime = duration / 2;
23 assert_equals(style.opacity, '0.5');
24 }, 'Calling document.timeline.play() should start an animation.');