| 51 | } |
| 52 | |
| 53 | void TestIDE::testHistory() |
| 54 | { |
| 55 | History history("foo"); |
| 56 | QSignalSpy spy(&history, &History::historyChanged); |
| 57 | history.addFile("test.mzn", "a\nb\nc\n"); |
| 58 | history.updateFileContents("test.mzn", "a\nc\nd\n"); |
| 59 | history.updateFileContents("test.mzn", "f\na\nc\ne\n"); |
| 60 | history.commit(); |
| 61 | QCOMPARE(spy.count(), 3); |
| 62 | } |
nothing calls this directly
no test coverage detected