summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJonathon Jongsma <jonathon.jongsma@collabora.co.uk>2008-09-10 22:57:30 -0500
committerJonathon Jongsma <jonathon.jongsma@collabora.co.uk>2008-09-10 22:57:30 -0500
commit2597d38d1cec6ccbaa9e00835b990753389ffaa3 (patch)
treef75f5200f6151870c74e8f2a90d0115b8973e61b /tests
parentc8592727d0c28d3d748717d0ce9dc30668da440f (diff)
Add PsSurface::get_eps()
Diffstat (limited to 'tests')
-rw-r--r--tests/test-surface.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test-surface.cc b/tests/test-surface.cc
index d0ef456..865d212 100644
--- a/tests/test-surface.cc
+++ b/tests/test-surface.cc
@@ -82,6 +82,17 @@ void test_create_from_png()
BOOST_CHECK(c_test_read_func_called > 0);
}
+void test_ps_eps()
+{
+ RefPtr<PsSurface> ps = PsSurface::create("test.ps", 1, 1);
+ // check the initial value
+ bool result = ps->get_eps();
+ // set it to the opposite value
+ ps->set_eps(!result);
+ // verify
+ BOOST_CHECK_EQUAL(ps->get_eps(), !result);
+}
+
test_suite*
init_unit_test_suite(int argc, char* argv[])
@@ -96,6 +107,7 @@ init_unit_test_suite(int argc, char* argv[])
test->add (BOOST_TEST_CASE (&test_ps_constructor_slot));
test->add (BOOST_TEST_CASE (&test_svg_constructor_slot));
test->add (BOOST_TEST_CASE (&test_create_from_png));
+ test->add (BOOST_TEST_CASE (&test_ps_eps));
return test;
}