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

Unified Diff: third_party/WebKit/LayoutTests/svg/animations/pause-setcurrenttime-unpause-before-timeline-start.html

Issue 2248643003: Simplify time tracking in SMILTimeContainer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: begin() -> start(); touch-up comment Created 4 years, 4 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 | third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698