Add test for malformed CartoCSS error (#115)

The test is disabled for it's failing, it isn't yet decided if
the regression has to be fixed or not.
This commit is contained in:
Sandro Santilli
2014-01-29 10:40:35 +01:00
parent 67e4e7e99b
commit 1b1b6b975e

View File

@@ -1176,6 +1176,20 @@ suite('server', function() {
});
});
// See https://github.com/CartoDB/Windshaft-cartodb/issues/115
test.skip("get'ing tile with not-strictly-valid style", function(done) {
var style = querystring.stringify({style: '#test_table{line-color:black}}', style_version: '2.0.0'});
assert.response(server, {
headers: {host: 'localhost'},
url: '/tiles/test_table/0/0/0.png?' + style, // madrid
method: 'GET',
encoding: 'binary'
},{}, function(res){
assert.equal(res.statusCode, 200, res.statusCode + ': ' + res.body);
done();
});
});
/////////////////////////////////////////////////////////////////////////////////
//
// DELETE CACHE