blob: 75a2da9f023ca80722bcf79bd36841406f2124bd [file] [log] [blame]
<!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>
"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>