Add some test-dummy MObjects *temporarily* to core tree (Ticket #532)
This commit is contained in:
parent
f6cf3195cf
commit
018801895b
4 changed files with 21 additions and 3 deletions
|
|
@ -28,6 +28,8 @@
|
|||
#include "proc/mobject/session/clip.hpp"
|
||||
#include "proc/mobject/session/effect.hpp"
|
||||
|
||||
#include "proc/mobject/test-dummy-mobject.hpp" /////////////////////////////////////TICKET #532
|
||||
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <stack>
|
||||
|
||||
|
|
@ -285,6 +287,12 @@ namespace session {
|
|||
defineHandling<Clip>();
|
||||
defineHandling<Effect>();
|
||||
/////////////////////////////////////////////////////////////////TICKET #414
|
||||
|
||||
defineHandling<mobject::test::DummyMO >();
|
||||
defineHandling<mobject::test::TestSubMO1 >();
|
||||
defineHandling<mobject::test::TestSubMO2 >();
|
||||
defineHandling<mobject::test::TestSubMO21>();
|
||||
/////////////////////////////////////////////////////////////////TICKET #532
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
@ -295,6 +303,12 @@ namespace session {
|
|||
||qID.type == getResultTypeID<Placement<Clip> >()
|
||||
||qID.type == getResultTypeID<Placement<Effect> >()
|
||||
/////////////////////////////////////////////////////////////////TICKET #414
|
||||
|
||||
||qID.type == getResultTypeID<Placement<mobject::test::DummyMO > >()
|
||||
||qID.type == getResultTypeID<Placement<mobject::test::TestSubMO1 > >()
|
||||
||qID.type == getResultTypeID<Placement<mobject::test::TestSubMO2 > >()
|
||||
||qID.type == getResultTypeID<Placement<mobject::test::TestSubMO21> >()
|
||||
/////////////////////////////////////////////////////////////////TICKET #532
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
** check the basic MObject properties and behaviour, this can be an obstacle.
|
||||
** Thus we create a separate branch in the MObject hierarchy with relaxed
|
||||
** requirements and some dummy/test API functions.
|
||||
**
|
||||
** @todo needed to move this temporarily into the core session tree. ////////////TICKET #532
|
||||
**
|
||||
** @see mobject::session::BuilderTool_test
|
||||
** @see mobject::session::PlacementHierarchy_test
|
||||
|
|
@ -50,6 +50,8 @@ namespace test {
|
|||
* @test accessing the PlacementIndex through the generic query interface,
|
||||
* for discovering scope contents and containing scope.
|
||||
*
|
||||
* @todo change that to use a more realistic test session, based on the actual model types //////////////// TICKET #532
|
||||
*
|
||||
* @see mobject::session::PlacementIndex
|
||||
* @see mobject::session::QueryResolver
|
||||
* @see mobject::session::ContentsQuery
|
||||
|
|
@ -92,7 +94,7 @@ namespace test {
|
|||
|
||||
discover (ContentsQuery<MObject> (resolver,root));
|
||||
|
||||
PlacementMO& elm = *ContentsQuery<TestSubMO1>(resolver,root);
|
||||
PlacementMO& elm = *ContentsQuery<TestSubMO1>(resolver,root); ////////////////////// TICKET #532
|
||||
|
||||
discover (PathQuery<MObject> (resolver,elm));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ namespace test {
|
|||
* a given scope or finding the enclosing scopes. The discovered
|
||||
* elements will be filtered by a runtime type check.
|
||||
*
|
||||
* @todo cover using an additional dynamic filter on the results
|
||||
* @todo change that to use a more realistic test session, based on the actual model types //////////////// TICKET #532
|
||||
*
|
||||
* @see mobject::session::PlacementIndex
|
||||
* @see mobject::session::QueryResolver
|
||||
|
|
@ -67,7 +67,7 @@ namespace test {
|
|||
PlacementMO const& scope = SessionServiceExploreScope::getScopeRoot();
|
||||
|
||||
discover (ScopeQuery<MObject> (resolver,scope, CONTENTS));
|
||||
discover (ScopeQuery<DummyMO> (resolver,scope, CONTENTS));
|
||||
discover (ScopeQuery<DummyMO> (resolver,scope, CONTENTS)); ////////////////////// TICKET #532
|
||||
discover (ScopeQuery<TestSubMO1> (resolver,scope, CONTENTS));
|
||||
discover (ScopeQuery<TestSubMO2> (resolver,scope, CONTENTS));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue