spelling: associations
This commit is contained in:
committed by
Janek Bevendorff
parent
1ca5b72073
commit
40eafa8adc
@@ -236,15 +236,15 @@ void TestEntryModel::testAutoTypeAssociationsModel()
|
|||||||
|
|
||||||
QCOMPARE(model->rowCount(), 0);
|
QCOMPARE(model->rowCount(), 0);
|
||||||
|
|
||||||
AutoTypeAssociations* assocications = new AutoTypeAssociations(this);
|
AutoTypeAssociations* associations = new AutoTypeAssociations(this);
|
||||||
model->setAutoTypeAssociations(assocications);
|
model->setAutoTypeAssociations(associations);
|
||||||
|
|
||||||
QCOMPARE(model->rowCount(), 0);
|
QCOMPARE(model->rowCount(), 0);
|
||||||
|
|
||||||
AutoTypeAssociations::Association assoc;
|
AutoTypeAssociations::Association assoc;
|
||||||
assoc.window = "1";
|
assoc.window = "1";
|
||||||
assoc.sequence = "2";
|
assoc.sequence = "2";
|
||||||
assocications->add(assoc);
|
associations->add(assoc);
|
||||||
|
|
||||||
QCOMPARE(model->rowCount(), 1);
|
QCOMPARE(model->rowCount(), 1);
|
||||||
QCOMPARE(model->data(model->index(0, 0)).toString(), QString("1"));
|
QCOMPARE(model->data(model->index(0, 0)).toString(), QString("1"));
|
||||||
@@ -252,17 +252,17 @@ void TestEntryModel::testAutoTypeAssociationsModel()
|
|||||||
|
|
||||||
assoc.window = "3";
|
assoc.window = "3";
|
||||||
assoc.sequence = "4";
|
assoc.sequence = "4";
|
||||||
assocications->update(0, assoc);
|
associations->update(0, assoc);
|
||||||
QCOMPARE(model->data(model->index(0, 0)).toString(), QString("3"));
|
QCOMPARE(model->data(model->index(0, 0)).toString(), QString("3"));
|
||||||
QCOMPARE(model->data(model->index(0, 1)).toString(), QString("4"));
|
QCOMPARE(model->data(model->index(0, 1)).toString(), QString("4"));
|
||||||
|
|
||||||
assocications->add(assoc);
|
associations->add(assoc);
|
||||||
assocications->remove(0);
|
associations->remove(0);
|
||||||
QCOMPARE(model->rowCount(), 1);
|
QCOMPARE(model->rowCount(), 1);
|
||||||
|
|
||||||
delete modelTest;
|
delete modelTest;
|
||||||
delete model;
|
delete model;
|
||||||
delete assocications;
|
delete associations;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TestEntryModel::testProxyModel()
|
void TestEntryModel::testProxyModel()
|
||||||
|
|||||||
Reference in New Issue
Block a user