summaryrefslogtreecommitdiff
path: root/tests/auto/webchannel
diff options
context:
space:
mode:
authorMilian Wolff <milian.wolff@kdab.com>2014-07-30 12:20:08 +0200
committerLutz Schönemann <lutz.schoenemann@basyskom.com>2014-12-08 16:02:45 +0100
commit0a43a43a166d2e2b551f543de61090637bd8b387 (patch)
treeb27ead870eef7af20f3d35a717d57bd0d262a911 /tests/auto/webchannel
parente50edc952ce15f3c11f4cdfad74ec984043cb080 (diff)
downloadqtwebchannel-0a43a43a166d2e2b551f543de61090637bd8b387.tar.gz
Do not broadcast initialization data to all clients.
Instead, send the data as a response to the initialization request message. This simplifies the code and makes it more predictable, as we do not spam all clients with initialization broadcasts anymore. Note that the pending initialization "feature" is removed, but I don't see a need for it anymore. If you want to delay client initialization, do it on the client side. Change-Id: I1ab71fd6c9e809ccb6085f1a3fbac3eb9b2e910b Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'tests/auto/webchannel')
-rw-r--r--tests/auto/webchannel/tst_webchannel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/webchannel/tst_webchannel.cpp b/tests/auto/webchannel/tst_webchannel.cpp
index 4827ea7..5060028 100644
--- a/tests/auto/webchannel/tst_webchannel.cpp
+++ b/tests/auto/webchannel/tst_webchannel.cpp
@@ -282,7 +282,7 @@ void TestWebChannel::benchInitializeClients()
QMetaObjectPublisher *publisher = channel.d_func()->publisher;
QBENCHMARK {
- publisher->initializeClients();
+ publisher->initializeClient();
publisher->propertyUpdatesInitialized = false;
publisher->signalToPropertyMap.clear();
@@ -304,7 +304,7 @@ void TestWebChannel::benchPropertyUpdates()
}
channel.registerObjects(objects);
- channel.d_func()->publisher->initializeClients();
+ channel.d_func()->publisher->initializeClient();
QBENCHMARK {
foreach (BenchObject *obj, objectList) {