loleaflet: Make tile benchmark test work again

This broke after we introduced 'tilecombine' message.

Change-Id: Id273a859b22cac6b50ba759241d0b36d27829700
This commit is contained in:
Pranav Kant 2016-02-19 00:08:07 +05:30
parent 9cf0cbf3a6
commit 5332e3f48c

View file

@ -117,6 +117,7 @@ describe('TileBench', function () {
incoming.push(logs[i]); incoming.push(logs[i]);
} }
else if (logs[i].direction === L.OUTGOING) { else if (logs[i].direction === L.OUTGOING) {
logs[i].msg = logs[i].msg.replace('tilecombine','tile');
outgoing.push(logs[i]); outgoing.push(logs[i]);
} }
} }
@ -126,6 +127,7 @@ describe('TileBench', function () {
for (j = 0; j < incoming.length; j++) { for (j = 0; j < incoming.length; j++) {
if (outgoing[i].msg === incoming[j].msg) { if (outgoing[i].msg === incoming[j].msg) {
time_deltas.push(incoming[j].time - outgoing[i].time); time_deltas.push(incoming[j].time - outgoing[i].time);
break;
} }
} }
} }