Skip to content

Commit 5a96634

Browse files
davidfstrmarijnh
authored andcommitted
Add regression test for issue #4641
1 parent b7b1bbc commit 5a96634

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/comment_test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,9 @@ namespace = "comment_";
115115
cm.setCursor(1, 0)
116116
cm.execCommand("toggleComment")
117117
}, "<!-- foo\nbar -->", "<!-- foo\nbar -->")
118+
119+
test("toggleWithMultipleInnerComments", "javascript", function(cm) {
120+
cm.execCommand("selectAll")
121+
cm.execCommand("toggleComment")
122+
}, "/* foo */\na\n/* bar */\nb", "// /* foo */\n// a\n// /* bar */\n// b")
118123
})();

0 commit comments

Comments
 (0)