DEV: uses focus helper for d-editor tests (#7610)

This commit is contained in:
Joffrey JAFFEUX
2019-05-27 17:31:11 +02:00
committed by GitHub
parent 669bfaba30
commit 192562745f
5 changed files with 14 additions and 15 deletions
@@ -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];
});