add fake result. we're reworking the tests in the unstable branch
Conflicts: test/mess/nested_multiple.mss
This commit is contained in:
parent
c72aed5b11
commit
1c1055cae6
@ -51,7 +51,7 @@ exports['test compilation'] = function(beforeExit) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(stylize("SUCCESS", 'green') + ': ' + stylize(file, 'underline') + ' passed test.');
|
||||
// console.log(stylize("SUCCESS", 'green') + ': ' + stylize(file, 'underline') + ' passed test.');
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -72,8 +72,7 @@ exports['test compilation'] = function(beforeExit) {
|
||||
try {
|
||||
assert.deepEqual(resultXML, messXML);
|
||||
} catch (e) {
|
||||
assert.ok(false, 'XML output for ' + stylize(file, 'underline') + ' differs expected XML.');
|
||||
// console.log(stylize("FAIL", 'red') + ': ');
|
||||
console.log(stylize("FAIL", 'red') + ': XML output for ' + stylize(file, 'underline') + ' differs expected XML.');
|
||||
console.log(' ' + stylize('actual', 'bold') + ' ' + sys.inspect(e.actual, false, null).replace(/\n/g, '\n '));
|
||||
console.log(' ' + stylize('expected', 'bold') + ' ' + sys.inspect(e.expected, false, null).replace(/\n/g, '\n '));
|
||||
console.log('');
|
||||
@ -81,7 +80,7 @@ exports['test compilation'] = function(beforeExit) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(stylize("SUCCESS", 'green') + ': ' + stylize(file, 'underline') + ' passed test.');
|
||||
// console.log(stylize("SUCCESS", 'green') + ': ' + stylize(file, 'underline') + ' passed test.');
|
||||
});
|
||||
messParser.parseString('<Map>' + mess_result + '</Map>');
|
||||
});
|
||||
@ -91,10 +90,10 @@ exports['test compilation'] = function(beforeExit) {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
beforeExit(function() {
|
||||
if (failures) {
|
||||
assert.ok(false, failures + ' compilations failed.');
|
||||
assert.ok(false, failures + ' ' + (failures != 1 ? 'compilations' : 'compliation') + ' failed.');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
@ -2,6 +2,17 @@
|
||||
line-color: #000;
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
.blue, .green {
|
||||
line-color: #111;
|
||||
=======
|
||||
#world {
|
||||
polygon-fill: #eee;
|
||||
polygon-pattern-file: url('test.png');
|
||||
|
||||
*:outerborder {
|
||||
line-color: #ccc;
|
||||
line-width: 0.5;
|
||||
}
|
||||
>>>>>>> 484b705... add fake result. we're reworking the tests in the unstable branch
|
||||
}
|
||||
|
12
test/xml/nested_multiple.xml
Normal file
12
test/xml/nested_multiple.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<Style name="id-world-1">
|
||||
<Rule>
|
||||
<PolygonSymbolizer fill="#eeeeee"/>
|
||||
<PolygonPatternSymbolizer file="test.png"/>
|
||||
</Rule>
|
||||
</Style>
|
||||
|
||||
<Style name="id-world-1*--:outerborder-1">
|
||||
<Rule>
|
||||
<LineSymbolizer stroke="#cccccc" stroke-width="0.5"/>
|
||||
</Rule>
|
||||
</Style>
|
Loading…
Reference in New Issue
Block a user