Jasmine tests for ol.Projection

This commit is contained in:
Éric Lemoine
2012-09-24 23:26:49 +02:00
parent c2901dec73
commit ec9382e760
3 changed files with 107 additions and 0 deletions

View File

@@ -3,6 +3,9 @@ beforeEach(function() {
this.addMatchers({
toBeA: function(type) {
return this.actual instanceof type;
},
toRoughlyEqual: function(other, tol) {
return Math.abs(this.actual - other) <= tol;
}
});
});