Show
Ignore:
Timestamp:
04/20/06 05:48:51 (3 years ago)
Author:
jordi
Message:

It's possible to set the configuration values and to load the configuration from a file. The test suite for the configuration doesn't test loading from a file.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/ConfigTest.cxx

    r92 r93  
    5858    CPPUNIT_ASSERT_EQUAL (650, config.getWindowHeight ()); 
    5959} 
     60 
     61/// 
     62/// @brief Check setting and retrieving values related to the main window. 
     63/// 
     64void 
     65ConfigTest::windowValues () 
     66{ 
     67    Config::loadFile (FALSE); 
     68    Config &config = Config::getConfig (); 
     69 
     70    config.setWindowPos (30, 40); 
     71    config.setWindowSize (100, 90); 
     72     
     73    CPPUNIT_ASSERT_EQUAL (30, config.getWindowX ()); 
     74    CPPUNIT_ASSERT_EQUAL (40, config.getWindowY ()); 
     75    CPPUNIT_ASSERT_EQUAL (100, config.getWindowWidth ()); 
     76    CPPUNIT_ASSERT_EQUAL (90, config.getWindowHeight ());     
     77}