Skip to content

Commit

Permalink
imrove test for highlight indent guide
Browse files Browse the repository at this point in the history
  • Loading branch information
mkslanc committed Oct 21, 2024
1 parent 6a4cdac commit b738f6a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/virtual_renderer_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ module.exports = {
editor._signal("input", {});
assert.equal(editor.renderer.content.textContent, "only visible for empty value");
},
"test: highlight indent guide": function () {
"test: highlight indent guide": function (done) {
editor.session.setValue(
"function Test() {\n" + " function Inner() {\n" + " \n" + " \n" + " }\n" + "}");
editor.setOption("highlightIndentGuides", false);
Expand All @@ -261,6 +261,14 @@ module.exports = {
editor.session.selection.$setSelection(1, 15, 1, 15);
editor.resize(true);
assertIndentGuides( 0);

editor.session.selection.clearSelection();
editor.session.selection.$setSelection(4, 5, 4, 5);

setTimeout(() => {
assertIndentGuides( 2);
done();
}, 100);
},
"test annotation marks": function() {
function findPointFillStyle(imageData, x, y) {
Expand Down

0 comments on commit b738f6a

Please sign in to comment.