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

Unified Diff: LayoutTests/svg/animations/use-set-attribute-width-height.html

Issue 17287012: Replace hasAttribute with the check for actual value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Replace '>=' with '=' to fix layout test failures Created 7 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/svg/animations/use-set-attribute-width-height-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/animations/use-set-attribute-width-height.html
diff --git a/LayoutTests/svg/animations/use-set-attribute-width-height.html b/LayoutTests/svg/animations/use-set-attribute-width-height.html
new file mode 100644
index 0000000000000000000000000000000000000000..d395024308a2eaddb68f1d7031aed2cf68c6a3f3
--- /dev/null
+++ b/LayoutTests/svg/animations/use-set-attribute-width-height.html
@@ -0,0 +1,22 @@
+<!-- Test for crbug.com/235256: this test passes if only
+the top left green rect is shown.
+Modified from the original example here,
+http://www.w3.org/TR/SVG/images/struct/Use02.svg -->
+<html>
+<body>
+<svg width="10cm" height="3cm" viewBox="0 0 100 30">
+ <defs>
+ <symbol id="MySymbol">
+ <desc>MySymbol - four rectangles in a grid</desc>
+ <rect x="1" y="1" width="8" height="8" fill="green"/>
+ <rect x="11" y="1" width="8" height="8" fill="red"/>
+ <rect x="1" y="11" width="8" height="8" fill="red"/>
+ <rect x="11" y="11" width="8" height="8" fill="red"/>
+ </symbol>
+ </defs>
+ <use x="0" y="0" xlink:href="#MySymbol" >
+ <set attributeName="width" to="10" begin="0s" fill="freeze" />
+ <set attributeName="height" to="10" begin="0s" fill="freeze" />
+ </use>
+</svg>
+</body>
« no previous file with comments | « no previous file | LayoutTests/svg/animations/use-set-attribute-width-height-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698