Index: LayoutTests/web-animations-api/element-animate-null-effect.html |
diff --git a/LayoutTests/web-animations-api/element-animate-null-effect.html b/LayoutTests/web-animations-api/element-animate-null-effect.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a66e145d228e34457f1e763e4e9f16e9729d771b |
--- /dev/null |
+++ b/LayoutTests/web-animations-api/element-animate-null-effect.html |
@@ -0,0 +1,11 @@ |
+<!DOCTYPE html> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+<script> |
+var element = document.documentElement; |
+test(function() { |
+ 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> |