DEV: uses focus helper for d-editor tests (#7610)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
Ember.Test.registerHelper("setTextareaSelection", function(
|
||||
app,
|
||||
textarea,
|
||||
selectionStart,
|
||||
selectionEnd
|
||||
) {
|
||||
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