Skip to content

Commit

Permalink
Add regression test for issue #4641
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfstr authored and marijnh committed Apr 24, 2024
1 parent b7b1bbc commit 5a96634
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/comment_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,9 @@ namespace = "comment_";
cm.setCursor(1, 0)
cm.execCommand("toggleComment")
}, "<!-- foo\nbar -->", "<!-- foo\nbar -->")

test("toggleWithMultipleInnerComments", "javascript", function(cm) {
cm.execCommand("selectAll")
cm.execCommand("toggleComment")
}, "/* foo */\na\n/* bar */\nb", "// /* foo */\n// a\n// /* bar */\n// b")
})();

0 comments on commit 5a96634

Please sign in to comment.