Merge pull request #1226 from tschaub/dirty-buffer

Buffer dirty extent when rendering,
This commit is contained in:
Tim Schaub
2013-11-04 14:28:46 -08:00
3 changed files with 43 additions and 1 deletions
+10
View File
@@ -3,6 +3,16 @@ goog.provide('ol.test.extent');
describe('ol.extent', function() {
describe('buffer', function() {
it('buffers an extent by some value', function() {
var extent = [-10, -20, 10, 20];
ol.extent.buffer(extent, 15);
expect(extent).to.eql([-25, -35, 25, 35]);
});
});
describe('clone', function() {
it('creates a copy of an extent', function() {