No need to check for ImageData constructor in the tests

This commit is contained in:
Tim Schaub
2016-03-01 13:43:55 -07:00
parent bc01fdb59a
commit 5aa175241a

View File

@@ -11,16 +11,7 @@ var blue = 'data:image/gif;base64,R0lGODlhAQABAPAAAAAA/////yH5BAAAAAAALAAAAA' +
var itNoPhantom = window.checkForMocha ? xit : it;
var hasImageDataConstructor = true;
try {
new ImageData(1, 1);
} catch (e) {
hasImageDataConstructor = false;
}
var maybeDescribe = hasImageDataConstructor ? describe : xdescribe;
maybeDescribe('ol.source.Raster', function() {
describe('ol.source.Raster', function() {
var target, map, redSource, greenSource, blueSource, raster;