diff --git a/test/jasmine-extensions.js b/test/jasmine-extensions.js
index 137090273e..4649130908 100644
--- a/test/jasmine-extensions.js
+++ b/test/jasmine-extensions.js
@@ -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;
}
});
});
diff --git a/test/ol.html b/test/ol.html
index a41861db9a..4b15c067fb 100644
--- a/test/ol.html
+++ b/test/ol.html
@@ -77,6 +77,7 @@
+