Index: third_party/WebKit/LayoutTests/svg/animations/pause-setcurrenttime-unpause-before-timeline-start.html |
diff --git a/third_party/WebKit/LayoutTests/svg/animations/pause-setcurrenttime-unpause-before-timeline-start.html b/third_party/WebKit/LayoutTests/svg/animations/pause-setcurrenttime-unpause-before-timeline-start.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..50d20a8cb70a969f108cb258323eafef9986b722 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/svg/animations/pause-setcurrenttime-unpause-before-timeline-start.html |
@@ -0,0 +1,22 @@ |
+<!DOCTYPE html> |
+<title>pause/setCurrentTime/unpause before timeline started gives correct presentation time</title> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<svg> |
+ <rect width="100" height="100"> |
+ <animate attributeName="x" from="0" to="200" begin="2" dur="20"/> |
+ </rect> |
+</svg> |
+<script> |
+async_test(function(t) { |
+ var target = document.querySelector('svg'); |
+ target.pauseAnimations(); |
+ target.setCurrentTime(3); |
+ target.unpauseAnimations(); |
+ window.onload = function() { |
+ setTimeout(t.step_func_done(function() { |
+ assert_greater_than_equal(target.getCurrentTime(), 3); |
+ }), 0); |
+ }; |
+}); |
+</script> |