Create test specific markup in tests
Instead of relying on a shared dom structure, the tests should create (and destroy) elements as needed.
This commit is contained in:
@@ -13,7 +13,7 @@ describe('ol.renderer.webgl.ImageLayer', function() {
|
||||
|
||||
beforeEach(function() {
|
||||
map = new ol.Map({
|
||||
target: 'map'
|
||||
target: document.createElement('div')
|
||||
});
|
||||
var layer = new ol.layer.ImageLayer({
|
||||
source: new ol.source.ImageSource({
|
||||
|
||||
Reference in New Issue
Block a user