Update slimerjs to v0.10.3

This commit is contained in:
Frederic Junod
2017-03-10 11:58:33 +01:00
parent 75e27cef98
commit 9ae7df918f
4 changed files with 7 additions and 15 deletions

View File

@@ -5,6 +5,9 @@ language: node_js
node_js:
- "6.1"
addons:
firefox: "latest"
cache:
directories:
- node_modules

View File

@@ -69,7 +69,7 @@
"resemblejs": "2.2.3",
"serve-files": "1.0.1",
"sinon": "2.0.0",
"slimerjs": "0.906.2"
"slimerjs": "0.10.3"
},
"eslintConfig": {
"extends": "openlayers",

View File

@@ -38,23 +38,12 @@ serve.createServer(function(err, server) {
url + '/test_rendering/index.html'
];
// TODO
// Workaround for https://github.com/laurentj/slimerjs/issues/333. When a
// version with the fix is released, replace block below with:
// var child = spawn(slimerjs.path, args, {stdio: 'pipe'});
// child.on('exit', function(code) {
// process.exit(code);
// }
var child = spawn(slimerjs.path, args, {stdio: 'pipe'});
child.stdout.on('data', function(data) {
process.stdout.write(data);
if (data == 'All tests passed.\n') {
process.exit(0);
}
});
child.on('exit', function() {
process.exit(1);
child.on('exit', function(code) {
process.exit(code);
});
});

View File

@@ -76,7 +76,7 @@ describe('ol.rendering.layer.VectorTile', function() {
map = createMap('canvas');
waitForTiles(source, {}, function() {
expectResemble(map, 'spec/ol/layer/expected/vectortile-canvas.png',
11.6, done);
11.7, done);
});
});