Remove use of goog.dom.createDom

This commit is contained in:
Frederic Junod
2015-11-24 12:25:45 +01:00
parent d96d82939a
commit a186254e14
3 changed files with 25 additions and 8 deletions

View File

@@ -18,6 +18,23 @@ describe('ol.Map', function() {
expect(interactions.item(i).getMap()).to.be(map);
}
});
it('creates the viewport', function() {
var map = new ol.Map({});
var viewport = map.getViewport();
var className = 'ol-viewport' + (ol.has.TOUCH ? ' ol-touch' : '');
expect(viewport.className).to.be(className);
});
it('creates the overlay containers', function() {
var map = new ol.Map({});
var container = map.getOverlayContainer();
expect(container.className).to.be('ol-overlaycontainer');
var containerStop = map.getOverlayContainerStopEvent();
expect(containerStop.className).to.be('ol-overlaycontainer-stopevent');
});
});
describe('#addInteraction()', function() {