showShape();
TestViewer::viewWindow()->onTopView();
- OCCViewer_ViewWindow* aMain = TestViewer::viewWindow()->getView( OCCViewer_ViewFrame::MAIN_VIEW );
- OCCViewer_ViewPort3d* vp = aMain->getViewPort();
-
// 1. selection in main view
QTest::mouseMove( TestViewer::viewWindow() );
CPPUNIT_ASSERT_OVERVIEW( "overview_selection" );
+ OCCViewer_ViewWindow* aMain = TestViewer::viewWindow()->getView( OCCViewer_ViewFrame::MAIN_VIEW );
+ OCCViewer_ViewPort3d* vp = aMain->getViewPort();
+
// 2. mouse wheel zoom
QWheelEvent we( QPoint( 243, 416 ), 120*20, Qt::NoButton, Qt::NoModifier );
qApp->sendEvent( vp, &we );
myOverview->setMainView( TestViewer::viewWindow() );
qApp->processEvents();
- CPPUNIT_ASSERT_OVERVIEW( "overview_selection" );
+ CPPUNIT_ASSERT_OVERVIEW( "overview_selection_a" );
}
void test_Overview::test_actions_in_overview()
{
- //TODO
+ create();
+ showShape();
+ TestViewer::viewWindow()->onTopView();
+
+ OCCViewer_ViewWindow* aMain = TestViewer::viewWindow()->getView( OCCViewer_ViewFrame::MAIN_VIEW );
+ OCCViewer_ViewPort3d* vp = aMain->getViewPort();
+
+ QWheelEvent we( QPoint( 243, 416 ), 120*20, Qt::NoButton, Qt::NoModifier );
+ qApp->sendEvent( vp, &we );
+ qApp->processEvents();
+ CPPUNIT_ASSERT_OVERVIEW( "overview_zoomed_1" );
+
+ QTest::qWait( 50000 );
}