diff options
Diffstat (limited to 'tests/auto/installer/scriptengine/tst_scriptengine.cpp')
-rw-r--r-- | tests/auto/installer/scriptengine/tst_scriptengine.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/installer/scriptengine/tst_scriptengine.cpp b/tests/auto/installer/scriptengine/tst_scriptengine.cpp index df8d1a8b7..48223a821 100644 --- a/tests/auto/installer/scriptengine/tst_scriptengine.cpp +++ b/tests/auto/installer/scriptengine/tst_scriptengine.cpp @@ -33,7 +33,8 @@ #include <component.h> #include <errors.h> -#include <kdupdaterupdateoperationfactory.h> +#include <updateoperation.h> +#include <updateoperationfactory.h> #include <packagemanagercore.h> #include <packagemanagergui.h> #include <scriptengine.h> @@ -160,7 +161,9 @@ signals: class EmptyArgOperation : public KDUpdater::UpdateOperation { public: - EmptyArgOperation() { + explicit EmptyArgOperation(QInstaller::PackageManagerCore *core) + : KDUpdater::UpdateOperation(core) + { setName("EmptyArg"); } @@ -174,9 +177,6 @@ public: bool testOperation() { return true; } - UpdateOperation *clone() const { - return 0; - } }; @@ -281,7 +281,7 @@ private slots: // ignore Output from script setExpectedScriptOutput("function receive()"); - QTest::ignoreMessage(QtWarningMsg, ":10: ReferenceError: foo is not defined"); + QTest::ignoreMessage(QtWarningMsg, ":43: ReferenceError: foo is not defined"); emiter.produceSignal(); const QJSValue value = m_scriptEngine->evaluate(""); |