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

Side by Side Diff: LayoutTests/virtual/without-smil/svg/animations/exposed/effect.html

Issue 1251983005: Flag to disable SMIL support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: smil not sMIL Created 5 years, 5 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../../../resources/js-test.js"></script>
5 <script>
6 'use strict';
7
8 function checkWidth() {
9 var rect = document.getElementById('rect');
10
11 shouldBe('rect.width.animVal.value', '100');
12 shouldBe('rect.height.animVal.value', '200');
13 shouldBe('rect["transform"].animVal.numberOfItems', '1');
14 shouldBe('rect["transform"].animVal.getItem(0).angle', '300');
15
16 if (window.testRunner) {
17 testRunner.dumpAsText();
18 testRunner.notifyDone();
19 }
20 }
21
22 jsTestIsAsync = true;
23 requestAnimationFrame(checkWidth);
24 if (window.testRunner) {
25 testRunner.waitUntilDone();
26 }
27 </script>
28 </head>
29 <body>
30 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xl ink">
31 <discard>
32 <rect id="rect" width="100" height="200" fill="#123456" transform="rotate( 300)">
33 <set attributeName="width" to="400"/>
34 <animate attributeName="height" from="500" to="500" dur="1min"/>
35 <animateTransform attributeName="transform" type="rotate" from="600" to= "600" dur="1min"/>
36 <animateColor attributeName="fill" from="blue" to="blue" dur="1min"/>
37 <animateMotion from="100" to="100" dur="1min">
38 <mpath xlink:href="#motionPath" />
39 </animateMotion>
40 </rect>
41 </discard>
42 <path id="motionPath" d="m0,0 h200 v300 z" stroke-width="5" stroke="green"/>
43 </svg>
44 <p id="description"></p>
45 <div id="console"></div>
46 </body>
47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698