| 47 | } |
| 48 | |
| 49 | void TestIDE::testProject105Good() |
| 50 | { |
| 51 | TestMocker mock(QString(MINIZINC_IDE_PATH) + "/data/project/project-105-good.mzp"); |
| 52 | MainWindow* w = mock.mw(); |
| 53 | QVERIFY(w->currentModelFile().endsWith("model1.mzn")); |
| 54 | QCOMPARE(w->codeEditors().size(), 2); |
| 55 | QCOMPARE(w->getProject().modelFiles().size(), 2); |
| 56 | QCOMPARE(w->getProject().dataFiles().size(), 2); |
| 57 | |
| 58 | QTimer::singleShot(200, this, [=] () { |
| 59 | auto* message = qobject_cast<QMessageBox*>(QApplication::activeModalWidget()); |
| 60 | QVERIFY(message!= nullptr); |
| 61 | QVERIFY(message->text().startsWith("There are modified solver configurations")); |
| 62 | message->accept(); |
| 63 | }); |
| 64 | } |
| 65 | |
| 66 | void TestIDE::testProject105Bad() |
| 67 | { |
nothing calls this directly
no test coverage detected