MCPcopy Create free account
hub / github.com/TeXworks/texworks / getScriptLanguagePlugin

Method getScriptLanguagePlugin

unit-tests/Scripting_test.cpp:126–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void 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
137void TestScripting::getFilename()
138{

Callers

nothing calls this directly

Calls 1

newScriptMethod · 0.45

Tested by

no test coverage detected