diff --git a/test/rendering.js b/test/rendering.js
index 130072f..632cfc4 100644
--- a/test/rendering.js
+++ b/test/rendering.js
@@ -29,6 +29,8 @@ helper.files('rendering', 'mml', function(file) {
resultParser.addListener('end', function(resultXML) {
var messParser = new xml2js.Parser();
messParser.addListener('end', function(messXML) {
+ removeAbsoluteDatasources(messXML);
+
completed = true;
try {
assert.deepEqual(messXML, resultXML);
@@ -37,7 +39,7 @@ helper.files('rendering', 'mml', function(file) {
helper.showDifferences(e);
throw '';
}
-
+
});
messParser.parseString(output);
});
@@ -52,3 +54,15 @@ helper.files('rendering', 'mml', function(file) {
});
}
});
+
+
+function removeAbsoluteDatasources(xml) {
+ xml.Layer.forEach(function(layer) {
+ layer.Datasource.Parameter.forEach(function(param) {
+ if (param.attr.name === 'file') {
+ param.text = "[absolute path]";
+ }
+ });
+ });
+
+}
\ No newline at end of file
diff --git a/test/rendering/complex_cascades.result b/test/rendering/complex_cascades.result
index cd62689..af3739d 100644
--- a/test/rendering/complex_cascades.result
+++ b/test/rendering/complex_cascades.result
@@ -41,7 +41,7 @@
world-line/__default__
world-polygon/__default__
- false
+ [absolute path]
shape
@@ -76,7 +76,7 @@
countries-line/__default__
countries-polygon/__default__
- false
+ [absolute path]
shape