test: Moved intersectsWith() testing function into test-extensions.js
This commit is contained in:
@@ -17,9 +17,6 @@ describe('ol.Rectangle', function() {
|
|||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
rectangle1 = new ol.Rectangle(50, 50, 100, 100);
|
rectangle1 = new ol.Rectangle(50, 50, 100, 100);
|
||||||
expect.Assertion.prototype.intersectWith = function(other) {
|
|
||||||
return this.obj.intersects(other);
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('returns the expected value', function() {
|
it('returns the expected value', function() {
|
||||||
|
|||||||
@@ -24,6 +24,10 @@ expect.Assertion.prototype.roughlyEqual = function(other, tol) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
expect.Assertion.prototype.intersectWith = function(other) {
|
||||||
|
return this.obj.intersects(other);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
// helper functions for async testing
|
// helper functions for async testing
|
||||||
(function(global) {
|
(function(global) {
|
||||||
|
|||||||
Reference in New Issue
Block a user