OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "core/svg/SVGPathParser.h" | 6 #include "core/svg/SVGPathParser.h" |
7 | 7 |
8 #include "core/svg/SVGPathStringBuilder.h" | 8 #include "core/svg/SVGPathStringBuilder.h" |
9 #include "core/svg/SVGPathStringSource.h" | 9 #include "core/svg/SVGPathStringSource.h" |
10 | 10 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 VALID("", ""); | 104 VALID("", ""); |
105 VALID(" ", ""); | 105 VALID(" ", ""); |
106 MALFORMED("x", ""); | 106 MALFORMED("x", ""); |
107 MALFORMED("L1,2", ""); | 107 MALFORMED("L1,2", ""); |
108 VALID("M.1 .2 L.3 .4 .5 .6", "M 0.1 0.2 L 0.3 0.4 L 0.5 0.6"); | 108 VALID("M.1 .2 L.3 .4 .5 .6", "M 0.1 0.2 L 0.3 0.4 L 0.5 0.6"); |
109 | 109 |
110 MALFORMED("M", ""); | 110 MALFORMED("M", ""); |
111 MALFORMED("M\0", ""); | 111 MALFORMED("M\0", ""); |
112 | 112 |
113 MALFORMED("M1,1Z0", "M 1 1 Z"); | 113 MALFORMED("M1,1Z0", "M 1 1 Z"); |
| 114 MALFORMED("M1,1z0", "M 1 1 Z"); |
| 115 |
| 116 VALID("M1,1h2,3", "M 1 1 h 2 h 3"); |
| 117 VALID("M1,1H2,3", "M 1 1 H 2 H 3"); |
| 118 VALID("M1,1v2,3", "M 1 1 v 2 v 3"); |
| 119 VALID("M1,1V2,3", "M 1 1 V 2 V 3"); |
| 120 |
| 121 MALFORMED("M1,1c2,3 4,5 6,7 8", "M 1 1 c 2 3 4 5 6 7"); |
| 122 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 1
2 13"); |
| 123 MALFORMED("M1,1C2,3 4,5 6,7 8", "M 1 1 C 2 3 4 5 6 7"); |
| 124 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 1
2 13"); |
| 125 MALFORMED("M1,1s2,3 4,5 6", "M 1 1 s 2 3 4 5"); |
| 126 VALID("M1,1s2,3 4,5 6,7 8,9", "M 1 1 s 2 3 4 5 s 6 7 8 9"); |
| 127 MALFORMED("M1,1S2,3 4,5 6", "M 1 1 S 2 3 4 5"); |
| 128 VALID("M1,1S2,3 4,5 6,7 8,9", "M 1 1 S 2 3 4 5 S 6 7 8 9"); |
| 129 MALFORMED("M1,1q2,3 4,5 6", "M 1 1 q 2 3 4 5"); |
| 130 VALID("M1,1q2,3 4,5 6,7 8,9", "M 1 1 q 2 3 4 5 q 6 7 8 9"); |
| 131 MALFORMED("M1,1Q2,3 4,5 6", "M 1 1 Q 2 3 4 5"); |
| 132 VALID("M1,1Q2,3 4,5 6,7 8,9", "M 1 1 Q 2 3 4 5 Q 6 7 8 9"); |
| 133 MALFORMED("M1,1t2,3 4", "M 1 1 t 2 3"); |
| 134 VALID("M1,1t2,3 4,5", "M 1 1 t 2 3 t 4 5"); |
| 135 MALFORMED("M1,1T2,3 4", "M 1 1 T 2 3"); |
| 136 VALID("M1,1T2,3 4,5", "M 1 1 T 2 3 T 4 5"); |
| 137 MALFORMED("M1,1a2,3,4,0,0,5,6 7", "M 1 1 a 2 3 4 0 0 5 6"); |
| 138 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"); |
| 139 MALFORMED("M1,1A2,3,4,0,0,5,6 7", "M 1 1 A 2 3 4 0 0 5 6"); |
| 140 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"); |
114 } | 141 } |
115 | 142 |
116 #undef MALFORMED | 143 #undef MALFORMED |
117 #undef VALID | 144 #undef VALID |
118 | 145 |
119 } | 146 } |
120 | 147 |
121 } // namespace blink | 148 } // namespace blink |
OLD | NEW |