fix renderer test
This commit is contained in:
parent
9e9aa8f328
commit
88d8cf3447
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue