diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2014-11-28 17:43:57 +0900 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-28 12:10:13 +0000 |
commit | e2c7b93744e61f3a7a9a04056a95894c9e888db8 (patch) | |
tree | 62494f295db2c06a2f68ab3e40567e31aa0ac8b5 /starmath/source/visitors.cxx | |
parent | 086e03af05fcef4506f913b6c5419908a3493c57 (diff) |
recycle SmVisitorTest for unit test
i.e. move unused SmVisitorTest to qa/ as MockVisitor, and
call it in existing test cases.
Change-Id: I20dc45537f7a0e325e952724607e695f3b3da21f
Reviewed-on: https://gerrit.libreoffice.org/13165
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath/source/visitors.cxx')
-rw-r--r-- | starmath/source/visitors.cxx | 183 |
1 files changed, 0 insertions, 183 deletions
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx index 60f6127b8a0f..5105079790e8 100644 --- a/starmath/source/visitors.cxx +++ b/starmath/source/visitors.cxx @@ -13,189 +13,6 @@ #include "tmpdevice.hxx" #include "cursor.hxx" -// SmVisitorTest - -void SmVisitorTest::Visit( SmTableNode* pNode ) -{ - assert( pNode->GetType( ) == NTABLE ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmBraceNode* pNode ) -{ - assert( pNode->GetType( ) == NBRACE ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmBracebodyNode* pNode ) -{ - assert( pNode->GetType( ) == NBRACEBODY ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmOperNode* pNode ) -{ - assert( pNode->GetType( ) == NOPER ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmAlignNode* pNode ) -{ - assert( pNode->GetType( ) == NALIGN ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmAttributNode* pNode ) -{ - assert( pNode->GetType( ) == NATTRIBUT ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmFontNode* pNode ) -{ - assert( pNode->GetType( ) == NFONT ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmUnHorNode* pNode ) -{ - assert( pNode->GetType( ) == NUNHOR ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmBinHorNode* pNode ) -{ - assert( pNode->GetType( ) == NBINHOR ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmBinVerNode* pNode ) -{ - assert( pNode->GetType( ) == NBINVER ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmBinDiagonalNode* pNode ) -{ - assert( pNode->GetType( ) == NBINDIAGONAL ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmSubSupNode* pNode ) -{ - assert( pNode->GetType( ) == NSUBSUP ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmMatrixNode* pNode ) -{ - assert( pNode->GetType( ) == NMATRIX ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmPlaceNode* pNode ) -{ - assert( pNode->GetType( ) == NPLACE ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmTextNode* pNode ) -{ - assert( pNode->GetType( ) == NTEXT ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmSpecialNode* pNode ) -{ - assert( pNode->GetType( ) == NSPECIAL ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmGlyphSpecialNode* pNode ) -{ - assert( pNode->GetType( ) == NGLYPH_SPECIAL ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmMathSymbolNode* pNode ) -{ - assert( pNode->GetType( ) == NMATH || pNode->GetType( ) == NMATHIDENT ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmBlankNode* pNode ) -{ - assert( pNode->GetType( ) == NBLANK ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmErrorNode* pNode ) -{ - assert( pNode->GetType( ) == NERROR ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmLineNode* pNode ) -{ - assert( pNode->GetType( ) == NLINE ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmExpressionNode* pNode ) -{ - assert( pNode->GetType( ) == NEXPRESSION ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmPolyLineNode* pNode ) -{ - assert( pNode->GetType( ) == NPOLYLINE ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmRootNode* pNode ) -{ - assert( pNode->GetType( ) == NROOT ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmRootSymbolNode* pNode ) -{ - assert( pNode->GetType( ) == NROOTSYMBOL ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmDynIntegralNode* pNode ) -{ - assert( pNode->GetType( ) == NDYNINT ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmDynIntegralSymbolNode* pNode ) -{ - assert( pNode->GetType( ) == NDYNINTSYMBOL ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmRectangleNode* pNode ) -{ - assert( pNode->GetType( ) == NRECTANGLE ); - VisitChildren( pNode ); -} - -void SmVisitorTest::Visit( SmVerticalBraceNode* pNode ) -{ - assert( pNode->GetType( ) == NVERTICAL_BRACE ); - VisitChildren( pNode ); -} - -void SmVisitorTest::VisitChildren( SmNode* pNode ) -{ - SmNodeIterator it( pNode ); - while( it.Next( ) ) - it->Accept( this ); -} - // SmDefaultingVisitor void SmDefaultingVisitor::Visit( SmTableNode* pNode ) |