Only test ol.format.MVT if ArrayBuffer.isView is supported

This commit is contained in:
Frederic Junod
2016-10-19 08:55:59 +02:00
parent de5b16c0d3
commit 61fcc4a326
2 changed files with 2 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ goog.require('ol.ext.vectortile');
goog.require('ol.format.MVT');
goog.require('ol.render.Feature');
where('ArrayBuffer').describe('ol.format.MVT', function() {
where('ArrayBuffer.isView').describe('ol.format.MVT', function() {
var data;
beforeEach(function(done) {

View File

@@ -466,6 +466,7 @@
var features = {
ArrayBuffer: typeof ArrayBuffer === 'function',
'ArrayBuffer.isView': typeof ArrayBuffer === 'function' && ArrayBuffer.isView,
Uint8ClampedArray: ('Uint8ClampedArray' in global)
};