diff --git a/lib/ace/virtual_renderer_test.js b/lib/ace/virtual_renderer_test.js index 104c46c0..9b1ed866 100644 --- a/lib/ace/virtual_renderer_test.js +++ b/lib/ace/virtual_renderer_test.js @@ -66,8 +66,8 @@ module.exports = { editor && editor.destroy(); editor = null; }, - "test: screen2text the column should be rounded to the next character edge" : function() { - if (!editor) return; + "test: screen2text the column should be rounded to the next character edge" : function(done) { + if (!editor) return done(); var renderer = editor.renderer; renderer.setPadding(0); @@ -86,12 +86,12 @@ module.exports = { testPixelToText(9, 0, 0, 1); testPixelToText(10, 0, 0, 1); testPixelToText(14, 0, 0, 1); - testPixelToText(15, 0, 0, 2); + testPixelToText(15, 0, 0, 2); + done(); }, "test scrollmargin + autosize": function(done) { - var editor = initAce(); - if (!editor) return; + if (!editor) return done(); editor.setOptions({ maxLines: 100, useWrapMode: true