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

Unified Diff: third_party/WebKit/LayoutTests/web-animations-api/element-animate-null-effect.html

Issue 2140913002: Animations: Fix element.animate() null effect test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/web-animations-api/element-animate-null-effect.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/element-animate-null-effect.html b/third_party/WebKit/LayoutTests/web-animations-api/element-animate-null-effect.html
index a66e145d228e34457f1e763e4e9f16e9729d771b..75a2da9f023ca80722bcf79bd36841406f2124bd 100644
--- a/third_party/WebKit/LayoutTests/web-animations-api/element-animate-null-effect.html
+++ b/third_party/WebKit/LayoutTests/web-animations-api/element-animate-null-effect.html
@@ -1,11 +1,19 @@
<!DOCTYPE html>
+<meta charset=utf-8>
+<title>element.animate() accepts a null effect</title>
+<link rel="help" href="http://w3c.github.io/web-animations/#animatable">
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
+<script src="../imported/wpt/web-animations/testcommon.js"></script>
+<body>
<script>
-var element = document.documentElement;
-test(function() {
+"use strict";
+
+test(function(t) {
+ var element = createDiv(t);
assert_true(element.animate(null) != null);
assert_true(element.animate(null, 1) != null);
assert_true(element.animate(null, {duration: 1}) != null);
}, 'Animate should accept a null effect.');
</script>
+</body>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698