Remove use of goog.dom.createDom

This commit is contained in:
Frederic Junod
2016-02-15 16:20:52 +01:00
parent 34392b464c
commit 296ec9799f
5 changed files with 23 additions and 13 deletions

View File

@@ -7,6 +7,15 @@ describe('ol.control.MousePosition', function() {
it('can be constructed without arguments', function() {
var instance = new ol.control.MousePosition();
expect(instance).to.be.an(ol.control.MousePosition);
expect(instance.element.className).to.be('ol-mouse-position');
});
it('creates the element with the provided class name', function() {
var className = 'foobar';
var instance = new ol.control.MousePosition({
className: className
});
expect(instance.element.className).to.be(className);
});
});