Show
Ignore:
Timestamp:
04/11/06 10:13:29 (3 years ago)
Author:
jordi
Message:

At last, I have the first presenter's test. At the previous commit I forgot to add the MainPter?.cxx and header filers. Are now included in this commit.

The first check just test that the initial state of the main window is what we expect (i.e., no document yet => all unsensitived).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/MainPterTest.cxx

    r21 r23  
    3232MainPterTest::setUp () 
    3333{ 
    34 /*    m_Document = new DumbDocument (); 
     34    m_Document = new DumbDocument (); 
    3535    m_MainPter = new MainPter (m_Document); 
    3636    m_View = new DumbMainView (m_MainPter); 
    37     m_MainPter->setView (m_View);*/ 
     37    m_MainPter->setView (m_View); 
    3838} 
    3939 
     
    6060MainPterTest::initialStatus () 
    6161{ 
    62 /*    CPPUNIT_ASSERT ( m_View->isShown () ); 
     62    CPPUNIT_ASSERT ( m_View->isShown () ); 
    6363    CPPUNIT_ASSERT_EQUAL (0,  
    6464            g_ascii_strcasecmp ("PDF Viewer", m_View->getTitle ())); 
     
    7272    CPPUNIT_ASSERT (!m_View->isSensitiveZoomFit ()); 
    7373    CPPUNIT_ASSERT (!m_View->isSensitiveZoomWidth ()); 
    74     CPPUNIT_ASSERT (!m_View->hasImagePageView ()); */ 
     74    CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 
    7575}