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

Unified Diff: LayoutTests/svg/custom/animate-svgsvgelement.html

Issue 248503004: Synchronize attribute before animation ends (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Re-upload with --no-find-copies Created 6 years, 8 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/custom/animate-svgsvgelement-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/custom/animate-svgsvgelement.html
diff --git a/LayoutTests/svg/custom/animate-svgsvgelement.html b/LayoutTests/svg/custom/animate-svgsvgelement.html
new file mode 100644
index 0000000000000000000000000000000000000000..6c227679a96818d92335ea966823488c92aa3eae
--- /dev/null
+++ b/LayoutTests/svg/custom/animate-svgsvgelement.html
@@ -0,0 +1,25 @@
+<!doctype html>
+<title>Test that width/height animation on SVGSVGElement is removed when the animation ends</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+ var width_test = async_test("Test width");
+ var height_test = async_test("Test height");
+ function do_width_test() {
+ width_test.step(function() {
+ assert_equals(document.querySelector('svg').offsetWidth, 0, "width should be zero when the animation has ended.");
+ });
+ width_test.done();
+ }
+ function do_height_test() {
+ height_test.step(function() {
+ assert_equals(document.querySelector('svg').offsetHeight, 0, "height should be zero when the animation has ended.");
+ });
+ height_test.done();
+ }
+</script>
+<svg style="background: red" width="0" height="0">
+ <set attributeName="width" to="100px" dur="1ms" begin="0s" onend="do_width_test()"/>
+ <set attributeName="height" to="100px" dur="1ms" begin="0s" onend="do_height_test()"/>
+</svg>
+<div id="log"></div>
« no previous file with comments | « no previous file | LayoutTests/svg/custom/animate-svgsvgelement-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698