Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/effect.html

Issue 2408493002: Import wpt@357b83b809e3cbc7a1805e7c3ca108a7980d782f (Closed)
Patch Set: Added one more win7-specific baseline Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698