| 269 | } |
| 270 | |
| 271 | void TestScripting::parseHeader() |
| 272 | { |
| 273 | QFETCH(QSharedPointer<Script>, script); |
| 274 | QFETCH(bool, canParse); |
| 275 | QFETCH(Script::ScriptType, type); |
| 276 | QFETCH(QString, title); |
| 277 | QFETCH(QString, description); |
| 278 | QFETCH(QString, author); |
| 279 | QFETCH(QString, version); |
| 280 | QFETCH(QString, hook); |
| 281 | QFETCH(QString, context); |
| 282 | QFETCH(QKeySequence, keySequence); |
| 283 | |
| 284 | QCOMPARE(script->parseHeader(), canParse); |
| 285 | |
| 286 | QCOMPARE(script->getType(), type); |
| 287 | QCOMPARE(script->getTitle(), title); |
| 288 | QCOMPARE(script->getDescription(), description); |
| 289 | QCOMPARE(script->getAuthor(), author); |
| 290 | QCOMPARE(script->getVersion(), version); |
| 291 | QCOMPARE(script->getKeySequence(), keySequence); |
| 292 | QCOMPARE(script->getHook(), hook); |
| 293 | QCOMPARE(script->getContext(), context); |
| 294 | } |
| 295 | |
| 296 | void TestScripting::mocks() |
| 297 | { |
nothing calls this directly
no test coverage detected