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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/svg/custom/animate-svgsvgelement-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <title>Test that width/height animation on SVGSVGElement is removed when the ani mation ends</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script>
6 var width_test = async_test("Test width");
7 var height_test = async_test("Test height");
8 function do_width_test() {
9 width_test.step(function() {
10 assert_equals(document.querySelector('svg').offsetWidth, 0, "width s hould be zero when the animation has ended.");
11 });
12 width_test.done();
13 }
14 function do_height_test() {
15 height_test.step(function() {
16 assert_equals(document.querySelector('svg').offsetHeight, 0, "height should be zero when the animation has ended.");
17 });
18 height_test.done();
19 }
20 </script>
21 <svg style="background: red" width="0" height="0">
22 <set attributeName="width" to="100px" dur="1ms" begin="0s" onend="do_width_tes t()"/>
23 <set attributeName="height" to="100px" dur="1ms" begin="0s" onend="do_height_t est()"/>
24 </svg>
25 <div id="log"></div>
OLDNEW
« 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