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

Method ResourcesLibrary_portableLibPath

unit-tests/Utils_test.cpp:673–685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671}
672
673void TestUtils::ResourcesLibrary_portableLibPath()
674{
675 QString noDir;
676 QString curDir(QStringLiteral("."));
677 QString invalidDir(QStringLiteral("/does-not-exist/"));
678
679 Tw::Utils::ResourcesLibrary::setPortableLibPath(noDir);
680 QCOMPARE(Tw::Utils::ResourcesLibrary::getPortableLibPath(), noDir);
681 Tw::Utils::ResourcesLibrary::setPortableLibPath(curDir);
682 QCOMPARE(Tw::Utils::ResourcesLibrary::getPortableLibPath(), curDir);
683 Tw::Utils::ResourcesLibrary::setPortableLibPath(invalidDir);
684 QCOMPARE(Tw::Utils::ResourcesLibrary::getPortableLibPath(), invalidDir);
685}
686
687void TestUtils::TypesetManager()
688{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected