summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvisvgm/dvisvgm-src/tests/TpicSpecialTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/tests/TpicSpecialTest.cpp')
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-src/tests/TpicSpecialTest.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/tests/TpicSpecialTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-src/tests/TpicSpecialTest.cpp
index 7b72d9ac859..0f4d6546d63 100644
--- a/Build/source/texk/dvisvgm/dvisvgm-src/tests/TpicSpecialTest.cpp
+++ b/Build/source/texk/dvisvgm/dvisvgm-src/tests/TpicSpecialTest.cpp
@@ -155,7 +155,7 @@ TEST_F(TpicSpecialTest, stroke_polyline) {
handler.processSpecial("pa", "1000 0");
handler.processSpecial("fp");
EXPECT_EQ(recorder.getXMLSnippet(),
- "<polyline fill='none' points='0,0 72,72 72,0' stroke='#000000' stroke-linecap='round' stroke-width='1'/>"
+ "<polyline fill='none' stroke-linecap='round' points='0,0 72,72 72,0' stroke='#000' stroke-width='1'/>"
);
EXPECT_DOUBLE_EQ(handler.penwidth(), 1.0);
EXPECT_LT(handler.grayLevel(), 0);
@@ -170,7 +170,7 @@ TEST_F(TpicSpecialTest, stroke_polygon) {
handler.processSpecial("pa", "0 0");
handler.processSpecial("fp");
EXPECT_EQ(recorder.getXMLSnippet(),
- "<polygon fill='none' points='0,0 72,72 72,0' stroke='#000000' stroke-width='1'/>"
+ "<polygon fill='none' points='0,0 72,72 72,0' stroke='#000' stroke-width='1'/>"
);
EXPECT_DOUBLE_EQ(handler.penwidth(), 1.0);
EXPECT_LT(handler.grayLevel(), 0);
@@ -185,7 +185,7 @@ TEST_F(TpicSpecialTest, fill_polygon) {
handler.processSpecial("wh");
handler.processSpecial("fp");
EXPECT_EQ(recorder.getXMLSnippet(),
- "<polygon fill='#ffffff' points='0,0 72,72 72,0' stroke='#000000' stroke-width='1'/>"
+ "<polygon fill='#fff' points='0,0 72,72 72,0' stroke='#000' stroke-width='1'/>"
);
EXPECT_DOUBLE_EQ(handler.penwidth(), 1.0);
EXPECT_LT(handler.grayLevel(), 0);
@@ -197,7 +197,7 @@ TEST_F(TpicSpecialTest, fill_polygon) {
handler.processSpecial("wh");
handler.processSpecial("ip");
EXPECT_EQ(recorder.getXMLSnippet(),
- "<polygon fill='#ffffff' points='0,0 72,72 72,0'/>"
+ "<polygon fill='#fff' points='0,0 72,72 72,0'/>"
);
EXPECT_DOUBLE_EQ(handler.penwidth(), 1.0);
EXPECT_LT(handler.grayLevel(), 0);
@@ -212,7 +212,7 @@ TEST_F(TpicSpecialTest, fill_dashed_polygon) {
handler.processSpecial("wh");
handler.processSpecial("da", "2");
EXPECT_EQ(recorder.getXMLSnippet(),
- "<polygon fill='#ffffff' points='0,0 72,72 72,0' stroke='#000000' stroke-dasharray='144' stroke-width='1'/>"
+ "<polygon fill='#fff' points='0,0 72,72 72,0' stroke='#000' stroke-width='1' stroke-dasharray='144'/>"
);
EXPECT_DOUBLE_EQ(handler.penwidth(), 1.0);
EXPECT_LT(handler.grayLevel(), 0);
@@ -228,7 +228,7 @@ TEST_F(TpicSpecialTest, fill_dotted_polygon) {
handler.processSpecial("wh");
handler.processSpecial("dt", "2 2");
EXPECT_EQ(recorder.getXMLSnippet(),
- "<polygon fill='#ffffff' points='0,0 72,72 72,0' stroke='#000000' stroke-dasharray='36 144' stroke-width='36'/>"
+ "<polygon fill='#fff' points='0,0 72,72 72,0' stroke='#000' stroke-width='36' stroke-dasharray='36 144'/>"
);
EXPECT_DOUBLE_EQ(handler.penwidth(), 1.0);
EXPECT_LT(handler.grayLevel(), 0);
@@ -240,7 +240,7 @@ TEST_F(TpicSpecialTest, stroke_spline) {
handler.processSpecial("pa", "1000 1000");
handler.processSpecial("sp");
EXPECT_EQ(recorder.getXMLSnippet(),
- "<polyline fill='none' points='0,0 72,72' stroke='#000000' stroke-linecap='round' stroke-width='1'/>"
+ "<polyline fill='none' stroke-linecap='round' points='0,0 72,72' stroke='#000' stroke-width='1'/>"
);
recorder.clear();
handler.processSpecial("pa", "0 0");
@@ -251,7 +251,7 @@ TEST_F(TpicSpecialTest, stroke_spline) {
handler.processSpecial("pa", "1000 500");
handler.processSpecial("sp");
EXPECT_EQ(recorder.getXMLSnippet(),
- "<path d='M0 0L36 36Q72 72 90 54Q108 36 126 54T180 108Q216 144 144 90L72 36' fill='none' stroke='#000000' stroke-width='1'/>"
+ "<path fill='none' d='M0 0L36 36Q72 72 90 54Q108 36 126 54T180 108Q216 144 144 90L72 36' stroke='#000' stroke-width='1'/>"
);
EXPECT_DOUBLE_EQ(handler.penwidth(), 1.0);
EXPECT_LT(handler.grayLevel(), 0);
@@ -267,7 +267,7 @@ TEST_F(TpicSpecialTest, stroke_dashed_spline) {
handler.processSpecial("pa", "0 0");
handler.processSpecial("sp", "1");
EXPECT_EQ(recorder.getXMLSnippet(),
- "<path d='M0 0L36 36Q72 72 90 54Q108 36 126 54T180 108Q216 144 108 72Z' fill='none' stroke='#000000' stroke-dasharray='72' stroke-width='1'/>"
+ "<path fill='none' d='M0 0L36 36Q72 72 90 54Q108 36 126 54T180 108Q216 144 108 72Z' stroke='#000' stroke-width='1' stroke-dasharray='72'/>"
);
EXPECT_DOUBLE_EQ(handler.penwidth(), 1.0);
EXPECT_LT(handler.grayLevel(), 0);
@@ -283,7 +283,7 @@ TEST_F(TpicSpecialTest, stroke_dotted_spline) {
handler.processSpecial("pa", "1000 500");
handler.processSpecial("sp", "-1");
EXPECT_EQ(recorder.getXMLSnippet(),
- "<path d='M0 0L36 36Q72 72 90 54Q108 36 126 54T180 108Q216 144 144 90L72 36' fill='none' stroke='#000000' stroke-dasharray='1 72' stroke-width='1'/>"
+ "<path fill='none' d='M0 0L36 36Q72 72 90 54Q108 36 126 54T180 108Q216 144 144 90L72 36' stroke='#000' stroke-width='1' stroke-dasharray='1 72'/>"
);
EXPECT_DOUBLE_EQ(handler.penwidth(), 1.0);
EXPECT_LT(handler.grayLevel(), 0);
@@ -293,18 +293,18 @@ TEST_F(TpicSpecialTest, stroke_dotted_spline) {
TEST_F(TpicSpecialTest, stroke_ellipse) {
handler.processSpecial("ar", "0 0 500 500 0 7");
EXPECT_EQ(recorder.getXMLSnippet(),
- "<circle cx='0' cy='0' fill='none' r='36' stroke='#000000' stroke-width='1'/>"
+ "<circle cx='0' cy='0' r='36' stroke-width='1' stroke='#000' fill='none'/>"
);
recorder.clear();
handler.processSpecial("ar", "0 0 1000 500 0 7");
EXPECT_EQ(recorder.getXMLSnippet(),
- "<ellipse cx='0' cy='0' fill='none' rx='72' ry='36' stroke='#000000' stroke-width='1'/>"
+ "<ellipse cx='0' cy='0' rx='72' ry='36' stroke-width='1' stroke='#000' fill='none'/>"
);
recorder.clear();
handler.processSpecial("pn", "100");
handler.processSpecial("ar", "0 0 1000 500 -1 -8");
EXPECT_EQ(recorder.getXMLSnippet(),
- "<ellipse cx='0' cy='0' fill='none' rx='72' ry='36' stroke='#000000' stroke-width='7.2'/>"
+ "<ellipse cx='0' cy='0' rx='72' ry='36' stroke-width='7.2' stroke='#000' fill='none'/>"
);
}
@@ -313,20 +313,20 @@ TEST_F(TpicSpecialTest, fill_ellipse) {
handler.processSpecial("bk");
handler.processSpecial("ia", "0 0 500 500 0 7");
EXPECT_EQ(recorder.getXMLSnippet(),
- "<circle cx='0' cy='0' fill='#000000' r='36'/>"
+ "<circle cx='0' cy='0' r='36' fill='#000'/>"
);
recorder.clear();
handler.processSpecial("bk");
handler.processSpecial("ia", "0 0 1000 500 0 7");
EXPECT_EQ(recorder.getXMLSnippet(),
- "<ellipse cx='0' cy='0' fill='#000000' rx='72' ry='36'/>"
+ "<ellipse cx='0' cy='0' rx='72' ry='36' fill='#000'/>"
);
recorder.clear();
handler.processSpecial("pn", "100");
handler.processSpecial("wh");
handler.processSpecial("ia", "0 0 1000 500 -1 -8");
EXPECT_EQ(recorder.getXMLSnippet(),
- "<ellipse cx='0' cy='0' fill='#ffffff' rx='72' ry='36'/>"
+ "<ellipse cx='0' cy='0' rx='72' ry='36' fill='#fff'/>"
);
}
@@ -334,37 +334,37 @@ TEST_F(TpicSpecialTest, fill_ellipse) {
TEST_F(TpicSpecialTest, stroke_arc) {
handler.processSpecial("ar", "0 0 1000 500 0 "+to_string(math::PI/4));
EXPECT_EQ(recorder.getXMLSnippet(),
- "<path d='M72 0A72 36 0 0 1 50.91 25.46' fill='none' stroke='#000000' stroke-linecap='round' stroke-width='1'/>"
+ "<path d='M72 0A72 36 0 0 1 50.91 25.46' stroke-width='1' stroke='#000' stroke-linecap='round' fill='none'/>"
);
recorder.clear();
handler.processSpecial("ar", "0 0 1000 500 0 "+to_string(math::PI/2));
EXPECT_EQ(recorder.getXMLSnippet(),
- "<path d='M72 0A72 36 0 0 1 0 36' fill='none' stroke='#000000' stroke-linecap='round' stroke-width='1'/>"
+ "<path d='M72 0A72 36 0 0 1 0 36' stroke-width='1' stroke='#000' stroke-linecap='round' fill='none'/>"
);
recorder.clear();
handler.processSpecial("ar", "0 0 1000 500 0 "+to_string(3*math::PI/4));
EXPECT_EQ(recorder.getXMLSnippet(),
- "<path d='M72 0A72 36 0 0 1 -50.91 25.46' fill='none' stroke='#000000' stroke-linecap='round' stroke-width='1'/>"
+ "<path d='M72 0A72 36 0 0 1 -50.91 25.46' stroke-width='1' stroke='#000' stroke-linecap='round' fill='none'/>"
);
recorder.clear();
handler.processSpecial("ar", "0 0 1000 500 0 "+to_string(math::PI));
EXPECT_EQ(recorder.getXMLSnippet(),
- "<path d='M72 0A72 36 0 1 1 -72 0' fill='none' stroke='#000000' stroke-linecap='round' stroke-width='1'/>"
+ "<path d='M72 0A72 36 0 1 1 -72 0' stroke-width='1' stroke='#000' stroke-linecap='round' fill='none'/>"
);
recorder.clear();
handler.processSpecial("ar", "0 0 1000 500 0 "+to_string(5*math::PI/4));
EXPECT_EQ(recorder.getXMLSnippet(),
- "<path d='M72 0A72 36 0 1 1 -50.91 -25.46' fill='none' stroke='#000000' stroke-linecap='round' stroke-width='1'/>"
+ "<path d='M72 0A72 36 0 1 1 -50.91 -25.46' stroke-width='1' stroke='#000' stroke-linecap='round' fill='none'/>"
);
recorder.clear();
handler.processSpecial("ar", "0 0 1000 500 0 "+to_string(3*math::PI/2));
EXPECT_EQ(recorder.getXMLSnippet(),
- "<path d='M72 0A72 36 0 1 1 0 -36' fill='none' stroke='#000000' stroke-linecap='round' stroke-width='1'/>"
+ "<path d='M72 0A72 36 0 1 1 0 -36' stroke-width='1' stroke='#000' stroke-linecap='round' fill='none'/>"
);
recorder.clear();
handler.processSpecial("ar", "0 0 1000 500 0 "+to_string(-3*math::PI/2));
EXPECT_EQ(recorder.getXMLSnippet(),
- "<path d='M72 0A72 36 0 0 1 0 36' fill='none' stroke='#000000' stroke-linecap='round' stroke-width='1'/>"
+ "<path d='M72 0A72 36 0 0 1 0 36' stroke-width='1' stroke='#000' stroke-linecap='round' fill='none'/>"
);
}