summaryrefslogtreecommitdiff
path: root/tests/auto/qml/tst_webchannel.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/tst_webchannel.qml')
-rw-r--r--tests/auto/qml/tst_webchannel.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/tst_webchannel.qml b/tests/auto/qml/tst_webchannel.qml
index 46ac209..899db69 100644
--- a/tests/auto/qml/tst_webchannel.qml
+++ b/tests/auto/qml/tst_webchannel.qml
@@ -256,6 +256,8 @@ TestCase {
compare(msg.args, ["foobar"]);
compare(lastMethodArg, "foobar");
+ client.awaitIdle();
+
myFactory.lastObj.mySignal("foobar", 42);
// deleteLater call
@@ -292,8 +294,12 @@ TestCase {
compare(msg.type, JSClient.QWebChannelMessageTypes.connectToSignal);
compare(typeof channel.objects[testObjId], "object");
+ client.awaitIdle();
+
channel.objects[testObjId].deleteLater();
msg = client.awaitMessage();
+ compare(msg.type, JSClient.QWebChannelMessageTypes.invokeMethod);
+ compare(msg.object, testObjId);
// after receiving the destroyed signal the client deletes
// local objects and sends back a idle message