Index: third_party/WebKit/Source/core/svg/SVGPathParserTest.cpp |
diff --git a/third_party/WebKit/Source/core/svg/SVGPathParserTest.cpp b/third_party/WebKit/Source/core/svg/SVGPathParserTest.cpp |
index 510898ddb6785e69facc26dea714ceb614f80491..3914f93e4dc9c944e185698ef7bd797e9b8e7a07 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGPathParserTest.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGPathParserTest.cpp |
@@ -111,6 +111,33 @@ TEST(SVGPathParserTest, Simple) |
MALFORMED("M\0", ""); |
MALFORMED("M1,1Z0", "M 1 1 Z"); |
+ MALFORMED("M1,1z0", "M 1 1 Z"); |
+ |
+ VALID("M1,1h2,3", "M 1 1 h 2 h 3"); |
+ VALID("M1,1H2,3", "M 1 1 H 2 H 3"); |
+ VALID("M1,1v2,3", "M 1 1 v 2 v 3"); |
+ VALID("M1,1V2,3", "M 1 1 V 2 V 3"); |
+ |
+ MALFORMED("M1,1c2,3 4,5 6,7 8", "M 1 1 c 2 3 4 5 6 7"); |
+ VALID("M1,1c2,3 4,5 6,7 8,9 10,11 12,13", "M 1 1 c 2 3 4 5 6 7 c 8 9 10 11 12 13"); |
+ MALFORMED("M1,1C2,3 4,5 6,7 8", "M 1 1 C 2 3 4 5 6 7"); |
+ VALID("M1,1C2,3 4,5 6,7 8,9 10,11 12,13", "M 1 1 C 2 3 4 5 6 7 C 8 9 10 11 12 13"); |
+ MALFORMED("M1,1s2,3 4,5 6", "M 1 1 s 2 3 4 5"); |
+ VALID("M1,1s2,3 4,5 6,7 8,9", "M 1 1 s 2 3 4 5 s 6 7 8 9"); |
+ MALFORMED("M1,1S2,3 4,5 6", "M 1 1 S 2 3 4 5"); |
+ VALID("M1,1S2,3 4,5 6,7 8,9", "M 1 1 S 2 3 4 5 S 6 7 8 9"); |
+ MALFORMED("M1,1q2,3 4,5 6", "M 1 1 q 2 3 4 5"); |
+ VALID("M1,1q2,3 4,5 6,7 8,9", "M 1 1 q 2 3 4 5 q 6 7 8 9"); |
+ MALFORMED("M1,1Q2,3 4,5 6", "M 1 1 Q 2 3 4 5"); |
+ VALID("M1,1Q2,3 4,5 6,7 8,9", "M 1 1 Q 2 3 4 5 Q 6 7 8 9"); |
+ MALFORMED("M1,1t2,3 4", "M 1 1 t 2 3"); |
+ VALID("M1,1t2,3 4,5", "M 1 1 t 2 3 t 4 5"); |
+ MALFORMED("M1,1T2,3 4", "M 1 1 T 2 3"); |
+ VALID("M1,1T2,3 4,5", "M 1 1 T 2 3 T 4 5"); |
+ MALFORMED("M1,1a2,3,4,0,0,5,6 7", "M 1 1 a 2 3 4 0 0 5 6"); |
+ VALID("M1,1a2,3,4,0,0,5,6 7,8,9,0,0,10,11", "M 1 1 a 2 3 4 0 0 5 6 a 7 8 9 0 0 10 11"); |
+ MALFORMED("M1,1A2,3,4,0,0,5,6 7", "M 1 1 A 2 3 4 0 0 5 6"); |
+ VALID("M1,1A2,3,4,0,0,5,6 7,8,9,0,0,10,11", "M 1 1 A 2 3 4 0 0 5 6 A 7 8 9 0 0 10 11"); |
} |
#undef MALFORMED |