Use fixed pixel ratio for hit tolerance tests

This commit is contained in:
Andreas Hocevar
2017-02-08 16:30:16 +01:00
parent c1af0de860
commit 8581e17593

View File

@@ -36,6 +36,7 @@ describe('ol.renderer.canvas.Map', function() {
target.style.height = '100px'; target.style.height = '100px';
document.body.appendChild(target); document.body.appendChild(target);
map = new ol.Map({ map = new ol.Map({
pixelRatio: 1,
target: target, target: target,
view: new ol.View({ view: new ol.View({
center: [0, 0], center: [0, 0],