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:
Tim Schaub
2013-03-18 22:53:04 -06:00
parent fad57a0fe5
commit 27ccd13e48
5 changed files with 50 additions and 10 deletions

View File

@@ -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({