DEV: d-editor helper should be synchronous (#7706)

Also ensures trigger has happened before assertion and prevents leaking formatTextWithSelection into global context
This commit is contained in:
Joffrey JAFFEUX
2019-06-05 14:52:38 +02:00
committed by GitHub
parent a77d8bee68
commit df95457468
3 changed files with 11 additions and 13 deletions

View File

@ -1,15 +0,0 @@
Ember.Test.registerAsyncHelper("formatTextWithSelection", function(
app,
text,
[start, len]
) {
return [
'"',
text.substr(0, start),
"<",
text.substr(start, len),
">",
text.substr(start + len),
'"'
].join("");
});