             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()

          runs -> nextAnimationFrame()

        it 'adjusts the size of the control div to fit in the minimap', ->
          expect(controls.clientWidth).toEqual(minimapElement.canvas.clientWidth)

        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', 2

    MinimapElement.registerViewProvider()

