Make render tests work on more devices
By setting a device pixel ratio of 1.0 and increasing the tolerance for raster reprojection tests, the render tests now also run from the console on OSX devices with retina display.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
user_pref("webgl.force-enabled", true);
|
||||
user_pref("webgl.disabled", false);
|
||||
user_pref("webgl.msaa-force", true);
|
||||
user_pref("layout.css.devPixelsPerPx", "1.0");
|
||||
|
||||
@@ -18,8 +18,7 @@ describe('ol.rendering.reproj.Tile', function() {
|
||||
tile.listen('change', function(e) {
|
||||
if (tile.getState() == ol.TileState.LOADED) {
|
||||
expect(tilesRequested).to.be(expectedRequests);
|
||||
resembleCanvas(tile.getImage(), expectedUrl,
|
||||
IMAGE_TOLERANCE, done);
|
||||
resembleCanvas(tile.getImage(), expectedUrl, 7.5, done);
|
||||
}
|
||||
});
|
||||
tile.load();
|
||||
|
||||
Reference in New Issue
Block a user