| Index: third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/constructor.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/animation/constructor.html b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/constructor.html
|
| similarity index 67%
|
| rename from third_party/WebKit/LayoutTests/imported/wpt/web-animations/animation/constructor.html
|
| rename to third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/constructor.html
|
| index 2ea07710cfeea48d4d333b06b26969c36c2a07cf..08c392f06b1bbeab0527fd0d87665cd682fba111 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/animation/constructor.html
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/constructor.html
|
| @@ -3,9 +3,9 @@
|
| <title>Animation constructor tests</title>
|
| <link rel="help" href="http://w3c.github.io/web-animations/#dom-animation-animation">
|
| <link rel="author" title="Hiroyuki Ikezoe" href="mailto:hiikezoe@mozilla-japan.org">
|
| -<script src="../../../../resources/testharness.js"></script>
|
| -<script src="../../../../resources/testharnessreport.js"></script>
|
| -<script src="../testcommon.js"></script>
|
| +<script src="../../../../../resources/testharness.js"></script>
|
| +<script src="../../../../../resources/testharnessreport.js"></script>
|
| +<script src="../../testcommon.js"></script>
|
| <body>
|
| <div id="log"></div>
|
| <div id="target"></div>
|
| @@ -55,5 +55,19 @@ gTestArguments.forEach(function(args) {
|
| }, "Animation can be constructed " + args.description);
|
| });
|
|
|
| +test(function(t) {
|
| + var effect = new KeyframeEffectReadOnly(null,
|
| + { left: ["10px", "20px"] },
|
| + { duration: 10000,
|
| + fill: "forwards" });
|
| + var anim = new Animation(effect, document.timeline);
|
| + anim.pause();
|
| + assert_equals(effect.getComputedTiming().progress, 0.0);
|
| + anim.currentTime += 5000;
|
| + assert_equals(effect.getComputedTiming().progress, 0.5);
|
| + anim.finish();
|
| + assert_equals(effect.getComputedTiming().progress, 1.0);
|
| +}, "Animation constructed by an effect with null target runs normally");
|
| +
|
| </script>
|
| </body>
|
|
|