Skip to content

Commit

Permalink
Remove cursor mark test data from codemirror adapter test
Browse files Browse the repository at this point in the history
we don’t use mark as user’s cursor
  • Loading branch information
jackycute committed May 14, 2017
1 parent d512436 commit c1d107f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/phantomjs/test-codemirror-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,11 @@
var selection1 = new Selection([new Range(3,3), new Range(9,16)]);
var handle1 = cmAdapter.setOtherSelection(selection1, '#ff0000', 'tim');
deepEqual(cm.getAllMarks().map(function (x) { return x.find(); }), [
new CodeMirror.Pos(0, 3),
{ from: new CodeMirror.Pos(0, 9), to: new CodeMirror.Pos(1, 5) }
], "the codemirror instance should contain the other user's selection as marks");
var selection2 = new Selection([new Range(4,6)]);
var handle2 = cmAdapter.setOtherSelection(selection2, '#0000ff', 'tim');
deepEqual(cm.getAllMarks().map(function (x) { return x.find(); }), [
new CodeMirror.Pos(0, 3),
{ from: new CodeMirror.Pos(0, 9), to: new CodeMirror.Pos(1, 5) },
{ from: new CodeMirror.Pos(0, 4), to: new CodeMirror.Pos(0, 6) }
], "the codemirror instance should contain the other users' selection as marks");
Expand Down

0 comments on commit c1d107f

Please sign in to comment.