Skip to content

Commit

Permalink
adapt grid getPixel test specific mapnik versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Jul 4, 2012
1 parent 3700488 commit 2e5bdce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/grid_view.test.js
Expand Up @@ -19,7 +19,11 @@ describe('mapnik.GridView ', function() {

it('should have zero value for pixel', function() {
var pixel = view.getPixel(0, 0);
assert.equal(pixel, -2147483648);
if (mapnik.versions.mapnik_number <= 200100) {
assert.equal(pixel, 0);
} else {
assert.equal(pixel, -2147483648);
}
});

it('should be painted after rendering', function(done) {
Expand Down

0 comments on commit 2e5bdce

Please sign in to comment.