diff options
author | Jonathon Jongsma <jonathon.jongsma@collabora.co.uk> | 2008-09-10 22:57:30 -0500 |
---|---|---|
committer | Jonathon Jongsma <jonathon.jongsma@collabora.co.uk> | 2008-09-10 22:57:30 -0500 |
commit | 2597d38d1cec6ccbaa9e00835b990753389ffaa3 (patch) | |
tree | f75f5200f6151870c74e8f2a90d0115b8973e61b /tests | |
parent | c8592727d0c28d3d748717d0ce9dc30668da440f (diff) |
Add PsSurface::get_eps()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-surface.cc | 12 |
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; } |