diff options
Diffstat (limited to 'editeng/qa/items')
-rw-r--r-- | editeng/qa/items/borderline_test.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/editeng/qa/items/borderline_test.cxx b/editeng/qa/items/borderline_test.cxx index 519d916fe57b..80a840c72389 100644 --- a/editeng/qa/items/borderline_test.cxx +++ b/editeng/qa/items/borderline_test.cxx @@ -48,6 +48,25 @@ using namespace editeng; +CPPUNIT_NS_BEGIN + +template<> struct assertion_traits<SvxBorderStyle> +{ + static bool equal( const SvxBorderStyle& x, const SvxBorderStyle& y ) + { + return x == y; + } + + static std::string toString( const SvxBorderStyle& x ) + { + OStringStream ost; + ost << static_cast<unsigned int>(x); + return ost.str(); + } +}; + +CPPUNIT_NS_END + namespace { class BorderLineTest : public CppUnit::TestFixture |