History

Added simple compile test function

ksuprynowicz committed 4 years ago

Commit 827ddf51 parent 38064b97 files · +83 −19Browse files

Showing the changes to tests/script-engine/src/ScriptEngineTests.cpp (1 of 7 files). Show all

Unified · Split

tests/script-engine/src/ScriptEngineTests.cpp+11−6
@@ -76,15 +76,20 @@ void ScriptEngineTests::scriptTest() { · 75 unmodified lines
7676 QVERIFY(!ac.isNull());
7777
7878
79− ac->loadOneScript("test-missing.js");
80− ac->loadOneScript("test-hello.js");
81− ac->loadOneScript("test-divide-by-zero.js");
79+ ac->loadOneScript("test1.js");
80+ //ac->loadOneScript("test-missing.js");
81+ //ac->loadOneScript("test-hello.js");
82+ //ac->loadOneScript("test-divide-by-zero.js");
8283 qDebug() << ac->getRunning();
8384
8485
85− QSignalSpy spy(ac.get(), SIGNAL(scriptCountChanged));
86− spy.wait(5000);
87− ac->shutdownScripting();
86+ while (true) {
87+ QSignalSpy spy(ac.get(), SIGNAL(scriptCountChanged));
88+ spy.wait(3000000);
89+ qDebug() << "Signal happened";
90+ }
91+ //spy.wait(5000);
92+ //ac->shutdownScripting();
8893
8994
9095 }