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

Unified Diff: LayoutTests/web-animations-api/animations-responsive-strokeDasharray.html

Issue 975733002: Use Length for the stroke-dasharray property in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test for style-change responsive-ness. Created 5 years, 10 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
Index: LayoutTests/web-animations-api/animations-responsive-strokeDasharray.html
diff --git a/LayoutTests/web-animations-api/animations-responsive-textIndent.html b/LayoutTests/web-animations-api/animations-responsive-strokeDasharray.html
similarity index 65%
copy from LayoutTests/web-animations-api/animations-responsive-textIndent.html
copy to LayoutTests/web-animations-api/animations-responsive-strokeDasharray.html
index eca4d1dd298c80fa7ebb6d8f99adc2cf60bbc785..d088ad09083fa83d698b4344b3d063db50df75e2 100644
--- a/LayoutTests/web-animations-api/animations-responsive-textIndent.html
+++ b/LayoutTests/web-animations-api/animations-responsive-strokeDasharray.html
@@ -13,16 +13,16 @@ test(function() {
container.style.fontSize = '10px';
var keyframes = [
- {textIndent: '10em hanging'},
- {textIndent: '10em hanging'}
+ {strokeDasharray: '10em 10em'},
+ {strokeDasharray: '10em 10em'}
];
var player = element.animate(keyframes, 10);
player.pause();
player.currentTime = 5;
- var textIndent = getComputedStyle(element).textIndent;
+ var strokeDasharray = getComputedStyle(element).strokeDasharray;
container.style.fontSize = '20px';
- assert_not_equals(getComputedStyle(element).textIndent, textIndent);
-}, 'textIndent responsive to style changes');
+ assert_not_equals(getComputedStyle(element).strokeDasharray, strokeDasharray);
+}, 'strokeDasharray responsive to style changes');
</script>

Powered by Google App Engine
This is Rietveld 408576698