| Index: third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/effect.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/id.html b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/effect.html
|
| similarity index 50%
|
| copy from third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/id.html
|
| copy to third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/effect.html
|
| index 9d293733756350262046ff5d42b98c024bdce88b..d881a96a7dc92040d260c93b2f907f4c6579f3c0 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/id.html
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/effect.html
|
| @@ -1,7 +1,7 @@
|
| <!DOCTYPE html>
|
| <meta charset=utf-8>
|
| -<title>Animation.id</title>
|
| -<link rel="help" href="https://w3c.github.io/web-animations/#dom-animation-id">
|
| +<title>Animation.effect tests</title>
|
| +<link rel="help" href="https://w3c.github.io/web-animations/#dom-animation-effect">
|
| <script src="/resources/testharness.js"></script>
|
| <script src="/resources/testharnessreport.js"></script>
|
| <script src="../../testcommon.js"></script>
|
| @@ -11,13 +11,13 @@
|
| "use strict";
|
|
|
| test(function(t) {
|
| - var div = createDiv(t);
|
| - var animation = div.animate({}, 100 * MS_PER_SEC);
|
| - assert_equals(animation.id, '', 'id for CSS Animation is initially empty');
|
| - animation.id = 'anim'
|
| + var anim = new Animation();
|
| + assert_equals(anim.effect, null, "initial effect is null");
|
|
|
| - assert_equals(animation.id, 'anim', 'animation.id reflects the value set');
|
| -}, 'Animation.id for CSS Animations');
|
| + var newEffect = new KeyframeEffectReadOnly(createDiv(t), null);
|
| + anim.effect = newEffect;
|
| + assert_equals(anim.effect, newEffect, "new effect is set");
|
| +}, "effect is set correctly.");
|
|
|
| </script>
|
| </body>
|
|
|