Index: LayoutTests/animations/interpolation/svg-r-interpolation.html |
diff --git a/LayoutTests/animations/interpolation/svg-stroke-width-interpolation.html b/LayoutTests/animations/interpolation/svg-r-interpolation.html |
similarity index 71% |
copy from LayoutTests/animations/interpolation/svg-stroke-width-interpolation.html |
copy to LayoutTests/animations/interpolation/svg-r-interpolation.html |
index 508cf802c36b272f4374869e52d6cb163f5254b1..6035d9e09a37ea2173d047d7c29fb1c9931b0473 100644 |
--- a/LayoutTests/animations/interpolation/svg-stroke-width-interpolation.html |
+++ b/LayoutTests/animations/interpolation/svg-r-interpolation.html |
@@ -4,7 +4,7 @@ |
.target { |
stroke: black; |
fill: white; |
- stroke-width: 5px; |
+ r: 5px; |
} |
.replica { |
stroke: green; |
@@ -13,17 +13,17 @@ |
<body> |
<template id="target-template"> |
<svg width="70" height="70"> |
- <rect x="10" y="10" width="50" height="50"/> |
+ <circle cx="35" cy="35" r="20" class="target"/> |
</svg> |
</template> |
<script src="resources/interpolation-test.js"></script> |
<script> |
assertInterpolation({ |
- property: 'stroke-width', |
+ property: 'r', |
from: '0px', |
to: '20px' |
}, [ |
- {at: -0.3, is: '0px'}, // SVG stroke-width can't be negative. |
+ {at: -0.3, is: '0px'}, // SVG r can't be negative. |
{at: 0, is: '0px'}, |
{at: 0.3, is: '6px'}, |
{at: 0.6, is: '12px'}, |
@@ -31,11 +31,11 @@ assertInterpolation({ |
{at: 1.5, is: '30px'}, |
]); |
assertInterpolation({ |
- property: 'stroke-width', |
+ property: 'r', |
from: '0px', |
to: '10em' |
}, [ |
- {at: -0.3, is: '0em'}, // SVG stroke-width can't be negative. |
+ {at: -0.3, is: '0em'}, // SVG r can't be negative. |
{at: 0, is: '0em'}, |
{at: 0.3, is: '3em'}, |
{at: 0.6, is: '6em'}, |
@@ -43,7 +43,7 @@ assertInterpolation({ |
{at: 1.5, is: '15em'}, |
]); |
assertInterpolation({ |
- property: 'stroke-width', |
+ property: 'r', |
from: '30px', |
to: '10em' |
}, [ |
@@ -55,7 +55,7 @@ assertInterpolation({ |
{at: 1.5, is: '225px'}, |
]); |
assertInterpolation({ |
- property: 'stroke-width', |
+ property: 'r', |
from: '10em', |
to: '0px' |
}, [ |
@@ -64,10 +64,10 @@ assertInterpolation({ |
{at: 0.3, is: '7em'}, |
{at: 0.6, is: '4em'}, |
{at: 1, is: '0em'}, |
- {at: 1.5, is: '0em'}, // SVG stroke-width can't be negative. |
+ {at: 1.5, is: '0em'}, // SVG r can't be negative. |
]); |
assertInterpolation({ |
- property: 'stroke-width', |
+ property: 'r', |
from: '10em', |
to: '30px' |
}, [ |
@@ -78,5 +78,17 @@ assertInterpolation({ |
{at: 1, is: '30px'}, |
{at: 1.5, is: '0px'}, |
]); |
+assertInterpolation({ |
+ property: 'r', |
+ from: '0', |
+ to: '20' |
+}, [ |
+ {at: -0.3, is: '0'}, |
+ {at: 0, is: '0'}, |
+ {at: 0.3, is: '6'}, |
+ {at: 0.6, is: '12'}, |
+ {at: 1, is: '20'}, |
+ {at: 1.5, is: '30'}, |
+]); |
</script> |
</body> |