Index: LayoutTests/web-animations-api/player-unresolved-times.html |
diff --git a/LayoutTests/web-animations-api/player-unresolved-times.html b/LayoutTests/web-animations-api/player-unresolved-times.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cbdacfe1b079fce806952bf480ecad9643ce6cfe |
--- /dev/null |
+++ b/LayoutTests/web-animations-api/player-unresolved-times.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+ |
+<script> |
+function assert_unresolved(value) { |
+ assert_equals(value, null); |
+} |
+ |
+test(function() { |
+ var player = document.documentElement.animate([], 100000); |
+ player.cancel(); |
+ assert_unresolved(player.startTime); |
+ assert_unresolved(player.currentTime); |
+}, "unresolved startTime and currentTime"); |
+ |
+</script> |