diff --git a/lib/carto/renderer.js b/lib/carto/renderer.js
index 58e4c12..daf08ca 100644
--- a/lib/carto/renderer.js
+++ b/lib/carto/renderer.js
@@ -30,8 +30,8 @@ carto.Renderer.prototype.render = function render(m, callback) {
env = _(env).extend({filename:s.id});
// @TODO try/catch?
- var time = +new Date();
- var parsed = (carto.Parser(env)).parse(s.data);
+ var time = +new Date(),
+ parsed = (carto.Parser(env)).parse(s.data);
if (env.benchmark)
console.warn('Parsing time: ' + ((new Date() - time)) + 'ms');
return parsed.toList(env);
diff --git a/test/rendering/complex_cascades.mml b/test/rendering/complex_cascades.mml
index d9b326d..89b7515 100644
--- a/test/rendering/complex_cascades.mml
+++ b/test/rendering/complex_cascades.mml
@@ -1,11 +1,11 @@
{
- "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
+ "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"Stylesheet": [
"complex_cascades.mss"
],
"Layer": [{
"name": "world",
- "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
+ "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"Datasource": {
"file": "http://tilemill-data.s3.amazonaws.com/test_data/shape_demo.zip",
"type": "shape"
@@ -14,10 +14,10 @@
{
"class": "new",
"name": "countries",
- "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
+ "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"Datasource": {
"file": "http://tilemill-data.s3.amazonaws.com/test_data/shape_demo.zip",
"type": "shape"
}
}]
-}
\ No newline at end of file
+}
diff --git a/test/rendering/complex_cascades.result b/test/rendering/complex_cascades.result
index d2c58d1..ecf9c4a 100644
--- a/test/rendering/complex_cascades.result
+++ b/test/rendering/complex_cascades.result
@@ -1,37 +1,37 @@
-
diff --git a/test/rendering/filters.mml b/test/rendering/filters.mml
index 118bdde..3764b5d 100644
--- a/test/rendering/filters.mml
+++ b/test/rendering/filters.mml
@@ -1,11 +1,11 @@
{
- "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
+ "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"Stylesheet": [
"filters.mss"
],
"Layer": [{
"name": "world",
- "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
+ "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"Datasource": {
"file": "http://tilemill-data.s3.amazonaws.com/test_data/shape_demo.zip",
"type": "shape"
diff --git a/test/rendering/filters.result b/test/rendering/filters.result
index b8376b9..f2938a9 100644
--- a/test/rendering/filters.result
+++ b/test/rendering/filters.result
@@ -1,23 +1,21 @@
-
+
-
+
world
- [absolute path]
- shape
+
+
diff --git a/test/rendering/sharedclass.result b/test/rendering/sharedclass.result
index ea1f40d..d1fbb8b 100644
--- a/test/rendering/sharedclass.result
+++ b/test/rendering/sharedclass.result
@@ -5,12 +5,11 @@
-
ab
@@ -21,12 +20,11 @@
-
bc