cleanup unit tests

This commit is contained in:
Fabian Jakobs 2012-04-06 17:55:23 +02:00
commit cbd29bc541
7 changed files with 53 additions and 51 deletions

View file

@ -178,7 +178,8 @@ var Document = function(text) {
position = this.$clipPosition(position);
if (this.getLength() >= 1)
// only detect new lines if the document has no line break yet
if (this.getLength() <= 1)
this.$detectNewLine(text);
var lines = this.$split(text);