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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPathParserTest.cpp

Issue 1407133007: Convert the path fuzzer test to a unit test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Less C'n'P Created 5 years, 2 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 | « third_party/WebKit/LayoutTests/svg/dom/fuzz-path-parser-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/dom/fuzz-path-parser-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698