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

Side by Side Diff: LayoutTests/svg/animations/multiple-begin-animation-events.html

Issue 26390004: Rework SVG sizing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix mishap during rebase in svg.css 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
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <script> 2 <script>
3 var beginsSeen = 0; 3 var beginsSeen = 0;
4 var endsSeen = 0; 4 var endsSeen = 0;
5 function logBegin() { 5 function logBegin() {
6 if (++beginsSeen > 4) 6 if (++beginsSeen > 4)
7 fail(); 7 fail();
8 } 8 }
9 function logEnd() { 9 function logEnd() {
10 ++endsSeen; 10 ++endsSeen;
(...skipping 17 matching lines...) Expand all
28 endTest('FAIL'); 28 endTest('FAIL');
29 } 29 }
30 if (window.testRunner) { 30 if (window.testRunner) {
31 testRunner.dumpAsText(); 31 testRunner.dumpAsText();
32 testRunner.waitUntilDone(); 32 testRunner.waitUntilDone();
33 } 33 }
34 window.onload = function() { 34 window.onload = function() {
35 timer = window.setTimeout(fail, 2000); 35 timer = window.setTimeout(fail, 2000);
36 } 36 }
37 </script> 37 </script>
38 <svg id="svg" xmlns="http://www.w3.org/2000/svg" height="200"> 38 <svg id="svg" xmlns="http://www.w3.org/2000/svg" width="100%" height="200">
39 <rect width="10" height="10" fill="green"> 39 <rect width="10" height="10" fill="green">
40 <animate id="a1" onbegin="logBegin()" onend="logEnd()" attributeName="x" beg in="0s; 0.5s" dur="0.5s" from="0" to="100"/> 40 <animate id="a1" onbegin="logBegin()" onend="logEnd()" attributeName="x" beg in="0s; 0.5s" dur="0.5s" from="0" to="100"/>
41 </rect> 41 </rect>
42 <rect y="10" width="10" height="10" fill="green"> 42 <rect y="10" width="10" height="10" fill="green">
43 <animate id="a2" onbegin="logBegin()" onend="logEnd()" attributeName="x" beg in="a1.end; 1s" dur="0.5s" from="0" to="100"/> 43 <animate id="a2" onbegin="logBegin()" onend="logEnd()" attributeName="x" beg in="a1.end; 1s" dur="0.5s" from="0" to="100"/>
44 </rect> 44 </rect>
45 </svg> 45 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698