Disallowed undefined rotation value

This commit is contained in:
Frederic Junod
2015-01-27 09:22:18 +01:00
parent 5c9b17a3b2
commit 829a0ca224
2 changed files with 22 additions and 4 deletions

View File

@@ -1,6 +1,24 @@
goog.provide('ol.test.View');
describe('ol.View', function() {
describe('constructor (defaults)', function() {
var view;
beforeEach(function() {
view = new ol.View();
});
it('creates an instance', function() {
expect(view).to.be.a(ol.View);
});
it('provides default rotation', function() {
expect(view.getRotation()).to.be(0);
});
});
describe('create constraints', function() {
describe('create resolution constraint', function() {