Clean up after rendering tests
This commit is contained in:
@@ -494,4 +494,12 @@ goog.require('ol.renderer.webgl.Map');
|
||||
};
|
||||
};
|
||||
|
||||
// throw if anybody appends a div to the body and doesn't remove it
|
||||
afterEach(function() {
|
||||
var garbage = document.body.getElementsByTagName('div');
|
||||
if (garbage.length) {
|
||||
throw new Error('Found extra <div> elements in the body');
|
||||
}
|
||||
});
|
||||
|
||||
})(this);
|
||||
|
||||
Reference in New Issue
Block a user