@ -16,7 +16,7 @@
* along with Calamares . If not , see < http : //www.gnu.org/licenses/>.
* along with Calamares . If not , see < http : //www.gnu.org/licenses/>.
*/
*/
# include "Config.h"
# include "LocaleConfiguration.h"
# include "LocaleConfiguration.h"
# include "timezonewidget/TimeZoneImage.h"
# include "timezonewidget/TimeZoneImage.h"
@ -45,6 +45,9 @@ private Q_SLOTS:
void testTZImages ( ) ; // No overlaps in images
void testTZImages ( ) ; // No overlaps in images
void testTZLocations ( ) ; // No overlaps in locations
void testTZLocations ( ) ; // No overlaps in locations
void testSpecificLocations ( ) ;
void testSpecificLocations ( ) ;
// Check the Config loading
void testConfigInitialization ( ) ;
} ;
} ;
QTEST_MAIN ( LocaleTests )
QTEST_MAIN ( LocaleTests )
@ -251,6 +254,16 @@ LocaleTests::testSpecificLocations()
QVERIFY ( gpos . y ( ) < cpos . y ( ) ) ; // Gibraltar is north of Ceuta
QVERIFY ( gpos . y ( ) < cpos . y ( ) ) ; // Gibraltar is north of Ceuta
}
}
void
LocaleTests : : testConfigInitialization ( )
{
Config c ;
QVERIFY ( ! c . currentLocation ( ) ) ;
QVERIFY ( ! c . currentLocationStatus ( ) . isEmpty ( ) ) ;
}
# include "utils/moc-warnings.h"
# include "utils/moc-warnings.h"
# include "Tests.moc"
# include "Tests.moc"