Skip to content

Commit

Permalink
cleaned up tests to match current api in bindings.
Browse files Browse the repository at this point in the history
  • Loading branch information
pagameba committed Nov 17, 2010
1 parent f72315c commit 2185909
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests.js
Expand Up @@ -6,15 +6,15 @@ var util = require('util'),
mapfile = 'test.map';


var map = new mapserver.loadMap('./data','./data');
var map = new mapserver.loadMap(path.join(datadir, mapfile),datadir);

console.log("map size: (" + map.width + "," + map.height + ")");
map.width = 600;
map.height = 600;
console.log("map size: (" + map.width + "," + map.height + ")");


var buffer = map.drawMapBuffer();
var buffer = map.drawMap();
buffer = buffer.slice(0,buffer.length);
fs.writeFile('test_buffer.gif', buffer, function(err) {
if (err) throw err;
Expand Down

0 comments on commit 2185909

Please sign in to comment.