mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-25 03:15:44 -05:00
[libcalamares] Failing test: there is data in the regions model
This commit is contained in:
parent
82cc652f55
commit
609ea8350c
1 changed files with 11 additions and 0 deletions
|
@ -251,6 +251,17 @@ LocaleTests::testRegions()
|
|||
CalamaresUtils::Locale::RegionsModel regions;
|
||||
|
||||
QVERIFY( regions.rowCount( QModelIndex() ) > 3 ); // Africa, America, Asia
|
||||
|
||||
QStringList names;
|
||||
for ( int i = 0; i < regions.rowCount( QModelIndex() ); ++i )
|
||||
{
|
||||
QVariant name = regions.data( regions.index( i ), Qt::UserRole );
|
||||
QVERIFY( name.isValid() );
|
||||
QVERIFY( !name.toString().isEmpty() );
|
||||
names.append( name.toString() );
|
||||
}
|
||||
|
||||
QVERIFY( names.contains( "America" ) );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue