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

Unified Diff: LayoutTests/svg/animations/animateTransform-circular-linked-syncbases.html

Issue 173523003: Make clearing the animated type at the end of an interval more robust (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop explicit timeout in TC. Created 6 years, 10 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 | LayoutTests/svg/animations/animateTransform-circular-linked-syncbases-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/animations/animateTransform-circular-linked-syncbases.html
diff --git a/LayoutTests/svg/animations/animateTransform-circular-linked-syncbases.html b/LayoutTests/svg/animations/animateTransform-circular-linked-syncbases.html
new file mode 100644
index 0000000000000000000000000000000000000000..706267f79146b40489fdf20e91133364ca728f17
--- /dev/null
+++ b/LayoutTests/svg/animations/animateTransform-circular-linked-syncbases.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<svg height="100" width="200">
+ <rect x="100" width="100" height="100" fill="#ff0000"></rect>
+ <rect width="100" height="100" fill="#008000">
+ <animateTransform attributeName="transform" type="translate"
+ from="50 0" to="100 0" dur="0.1s" id="right" begin="left.end" onend="checkResult()" fill="freeze"/>
+ <animateTransform attributeName="transform" type="translate"
+ from="0 0" to="50 0" dur="0.1s" id="left" begin="0s; right.end+100s"/>
+ </rect>
+</svg>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+function checkResult() {
+ document.querySelector('svg').pauseAnimations();
+ var rect = document.querySelector('rect + rect');
+ var rectTransformList = rect.transform.animVal;
+ if (rectTransformList.numberOfItems == 1 &&
+ rectTransformList.getItem(0).matrix.e === 100) {
+ result = 'PASS';
+ } else {
+ result = 'FAIL';
+ }
+ document.body.appendChild(document.createTextNode(result));
+ if (window.testRunner)
+ testRunner.notifyDone();
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/svg/animations/animateTransform-circular-linked-syncbases-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698