Showing the changes to tests/script-engine/src/ScriptEngineTests.cpp (1 of 7 files). Show all
Unified · Split
| @@ -76,15 +76,20 @@ void ScriptEngineTests::scriptTest() { · 75 unmodified lines | |||
| 76 | QVERIFY(!ac.isNull()); | 76 | QVERIFY(!ac.isNull()); |
| 77 | 77 | ||
| 78 | 78 | ||
| 79 | ac->loadOneScript("test-missing.js"); | 79 | ac->loadOneScript("test1.js"); |
| 80 | ac->loadOneScript("test-hello.js"); | 80 | //ac->loadOneScript("test-missing.js"); |
| 81 | ac->loadOneScript("test-divide-by-zero.js"); | 81 | //ac->loadOneScript("test-hello.js"); |
| 82 | //ac->loadOneScript("test-divide-by-zero.js"); | ||
| 82 | qDebug() << ac->getRunning(); | 83 | qDebug() << ac->getRunning(); |
| 83 | 84 | ||
| 84 | 85 | ||
| 85 | QSignalSpy spy(ac.get(), SIGNAL(scriptCountChanged)); | 86 | while (true) { |
| 86 | spy.wait(5000); | 87 | QSignalSpy spy(ac.get(), SIGNAL(scriptCountChanged)); |
| 87 | ac->shutdownScripting(); | 88 | spy.wait(3000000); |
| 89 | qDebug() << "Signal happened"; | ||
| 90 | } | ||
| 91 | //spy.wait(5000); | ||
| 92 | //ac->shutdownScripting(); | ||
| 88 | 93 | ||
| 89 | 94 | ||
| 90 | } | 95 | } |