From 49b210973e94fc6551ab6825ff07d6c7af346f5d Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 4 Feb 2016 14:19:17 +0100 Subject: [PATCH] Use ol.array instead of goog.array --- test/spec/ol/format/kmlformat.test.js | 4 ++-- test/spec/ol/layer/layergroup.test.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/spec/ol/format/kmlformat.test.js b/test/spec/ol/format/kmlformat.test.js index 21ea9fe12b..f7f063b7fa 100644 --- a/test/spec/ol/format/kmlformat.test.js +++ b/test/spec/ol/format/kmlformat.test.js @@ -2658,7 +2658,7 @@ describe('ol.format.KML', function() { }); it('creates a Point and a MultiPolygon for Alaska', function() { - var alaska = goog.array.find(features, function(feature) { + var alaska = ol.array.find(features, function(feature) { return feature.get('name') === 'Alaska'; }); expect(alaska).to.be.an(ol.Feature); @@ -2798,7 +2798,7 @@ describe('ol.format.KML', function() { }); -goog.require('goog.array'); +goog.require('ol.array'); goog.require('goog.dom.xml'); goog.require('ol.Feature'); goog.require('ol.format.GeoJSON'); diff --git a/test/spec/ol/layer/layergroup.test.js b/test/spec/ol/layer/layergroup.test.js index be86aed6a5..8d357b76d4 100644 --- a/test/spec/ol/layer/layergroup.test.js +++ b/test/spec/ol/layer/layergroup.test.js @@ -443,7 +443,7 @@ describe('ol.layer.Group', function() { var layerStatesArray = layerGroup.getLayerStatesArray(); var initialArray = layerStatesArray.slice(); - goog.array.stableSort(layerStatesArray, ol.renderer.Map.sortByZIndex); + ol.array.stableSort(layerStatesArray, ol.renderer.Map.sortByZIndex); expect(layerStatesArray[0]).to.eql(initialArray[0]); expect(layerStatesArray[1]).to.eql(initialArray[1]); @@ -471,7 +471,7 @@ describe('ol.layer.Group', function() { var layerStatesArray = layerGroup.getLayerStatesArray(); var initialArray = layerStatesArray.slice(); - goog.array.stableSort(layerStatesArray, ol.renderer.Map.sortByZIndex); + ol.array.stableSort(layerStatesArray, ol.renderer.Map.sortByZIndex); expect(layerStatesArray[0]).to.eql(initialArray[3]); expect(layerStatesArray[1]).to.eql(initialArray[0]); expect(layerStatesArray[2]).to.eql(initialArray[2]); @@ -489,7 +489,7 @@ describe('ol.layer.Group', function() { }); -goog.require('goog.array'); +goog.require('ol.array'); goog.require('goog.dispose'); goog.require('ol.events'); goog.require('ol.events.EventType');