           runs -> nextAnimationFrame()
 
         it 'adjusts the size of the control div to fit in the minimap', ->
-          expect(controls.clientWidth).toEqual(minimapElement.canvas.clientWidth)
+          expect(controls.clientWidth).toEqual(minimapElement.canvas.clientWidth / devicePixelRatio)
 
         it 'positions the controls div over the canvas', ->
           controlsRect = controls.getBoundingClientRect()

    atom.config.set 'minimap.charWidth', 2
    atom.config.set 'minimap.interline', 1
    atom.config.set 'minimap.textOpacity', 1
    atom.config.set 'minimap.devicePixelRatio', 1

    MinimapElement.registerViewProvider()


  transform = new WebKitCSSMatrix window.getComputedStyle(o).transform
  o.offsetLeft + transform.m41

devicePixelRatio = 2

sleep = (duration) ->
  t = new Date
