summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/tests
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-02-24 03:00:45 +0000
committerNorbert Preining <norbert@preining.info>2022-02-24 03:00:45 +0000
commitdc88afec77f198ebb8774f9c87146f2985e8f156 (patch)
treec2ffe8156173930a3f167b2cdeeb4fc1cd66a6b3 /dviware/dvisvgm/tests
parentd529109bf475e3f1e220ce0e980e104b1a7e3c6b (diff)
CTAN sync 202202240300
Diffstat (limited to 'dviware/dvisvgm/tests')
-rw-r--r--dviware/dvisvgm/tests/BoundingBoxTest.cpp2
-rw-r--r--dviware/dvisvgm/tests/DvisvgmSpecialTest.cpp4
-rw-r--r--dviware/dvisvgm/tests/EmSpecialTest.cpp2
-rw-r--r--dviware/dvisvgm/tests/PapersizeSpecialTest.cpp2
4 files changed, 5 insertions, 5 deletions
diff --git a/dviware/dvisvgm/tests/BoundingBoxTest.cpp b/dviware/dvisvgm/tests/BoundingBoxTest.cpp
index 3d882679cf..3810983958 100644
--- a/dviware/dvisvgm/tests/BoundingBoxTest.cpp
+++ b/dviware/dvisvgm/tests/BoundingBoxTest.cpp
@@ -182,7 +182,7 @@ TEST(BoundingBoxTest, transform) {
TEST(BoundingBoxTest, svgViewBox) {
BoundingBox bbox(4, 5, 6, 7);
ostringstream oss;
- oss << bbox.toSVGViewBox();
+ oss << bbox.svgViewBoxString();
EXPECT_EQ(oss.str(), "4 5 2 2");
}
diff --git a/dviware/dvisvgm/tests/DvisvgmSpecialTest.cpp b/dviware/dvisvgm/tests/DvisvgmSpecialTest.cpp
index ba3c1fe739..ebd2020b82 100644
--- a/dviware/dvisvgm/tests/DvisvgmSpecialTest.cpp
+++ b/dviware/dvisvgm/tests/DvisvgmSpecialTest.cpp
@@ -47,8 +47,8 @@ class DvisvgmSpecialTest : public ::testing::Test {
double getY () const override {return 14;}
bool defsEquals (const string &str) const {return defsString() == str;}
bool pageEquals (const string &str) const {return pageString() == str;}
- bool bboxEquals (const string &str) const {return bbox.toSVGViewBox() == str;}
- string bboxString () const {return bbox.toSVGViewBox();}
+ bool bboxEquals (const string &str) const {return bbox.svgViewBoxString() == str;}
+ string bboxString () const {return bbox.svgViewBoxString();}
string defsString () const {return toString(svgTree().defsNode());}
string pageString () const {return toString(svgTree().pageNode());}
diff --git a/dviware/dvisvgm/tests/EmSpecialTest.cpp b/dviware/dvisvgm/tests/EmSpecialTest.cpp
index 57ed593ce8..60aef9ba2a 100644
--- a/dviware/dvisvgm/tests/EmSpecialTest.cpp
+++ b/dviware/dvisvgm/tests/EmSpecialTest.cpp
@@ -52,7 +52,7 @@ class EmSpecialTest : public ::testing::Test {
/* void write (ostream &os) const {
os << "page: " << page << '\n'
- << "bbox: " << bbox.toSVGViewBox() << '\n';
+ << "bbox: " << bbox.svgViewBoxString() << '\n';
} */
private:
diff --git a/dviware/dvisvgm/tests/PapersizeSpecialTest.cpp b/dviware/dvisvgm/tests/PapersizeSpecialTest.cpp
index fae2cfcc5e..536f6ff0a8 100644
--- a/dviware/dvisvgm/tests/PapersizeSpecialTest.cpp
+++ b/dviware/dvisvgm/tests/PapersizeSpecialTest.cpp
@@ -53,7 +53,7 @@ class PapersizeSpecialTest : public ::testing::Test {
}
string bboxString () {
- return actions.bbox().toSVGViewBox();
+ return actions.bbox().svgViewBoxString();
}
void preprocess (const string &str) {