@@ -21,7 +21,6 @@ You should have received a copy of the GNU Affero General Public License
21
21
along with this program. If not, see <https://www.gnu.org/licenses/>.
22
22
*/
23
23
using System ;
24
- using iText . Svg . Exceptions ;
25
24
using iText . Svg . Processors ;
26
25
using iText . Svg . Processors . Impl ;
27
26
using iText . Svg . Renderers ;
@@ -49,208 +48,152 @@ public virtual void Before() {
49
48
}
50
49
51
50
[ NUnit . Framework . Test ]
52
- // TODO Check cmp after feature implementation. DEVSIX-2257
53
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
54
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
55
51
public virtual void SimpleSymbolTest ( ) {
56
52
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "simpleSymbolTest" ) ;
57
53
}
58
54
59
55
[ NUnit . Framework . Test ]
60
- // TODO Check cmp after feature implementation. DEVSIX-2257
61
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
62
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
63
56
public virtual void UseTagFirstSymbolAfterTest ( ) {
64
57
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "useTagFirstSymbolAfterTest" ) ;
65
58
}
66
59
67
60
[ NUnit . Framework . Test ]
68
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
69
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
70
61
public virtual void HeightPxAttrTest ( ) {
71
- // TODO Check cmp after feature implementation. DEVSIX-2257
72
62
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "heightPxAttrTest" ) ;
73
63
}
74
64
75
65
[ NUnit . Framework . Test ]
76
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
77
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
66
+ [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . UNKNOWN_ABSOLUTE_METRIC_LENGTH_PARSED ) ]
78
67
public virtual void HeightPercentsAttrTest ( ) {
79
- // TODO Check cmp after feature implementation. DEVSIX-2257
68
+ // TODO DEVSIX-4388 The handling of width and height attributes with percentages is not currently supported
80
69
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "heightPercentsAttrTest" ) ;
81
70
}
82
71
83
72
[ NUnit . Framework . Test ]
84
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
85
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
86
73
public virtual void WidthPxAttrTest ( ) {
87
- // TODO Check cmp after feature implementation. DEVSIX-2257
88
74
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "widthPxAttrTest" ) ;
89
75
}
90
76
91
77
[ NUnit . Framework . Test ]
92
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
93
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
78
+ [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . UNKNOWN_ABSOLUTE_METRIC_LENGTH_PARSED ) ]
94
79
public virtual void WidthPercentsAttrTest ( ) {
95
- // TODO Check cmp after feature implementation. DEVSIX-2257
80
+ // TODO DEVSIX-4388 The handling of width and height attributes with percentages is not currently supported
96
81
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "widthPercentsAttrTest" ) ;
97
82
}
98
83
99
84
[ NUnit . Framework . Test ]
100
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
101
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
102
85
public virtual void WidthHeightAttrPxTest ( ) {
103
- // TODO Check cmp after feature implementation. DEVSIX-2257
104
86
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "widthHeightAttrPxTest" ) ;
105
87
}
106
88
107
89
[ NUnit . Framework . Test ]
108
- // TODO Check cmp after feature implementation. DEVSIX-2257
109
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . UNKNOWN_ABSOLUTE_METRIC_LENGTH_PARSED , Count = 4 ) ]
110
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG , Count = 2 ) ]
111
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES , Count = 2 ) ]
90
+ [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . UNKNOWN_ABSOLUTE_METRIC_LENGTH_PARSED , Count = 2 ) ]
112
91
public virtual void WidthHeightAttrPercentsPxTest ( ) {
92
+ // TODO DEVSIX-4388 The handling of width and height attributes with percentages is not currently supported
113
93
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "widthHeightAttrPercentsPxTest" ) ;
114
94
}
115
95
116
96
[ NUnit . Framework . Test ]
117
- // TODO Check cmp after feature implementation. DEVSIX-2257
118
- [ LogMessage ( SvgLogMessageConstant . MISSING_HEIGHT ) ]
119
- [ LogMessage ( SvgLogMessageConstant . MISSING_WIDTH ) ]
120
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG , Count = 3 ) ]
121
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES , Count = 3 ) ]
122
97
public virtual void PreserveAspectRatioViewBoxTest ( ) {
98
+ // TODO DEVSIX-3537 Processing of preserveAspectRatio attribute with offsets x and y is not currently supported
123
99
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "preserveAspectRatioViewBoxTest" ) ;
124
100
}
125
101
126
102
[ NUnit . Framework . Test ]
127
- [ NUnit . Framework . Ignore ( "DEVSIX-2257" ) ]
128
103
public virtual void XYInUseWithDefsTest ( ) {
129
- // TODO Check cmp after feature implementation. DEVSIX-2257
130
104
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "xYInUseWithDefsTest" ) ;
131
105
}
132
106
133
107
[ NUnit . Framework . Test ]
134
- // TODO Check cmp after feature implementation. DEVSIX-2257
135
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
136
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
137
108
public virtual void ClassAttributeTestWithCssTest ( ) {
109
+ // TODO DEVSIX-4563 Processing of attributes from an external CSS is not currently supported
138
110
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "classAttrTest" ) ;
139
111
}
140
112
141
113
[ NUnit . Framework . Test ]
142
- // TODO Check cmp after feature implementation. DEVSIX-2257
143
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
144
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
145
114
public virtual void StyleAttributeTest ( ) {
146
115
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "styleAttrTest" ) ;
147
116
}
148
117
149
118
[ NUnit . Framework . Test ]
150
- // TODO Check cmp after feature implementation. DEVSIX-2257
151
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
152
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
153
119
public virtual void StyleAttrInUseTest ( ) {
154
120
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "styleAttrInUseTest" ) ;
155
121
}
156
122
157
123
[ NUnit . Framework . Test ]
158
- // TODO Check cmp after feature implementation. DEVSIX-2257
159
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
160
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
161
124
public virtual void BothStyleAttributeTest ( ) {
162
125
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "bothStyleAttrTest" ) ;
163
126
}
164
127
165
128
[ NUnit . Framework . Test ]
166
- // TODO Check cmp after feature implementation. DEVSIX-2257
167
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
168
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
169
129
public virtual void OpacityAttributeTest ( ) {
130
+ // TODO DEVSIX-2258 Processing of stroke attribute is not currently correct supported
170
131
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "opacityAttrTest" ) ;
171
132
}
172
133
173
134
[ NUnit . Framework . Test ]
174
- // TODO Check cmp after feature implementation. DEVSIX-2257
175
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
176
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
177
135
public virtual void VisibilityAttributeTest ( ) {
136
+ // TODO DEVSIX-2254 Processing of visibility attribute is not currently supported
178
137
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "visibilityAttrTest" ) ;
179
138
}
180
139
181
140
[ NUnit . Framework . Test ]
182
- // TODO Check cmp after feature implementation. DEVSIX-2257
183
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
184
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
185
141
public virtual void DisplayNoneAttributeTest ( ) {
142
+ // TODO DEVSIX-4564 Processing of display attribute is not currently supported
186
143
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "displayNoneAttrTest" ) ;
187
144
}
188
145
189
146
[ NUnit . Framework . Test ]
190
- // TODO Check cmp after feature implementation. DEVSIX-2257
191
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
192
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
193
147
public virtual void DisplayAttributeWithNoUseTagTest ( ) {
148
+ // TODO DEVSIX-4564 Processing of display attribute is not currently supported
194
149
//Expects that nothing will be displayed on the page as it's done in Chrome browser
195
150
ConvertAndCompare ( SOURCE_FOLDER , DESTINATION_FOLDER , "displayAttrWithNoUseTagTest" ) ;
196
151
}
197
152
198
153
[ NUnit . Framework . Test ]
199
- // TODO Check cmp after feature implementation. DEVSIX-2257
200
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
201
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
202
154
public virtual void SimpleImageTest ( ) {
203
155
ConvertAndCompareSinglePage ( SOURCE_FOLDER , DESTINATION_FOLDER , "simpleImageTest" , properties ) ;
204
156
}
205
157
206
158
[ NUnit . Framework . Test ]
207
- // TODO Check cmp after feature implementation. DEVSIX-2257
208
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
209
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
210
159
public virtual void LinearGradientSymbolTest ( ) {
211
160
ConvertAndCompareSinglePage ( SOURCE_FOLDER , DESTINATION_FOLDER , "linearGradientSymbolTest" , properties ) ;
212
161
}
213
162
214
163
[ NUnit . Framework . Test ]
215
- // TODO Check cmp after feature implementation. DEVSIX-2257
216
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
217
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
218
164
public virtual void UseHeightWidthAllUnitsTest ( ) {
165
+ // TODO DEVSIX-4566 Processing of width&height attributes in use tag are not currently supported
219
166
ConvertAndCompareSinglePage ( SOURCE_FOLDER , DESTINATION_FOLDER , "useHeightWidthAllUnitsTest" , properties ) ;
220
167
}
221
168
222
169
[ NUnit . Framework . Test ]
223
- // TODO Check cmp after feature implementation. DEVSIX-2257
224
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
225
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
170
+ [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . UNKNOWN_ABSOLUTE_METRIC_LENGTH_PARSED ) ]
226
171
public virtual void UseSymbolHeightWidthAllUnitsTest ( ) {
172
+ // TODO DEVSIX-4388 The handling of width and height attributes with percentages is not currently supported
173
+ // TODO DEVSIX-4566 Processing of width&height attributes in use tag are not currently supported
227
174
ConvertAndCompareSinglePage ( SOURCE_FOLDER , DESTINATION_FOLDER , "useSymbolHeightWidthAllUnitsTest" , properties
228
175
) ;
229
176
}
230
177
231
178
[ NUnit . Framework . Test ]
232
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG ) ]
233
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES ) ]
179
+ [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . UNKNOWN_ABSOLUTE_METRIC_LENGTH_PARSED , Count = 3 ) ]
234
180
public virtual void UseSymbolXYContrudictionAllUnitsTest ( ) {
235
- // TODO Check cmp after feature implementation. DEVSIX-2257
181
+ // TODO DEVSIX-4388 The handling of x and y attributes with percentages is not currently supported
236
182
ConvertAndCompareSinglePage ( SOURCE_FOLDER , DESTINATION_FOLDER , "useSymbolXYContrudictionAllUnitsTest" , properties
237
183
) ;
238
184
}
239
185
240
186
[ NUnit . Framework . Test ]
241
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG , Count = 3 ) ]
242
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES , Count = 3 ) ]
187
+ [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . UNKNOWN_ABSOLUTE_METRIC_LENGTH_PARSED , Count = 6 ) ]
243
188
public virtual void UseSymbolCoordinatesContrudictionTest ( ) {
244
- // TODO: check cmp after feature implementation DEVSIX-2257
189
+ // TODO DEVSIX-2654 Percent values are not correctly processed
245
190
ConvertAndCompareSinglePage ( SOURCE_FOLDER , DESTINATION_FOLDER , "useSymbolCoordinatesContrudiction" , properties
246
191
) ;
247
192
}
248
193
249
194
[ NUnit . Framework . Test ]
250
- [ LogMessage ( SvgLogMessageConstant . UNMAPPEDTAG , Count = 5 ) ]
251
- [ LogMessage ( iText . StyledXmlParser . LogMessageConstant . ERROR_RESOLVING_PARENT_STYLES , Count = 5 ) ]
252
195
public virtual void WidthHeightAttrInteractionTest ( ) {
253
- // TODO: check cmp after feature implementation DEVSIX-2257
196
+ // TODO DEVSIX-4566 Processing of width&height attributes in use tag are not currently supported
254
197
ConvertAndCompareSinglePage ( SOURCE_FOLDER , DESTINATION_FOLDER , "widthHeightAttrInteraction" , properties ) ;
255
198
}
256
199
}
0 commit comments