Changeset 55

Show
Ignore:
Timestamp:
04/14/06 05:21:54 (3 years ago)
Author:
jordi
Message:

Removed useless checks.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/MainPterTest.cxx

    r54 r55  
    331331    CPPUNIT_ASSERT (m_View->isSensitiveGoToPreviousPage ()); 
    332332    CPPUNIT_ASSERT (m_View->hasImagePageView ()); 
    333     CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 
    334333    // But going to the previous will change something. 
    335334    m_MainPter->goToPreviousPageActivated (); 
     
    351350    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 
    352351    CPPUNIT_ASSERT (m_View->hasImagePageView ()); 
    353     CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 
    354352    // Check sane behaviour. 
    355353    m_MainPter->goToFirstPageActivated (); 
     
    362360    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 
    363361    CPPUNIT_ASSERT (m_View->hasImagePageView ()); 
    364     CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 
    365362} 
    366363 
     
    393390    CPPUNIT_ASSERT (m_View->isSensitiveGoToPreviousPage ()); 
    394391    CPPUNIT_ASSERT (m_View->hasImagePageView ()); 
    395     CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 
    396392 
    397393    m_View->setGoToPageText ("4 of 4"); 
     
    404400    CPPUNIT_ASSERT (m_View->isSensitiveGoToPreviousPage ()); 
    405401    CPPUNIT_ASSERT (m_View->hasImagePageView ());     
    406     CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 
    407402 
    408403    m_View->setGoToPageText ("1 of 4"); 
     
    415410    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 
    416411    CPPUNIT_ASSERT (m_View->hasImagePageView ()); 
    417     CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 
    418412 
    419413    // Invalid values. 
     
    427421    CPPUNIT_ASSERT (m_View->isSensitiveGoToPreviousPage ()); 
    428422    CPPUNIT_ASSERT (m_View->hasImagePageView ());     
    429     CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 
    430423 
    431424    m_View->setGoToPageText ("0 of 12"); 
     
    438431    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 
    439432    CPPUNIT_ASSERT (m_View->hasImagePageView ());     
    440     CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 
    441433 
    442434    m_MainPter->goToNextPageActivated (); 
     
    450442    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 
    451443    CPPUNIT_ASSERT (m_View->hasImagePageView ()); 
    452     CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 
    453444} 
    454445 
     
    537528    m_MainPter->rotateRightActivated ();  
    538529    CPPUNIT_ASSERT (m_View->hasImagePageView ()); 
    539     CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 
    540530    CPPUNIT_ASSERT_EQUAL (90, m_Document->getRotation ()); 
    541531     
     
    544534    CPPUNIT_ASSERT_DOUBLES_EQUAL (0.3f, m_Document->getZoom (), 0.0001f); 
    545535    CPPUNIT_ASSERT (m_View->hasImagePageView ()); 
    546     CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 
    547536    // For the width it should be 75/250 = 0.3 also. 
    548537    m_MainPter->zoomWidthActivated (); 
    549538    CPPUNIT_ASSERT_DOUBLES_EQUAL (0.3f, m_Document->getZoom (), 0.0001f); 
    550539    CPPUNIT_ASSERT (m_View->hasImagePageView ()); 
    551     CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 
    552 } 
    553  
     540}