From 4f5bcdbe76b0d1a11237dc48807fcf68752c2b38 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 7 Nov 2012 16:25:34 +0100 Subject: [PATCH] Fixing mock --- tests/Layer/Grid.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Layer/Grid.html b/tests/Layer/Grid.html index 26c4edccfa..6e7d4181bf 100644 --- a/tests/Layer/Grid.html +++ b/tests/Layer/Grid.html @@ -614,7 +614,7 @@ layer.numLoadingTiles = 2; g_events = []; - tile.onLoadEnd.apply(layer); + tile.onLoadEnd.apply(layer, [{}]); t.eq(g_events[0][0], "tileloaded", "tileloaded triggered when numLoadingTiles is > 0"); t.ok(g_events[0][1].tile === tile, "tile passed as tile property to event object"); t.eq(g_events.length, 1, "loadend event not triggered when numLoadingTiles is > 0"); @@ -623,7 +623,7 @@ g_events = []; layer.grid = [[{}]]; // to prevent error in updateBackBuffer - tile.onLoadEnd.apply(layer); + tile.onLoadEnd.apply(layer, [{}]); t.eq(g_events[0][0], "tileloaded", "tileloaded triggered when numLoadingTiles is 0"); t.eq(g_events[1][0], "loadend", "loadend event triggered when numLoadingTiles is 0"); t.eq(layer.numLoadingTiles, 0, "numLoadingTiles decremented");