@@ -55,7 +55,7 @@ public virtual void TestRectClipPathRenderer() {
55
55
rectRenderer . SetAttribute ( SvgConstants . Attributes . HEIGHT , "400" ) ;
56
56
clipRenderer . AddChild ( rectRenderer ) ;
57
57
clipRenderer . Draw ( sdc ) ;
58
- NUnit . Framework . Assert . AreEqual ( "q\n % rect\n 0 0 300 300 re\n h \ n W\n n\n Q\n " , iText . IO . Util . JavaUtil . GetStringForBytes
58
+ NUnit . Framework . Assert . AreEqual ( "q\n % rect\n 0 0 300 300 re\n W\n n\n Q\n " , iText . IO . Util . JavaUtil . GetStringForBytes
59
59
( cv . GetContentStream ( ) . GetBytes ( ) ) ) ;
60
60
}
61
61
@@ -69,7 +69,7 @@ public virtual void TestRectClipPathEoRendererNoChange() {
69
69
rectRenderer . SetAttribute ( SvgConstants . Attributes . HEIGHT , "400" ) ;
70
70
clipRenderer . AddChild ( rectRenderer ) ;
71
71
clipRenderer . Draw ( sdc ) ;
72
- NUnit . Framework . Assert . AreEqual ( "q\n % rect\n 0 0 300 300 re\n h \ n W\n n\n Q\n " , iText . IO . Util . JavaUtil . GetStringForBytes
72
+ NUnit . Framework . Assert . AreEqual ( "q\n % rect\n 0 0 300 300 re\n W\n n\n Q\n " , iText . IO . Util . JavaUtil . GetStringForBytes
73
73
( cv . GetContentStream ( ) . GetBytes ( ) ) ) ;
74
74
}
75
75
@@ -83,7 +83,7 @@ public virtual void TestRectEoClipPathRenderer() {
83
83
rectRenderer . SetAttribute ( SvgConstants . Attributes . CLIP_RULE , SvgConstants . Values . FILL_RULE_EVEN_ODD ) ;
84
84
clipRenderer . AddChild ( rectRenderer ) ;
85
85
clipRenderer . Draw ( sdc ) ;
86
- NUnit . Framework . Assert . AreEqual ( "q\n % rect\n 0 0 300 300 re\n h \ n W*\n n\n Q\n " , iText . IO . Util . JavaUtil . GetStringForBytes
86
+ NUnit . Framework . Assert . AreEqual ( "q\n % rect\n 0 0 300 300 re\n W*\n n\n Q\n " , iText . IO . Util . JavaUtil . GetStringForBytes
87
87
( cv . GetContentStream ( ) . GetBytes ( ) ) ) ;
88
88
}
89
89
@@ -100,9 +100,9 @@ public virtual void TestAppliedClipPathRenderer() {
100
100
drawnRenderer . SetAttribute ( SvgConstants . Attributes . R , "84" ) ;
101
101
drawnRenderer . SetAttribute ( SvgConstants . Attributes . CLIP_PATH , "url(#randomString)" ) ;
102
102
drawnRenderer . Draw ( sdc ) ;
103
- String expected = "q\n " + "% rect\n " + "0 0 60 60 re\n " + "h \n " + " W\n " + "n\n " + "0 0 0 rg\n " + "% ellipse\n "
104
- + "63 0 m \n " + "63 34.79 34.79 63 0 63 c\n " + "-34.79 63 -63 34.79 -63 0 c\n " + "-63 -34.79 -34.79 -63 0 -63 c\n "
105
- + "34.79 -63 63 -34.79 63 0 c\n " + "f\n " + "h\n " + "Q\n " ;
103
+ String expected = "q\n " + "% rect\n " + "0 0 60 60 re\n " + "W\n " + "n\n " + "0 0 0 rg\n " + "% ellipse\n " + "63 0 m \n "
104
+ + "63 34.79 34.79 63 0 63 c\n " + "-34.79 63 -63 34.79 -63 0 c\n " + "-63 -34.79 -34.79 -63 0 -63 c\n "
105
+ + "34.79 -63 63 -34.79 63 0 c\n " + "f\n " + "h\n " + "Q\n " ;
106
106
NUnit . Framework . Assert . AreEqual ( expected , iText . IO . Util . JavaUtil . GetStringForBytes ( cv . GetContentStream ( ) . GetBytes
107
107
( ) ) ) ;
108
108
}
@@ -123,9 +123,9 @@ public virtual void TestAppliedGroupClipPathRenderer() {
123
123
drawnRenderer . SetAttribute ( SvgConstants . Attributes . CLIP_PATH , "url(#randomString)" ) ;
124
124
groupRenderer . AddChild ( drawnRenderer ) ;
125
125
groupRenderer . Draw ( sdc ) ;
126
- String expected = "0 0 0 rg\n " + "q\n " + "q\n " + "% rect\n " + "0 0 60 60 re\n " + "h \n " + " W\n " + "n\n " + "% ellipse\n "
126
+ String expected = "0 0 0 rg\n " + "q\n " + "q\n " + "% rect\n " + "0 0 60 60 re\n " + "W\n " + "n\n " + "% ellipse\n "
127
127
+ "63 0 m\n " + "63 34.79 34.79 63 0 63 c\n " + "-34.79 63 -63 34.79 -63 0 c\n " + "-63 -34.79 -34.79 -63 0 -63 c\n "
128
- + "34.79 -63 63 -34.79 63 0 c\n " + "f\n " + "h\n " + "Q\n " + "Q\n " + "f \n " + "h \n " ;
128
+ + "34.79 -63 63 -34.79 63 0 c\n " + "f\n " + "h\n " + "Q\n " + "Q\n " ;
129
129
NUnit . Framework . Assert . AreEqual ( expected , iText . IO . Util . JavaUtil . GetStringForBytes ( cv . GetContentStream ( ) . GetBytes
130
130
( ) ) ) ;
131
131
}
@@ -151,12 +151,11 @@ public virtual void TestEoAppliedGroupClipPathRenderer() {
151
151
drawnRenderer . SetAttribute ( SvgConstants . Attributes . CLIP_PATH , "url(#randomString)" ) ;
152
152
groupRenderer . AddChild ( drawnRenderer ) ;
153
153
groupRenderer . Draw ( sdc ) ;
154
- String expected = "0 0 0 rg\n " + "q\n " + "q\n " + "% rect\n " + "0 0 60 60 re\n " + "h\n " + "W*\n " + "n\n " +
155
- "% ellipse\n " + "63 0 m\n " + "63 34.79 34.79 63 0 63 c\n " + "-34.79 63 -63 34.79 -63 0 c\n " + "-63 -34.79 -34.79 -63 0 -63 c\n "
156
- + "34.79 -63 63 -34.79 63 0 c\n " + "f\n " + "h\n " + "Q\n " + "q\n " + "% rect\n " + "0 0 60 60 re\n " + "h\n "
157
- + "W\n " + "n\n " + "% ellipse\n " + "63 0 m\n " + "63 34.79 34.79 63 0 63 c\n " + "-34.79 63 -63 34.79 -63 0 c\n "
158
- + "-63 -34.79 -34.79 -63 0 -63 c\n " + "34.79 -63 63 -34.79 63 0 c\n " + "f\n " + "h\n " + "Q\n " + "Q\n "
159
- + "f\n " + "h\n " ;
154
+ String expected = "0 0 0 rg\n " + "q\n " + "q\n " + "% rect\n " + "0 0 60 60 re\n " + "W*\n " + "n\n " + "% ellipse\n "
155
+ + "63 0 m\n " + "63 34.79 34.79 63 0 63 c\n " + "-34.79 63 -63 34.79 -63 0 c\n " + "-63 -34.79 -34.79 -63 0 -63 c\n "
156
+ + "34.79 -63 63 -34.79 63 0 c\n " + "f\n " + "h\n " + "Q\n " + "q\n " + "% rect\n " + "0 0 60 60 re\n " + "W\n "
157
+ + "n\n " + "% ellipse\n " + "63 0 m\n " + "63 34.79 34.79 63 0 63 c\n " + "-34.79 63 -63 34.79 -63 0 c\n "
158
+ + "-63 -34.79 -34.79 -63 0 -63 c\n " + "34.79 -63 63 -34.79 63 0 c\n " + "f\n " + "h\n " + "Q\n " + "Q\n " ;
160
159
NUnit . Framework . Assert . AreEqual ( expected , iText . IO . Util . JavaUtil . GetStringForBytes ( cv . GetContentStream ( ) . GetBytes
161
160
( ) ) ) ;
162
161
}
0 commit comments