Closed Bug 1373762 Opened 7 years ago Closed 7 years ago

Make editor mochitests correctly wait for spell checking to finish

Categories

(Core :: DOM: Editor, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

No description provided.
Blocks: 1370754
Comment on attachment 8878605 [details] [diff] [review] Make editor mochitests correctly wait for spell checking to finish Review of attachment 8878605 [details] [diff] [review]: ----------------------------------------------------------------- ::: editor/libeditor/tests/test_bug432225.html @@ +60,5 @@ > getEdit().focus(); > sendString('aa OK '); > gMisspeltWords.push("aa"); > + SpecialPowers.Cu.import( > + "resource://testing-common/AsyncSpellCheckTestHelper.jsm", window); nit: It would be nicer if we did something more like the following, in order to avoid importing junk into the global scope, here and in the other tests: let {onSpellCheck} = SpecialPowers.Cu.import("resource://testing-common/AsyncSpellCheckTestHelper.jsm", {});
Attachment #8878605 - Flags: review?(michael) → review+
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/f0bdf9af0636 Make editor mochitests correctly wait for spell checking to finish; r=mystor
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Assignee: nobody → ehsan
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: