fuzzer: Generate the descriptions before running the operations

Because we want to print the state before running stuff, not how
the dockwidgets end up
This commit is contained in:
Sergio Martins
2019-10-15 11:59:30 +01:00
parent 6dad6a6cb0
commit 60de4fd6a0
4 changed files with 17 additions and 46 deletions

View File

@@ -83,9 +83,9 @@ void Fuzzer::runTest(const Test &test)
createLayout(test.initialLayout);
int index = 0;
for (const auto &op : test.operations) {
qDebug() << "Running" << op->description();
index++;
op->execute();
qDebug() << "Ran" << op->description();
QTest::qWait(m_operationDelayMS);
DockRegistry::self()->checkSanityAll();
}