fix failing tests
This commit is contained in:
parent
bcf02a6671
commit
2818ccdabb
2 changed files with 10 additions and 10 deletions
|
|
@ -192,8 +192,8 @@ module.exports = {
|
||||||
assert.equal(["// abc", "// cde"].join("\n"), session.toString());
|
assert.equal(["// abc", "// cde"].join("\n"), session.toString());
|
||||||
|
|
||||||
var selection = editor.getSelectionRange();
|
var selection = editor.getSelectionRange();
|
||||||
assert.position(selection.start, 0, 4);
|
assert.position(selection.start, 0, 5);
|
||||||
assert.position(selection.end, 1, 4);
|
assert.position(selection.end, 1, 5);
|
||||||
},
|
},
|
||||||
|
|
||||||
"test: uncomment lines should perserve selection" : function() {
|
"test: uncomment lines should perserve selection" : function() {
|
||||||
|
|
@ -235,7 +235,7 @@ module.exports = {
|
||||||
editor.getSelection().selectDown();
|
editor.getSelection().selectDown();
|
||||||
|
|
||||||
editor.toggleCommentLines();
|
editor.toggleCommentLines();
|
||||||
assert.range(editor.getSelectionRange(), 0, 2, 1, 0);
|
assert.range(editor.getSelectionRange(), 0, 3, 1, 0);
|
||||||
|
|
||||||
// select up
|
// select up
|
||||||
var session = new EditSession(["abc", "cde"].join("\n"), new JavaScriptMode());
|
var session = new EditSession(["abc", "cde"].join("\n"), new JavaScriptMode());
|
||||||
|
|
@ -245,7 +245,7 @@ module.exports = {
|
||||||
editor.getSelection().selectUp();
|
editor.getSelection().selectUp();
|
||||||
|
|
||||||
editor.toggleCommentLines();
|
editor.toggleCommentLines();
|
||||||
assert.range(editor.getSelectionRange(), 0, 2, 1, 0);
|
assert.range(editor.getSelectionRange(), 0, 3, 1, 0);
|
||||||
},
|
},
|
||||||
|
|
||||||
"test: move lines down should select moved lines" : function() {
|
"test: move lines down should select moved lines" : function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue