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

Unified Diff: LayoutTests/web-animations-api/player-unresolved-times.html

Issue 556453004: Web Animations: Use null for unresolved startTime and currentTime in AnimationPlayer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert formatting change. Created 6 years, 3 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 | Source/core/animation/AnimationPlayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | Source/core/animation/AnimationPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698