Files
openlayers/test/jasmine-extensions.js
2013-01-21 12:29:31 +01:00

12 lines
307 B
JavaScript

beforeEach(function() {
var parent = this.getMatchersClass_();
this.addMatchers({
toBeA: function(type) {
return this.actual instanceof type;
},
toRoughlyEqual: function(other, tol) {
return Math.abs(this.actual - other) <= tol;
}
});
});