Show
Ignore:
Timestamp:
06/10/06 11:43:58 (2 years ago)
Author:
jordi
Message:

Added the action to print to the main menu and made its sensitivity to work.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/MainPterTest.cxx

    r210 r212  
    9393    CPPUNIT_ASSERT (m_View->isShownToolbar ()); 
    9494    CPPUNIT_ASSERT (m_View->isShownStatusbar ()); 
     95#if defined (HAVE_CUPS) 
     96    CPPUNIT_ASSERT (!m_View->isSensitivePrint ()); 
     97#endif // HAVE_CUPS 
    9598} 
    9699 
     
    127130    CPPUNIT_ASSERT (m_View->isSensitiveZoomWidth ()); 
    128131    CPPUNIT_ASSERT (!m_View->isShownIndex ()); 
     132#if defined (HAVE_CUPS) 
     133    CPPUNIT_ASSERT (m_View->isSensitivePrint ()); 
     134#endif // HAVE_CUPS 
    129135 
    130136    // Now try a document with a title. 
     
    149155    CPPUNIT_ASSERT (m_View->isSensitiveZoomWidth ()); 
    150156    CPPUNIT_ASSERT (!m_View->isShownIndex ()); 
     157#if defined (HAVE_CUPS) 
     158    CPPUNIT_ASSERT (m_View->isSensitivePrint ()); 
     159#endif // HAVE_CUPS 
    151160} 
    152161 
     
    179188    CPPUNIT_ASSERT (!m_View->isSensitiveZoomWidth ()); 
    180189    CPPUNIT_ASSERT (!m_View->shownError ()); 
     190#if defined (HAVE_CUPS) 
     191    CPPUNIT_ASSERT (!m_View->isSensitivePrint ()); 
     192#endif // HAVE_CUPS 
    181193} 
    182194 
     
    213225    CPPUNIT_ASSERT (!m_View->isSensitiveZoomWidth ()); 
    214226    CPPUNIT_ASSERT (m_View->shownError ()); 
     227#if defined (HAVE_CUPS) 
     228    CPPUNIT_ASSERT (!m_View->isSensitivePrint ()); 
     229#endif // HAVE_CUPS 
    215230} 
    216231 
     
    248263    CPPUNIT_ASSERT (!m_View->isSensitiveZoomWidth ()); 
    249264    CPPUNIT_ASSERT (!m_View->shownError ()); 
     265#if defined (HAVE_CUPS) 
     266    CPPUNIT_ASSERT (!m_View->isSensitivePrint ()); 
     267#endif // HAVE_CUPS 
    250268} 
    251269 
     
    284302    CPPUNIT_ASSERT (m_View->shownError ()); 
    285303    CPPUNIT_ASSERT_EQUAL (3, m_View->countTimesShownPasswordPrompt ()); 
     304#if defined (HAVE_CUPS) 
     305    CPPUNIT_ASSERT (!m_View->isSensitivePrint ()); 
     306#endif // HAVE_CUPS 
    286307} 
    287308 
     
    319340    CPPUNIT_ASSERT (!m_View->shownError ()); 
    320341    CPPUNIT_ASSERT_EQUAL (1, m_View->countTimesShownPasswordPrompt ()); 
     342#if defined (HAVE_CUPS) 
     343    CPPUNIT_ASSERT (m_View->isSensitivePrint ()); 
     344#endif // HAVE_CUPS 
    321345} 
    322346