Skip to content

Commit

Permalink
Ignore spell errors on test file
Browse files Browse the repository at this point in the history
  • Loading branch information
gacarrillor committed Nov 15, 2023
1 parent 416fb56 commit 74b9bb6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/src/app/testqgspluginsortfileproxymodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ void TestQgsPluginSortFileProxyModel::testProxyModelFilters()
QCOMPARE( mModelProxy->rowCount(), 1 );
QCOMPARE( mModelProxy->data( mModelProxy->index( 0, 0, QModelIndex() ), Qt::DisplayRole ).toString(), "My Fantastic Plugin 1" );

filterRegExp = QRegularExpression( "FanTastI", QRegularExpression::CaseInsensitiveOption );
filterRegExp = QRegularExpression( "FanTastI", QRegularExpression::CaseInsensitiveOption ); //#spellok
mModelProxy->setFilterRegularExpression( filterRegExp );
QCOMPARE( mModelProxy->rowCount(), 2 );
QCOMPARE( mModelProxy->data( mModelProxy->index( 0, 0, QModelIndex() ), Qt::DisplayRole ).toString(), "My Fantastic Plugin 1" );
QCOMPARE( mModelProxy->data( mModelProxy->index( 1, 0, QModelIndex() ), Qt::DisplayRole ).toString(), "My New Fantastic Plugin" );

// Filter by plugin description
filterRegExp = QRegularExpression( "new plUgi", QRegularExpression::CaseInsensitiveOption );
filterRegExp = QRegularExpression( "new plUgi", QRegularExpression::CaseInsensitiveOption ); //#spellok
mModelProxy->setFilterRegularExpression( filterRegExp );
QCOMPARE( mModelProxy->rowCount(), 1 );
QCOMPARE( mModelProxy->data( mModelProxy->index( 0, 0, QModelIndex() ), Qt::DisplayRole ).toString(), "My New Fantastic Plugin" );
Expand Down Expand Up @@ -157,7 +157,7 @@ void TestQgsPluginSortFileProxyModel::testProxyModelFilters()
QCOMPARE( mModelProxy->data( mModelProxy->index( 1, 0, QModelIndex() ), Qt::DisplayRole ).toString(), "My New Fantastic Plugin" );

// Not found
filterRegExp = QRegularExpression( "pluggin", QRegularExpression::CaseInsensitiveOption );
filterRegExp = QRegularExpression( "pluggin", QRegularExpression::CaseInsensitiveOption ); //#spellok
mModelProxy->setFilterRegularExpression( filterRegExp );
QCOMPARE( mModelProxy->rowCount(), 0 );

Expand All @@ -171,7 +171,7 @@ void TestQgsPluginSortFileProxyModel::testProxyModelFilters()
QCOMPARE( mModelProxy->data( mModelProxy->index( 1, 0, QModelIndex() ), Qt::DisplayRole ).toString(), "My New Fantastic Plugin" );

// Tag not found
filterRegExp = QRegularExpression( "tagg", QRegularExpression::CaseInsensitiveOption );
filterRegExp = QRegularExpression( "tagg", QRegularExpression::CaseInsensitiveOption ); //#spellok
mModelProxy->setFilterRegularExpression( filterRegExp );
QCOMPARE( mModelProxy->rowCount(), 0 );

Expand Down

0 comments on commit 74b9bb6

Please sign in to comment.