DEV: uses focus helper for d-editor tests (#7610)
This commit is contained in:
+6
@@ -7,3 +7,9 @@ Ember.Test.registerHelper("setTextareaSelection", function(
|
||||
textarea.selectionStart = selectionStart;
|
||||
textarea.selectionEnd = selectionEnd;
|
||||
});
|
||||
|
||||
Ember.Test.registerHelper("getTextareaSelection", function(app, textarea) {
|
||||
var start = textarea.selectionStart;
|
||||
var end = textarea.selectionEnd;
|
||||
return [start, end - start];
|
||||
});
|
||||
Reference in New Issue
Block a user