Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / web-animations-api / player-play-with-negative-current-time.html
blobfbeb5b2c625e2635affc6d75ee705f79fb9c4f73
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <div id="target"></div>
5 <script>
6 test(function() {
7 var keyframes = [
8 {left: '0px'},
9 {left: '100px'}
11 var timing = {
12 duration: 1,
13 delay: -100,
15 var player = target.animate(keyframes, timing);
16 document.timeline.currentTime = 0;
17 var oldStartTime = player.startTime;
18 player.startTime += 2000;
19 assert_equals(player.startTime, oldStartTime + 2000);
20 player.play();
21 assert_equals(player.startTime, null);
22 assert_equals(player.currentTime, 0);
23 }, 'Play() called with a large negative delay');
24 </script>