History

Fixed adding properties to methods

ksuprynowicz committed 3 years ago

Commit 386242d1 parent 076349a5 files · +80 −7Browse files

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

Unified · Split

tests/script-engine/src/ScriptEngineTests.cpp+2−2
@@ -87,7 +87,7 @@ void ScriptEngineTests::scriptTest() { · 86 unmodified lines
87 qInfo() << "Running test script: " << script;87 qInfo() << "Running test script: " << script;
88 ac->loadOneScript(script);88 ac->loadOneScript(script);
89 }*/89 }*/
90 ac->loadOneScript("tests/003_vector_math.js");90 //ac->loadOneScript("tests/003_vector_math.js");
91 ac->loadOneScript("tests/004_require.js");91 ac->loadOneScript("tests/004_require.js");
92 92
93 qDebug() << ac->getRunning();93 qDebug() << ac->getRunning();
@@ -95,7 +95,7 @@ void ScriptEngineTests::scriptTest() { · 1 unmodified line
95 // TODO: if I don't have infinite loop here, it exits before scripts finish. It also reports: QSignalSpy: No such signal: 'scriptCountChanged'95 // TODO: if I don't have infinite loop here, it exits before scripts finish. It also reports: QSignalSpy: No such signal: 'scriptCountChanged'
96 for (int n = 0; n > -1; n++) {96 for (int n = 0; n > -1; n++) {
97 QSignalSpy spy(ac.get(), SIGNAL(scriptCountChanged));97 QSignalSpy spy(ac.get(), SIGNAL(scriptCountChanged));
98 spy.wait(1000);98 spy.wait(100000);
99 qDebug() << "Signal happened";99 qDebug() << "Signal happened";
100 }100 }
101 //spy.wait(5000);101 //spy.wait(5000);