Skip to content
Browse files

adapt grid getPixel test specific mapnik versions

  • Loading branch information...
1 parent 3700488 commit 2e5bdce9fffdd27c42205b5d21f1f793d06bca3e @springmeyer springmeyer committed Jul 4, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 test/grid_view.test.js
View
6 test/grid_view.test.js
@@ -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) {

0 comments on commit 2e5bdce

Please sign in to comment.
Something went wrong with that request. Please try again.