summaryrefslogtreecommitdiff
path: root/tests/auto/qml/Client.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/Client.qml')
-rw-r--r--tests/auto/qml/Client.qml9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/auto/qml/Client.qml b/tests/auto/qml/Client.qml
index 6e12993..c18644f 100644
--- a/tests/auto/qml/Client.qml
+++ b/tests/auto/qml/Client.qml
@@ -98,7 +98,12 @@ Item {
for (var i = 0; i < 10 && !root[from].length; ++i)
wait(10);
- return root[from].shift();
+
+ var msg = root[from].shift();
+ if (debug) {
+ console.log((root.objectName ? "(" + root.objectName + ")" : ""), "Shifting Message " + from + ":" + JSON.stringify(msg));
+ }
+ return msg;
}
function awaitMessage(from)
@@ -114,7 +119,7 @@ Item {
function await(type, from, skip) {
var msg;
do {
- msg = awaitMessage();
+ msg = awaitMessage(from);
verify(msg);
} while (skip && (msg.type === JSClient.QWebChannelMessageTypes.idle));
if (type !== null) {