| 124 | } |
| 125 | |
| 126 | void TestScripting::getScriptLanguagePlugin() |
| 127 | { |
| 128 | #if WITH_QTSCRIPT |
| 129 | JSScriptInterface jsi(this); |
| 130 | QCOMPARE(std::unique_ptr<Script>(jsi.newScript(QString()))->getScriptLanguagePlugin(), &jsi); |
| 131 | #endif |
| 132 | |
| 133 | ECMAScriptInterface esi(this); |
| 134 | QCOMPARE(std::unique_ptr<Script>(esi.newScript(QString()))->getScriptLanguagePlugin(), &esi); |
| 135 | } |
| 136 | |
| 137 | void TestScripting::getFilename() |
| 138 | { |