Skip to content

Commit

Permalink
Fix CrossTileSymbolIndex unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLoer committed Aug 17, 2018
1 parent 938b85a commit 36d723c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/unit/symbol/cross_tile_symbol_index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { test } from 'mapbox-gl-js-test';
import Anchor from '../../../src/symbol/anchor';
import CrossTileSymbolIndex from '../../../src/symbol/cross_tile_symbol_index';
import { OverscaledTileID } from '../../../src/source/tile_id';

Expand All @@ -9,14 +8,18 @@ const styleLayer = {

function makeSymbolInstance(x, y, key) {
return {
anchor: new Anchor(x, y),
anchorX: x,
anchorY: y,
key: key
};
}

function makeTile(tileID, symbolInstances) {
const bucket = {
symbolInstances: symbolInstances,
symbolInstances: {
get: function(i) { return symbolInstances[i]; },
length: symbolInstances.length
},
layerIds: ['test']
};
return {
Expand Down

0 comments on commit 36d723c

Please sign in to comment.