Skip to content

Commit

Permalink
Document strange bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed Feb 25, 2020
1 parent ecd2440 commit b409f55
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/src/core/AutomatableModelTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,20 @@ private slots: // tests
AutomatableModel::linkModels(&m1, &m2);
QVERIFY(!m1Changed); // it's already linked
QVERIFY(!m2Changed);

resetChanged();
BoolModel m3(false);
m1.setValue(1.f);
m2.setValue(1.f);
AutomatableModel::linkModels(&m1, &m2);
QVERIFY(m1.value());
QVERIFY(m2.value());
QVERIFY(!m3.value());
AutomatableModel::linkModels(&m2, &m3); // drag m3, drop on m2
// m2 should take m3's (0) value
// due to a bug(?), this does not happen
QVERIFY(m2.value());
QVERIFY(!m3.value());
}
} AutomatableModelTests;

Expand Down

0 comments on commit b409f55

Please sign in to comment.