Bug 1504179 - Trigger first spell-checking by moving focus to contenteditable element; r=smaug
authorEdgar Chen <echen@mozilla.com>
Wed, 14 Nov 2018 12:38:46 +0000
changeset 502991 922dd9f3b12d9d0a35336d383dfc02a6e504bd1a
parent 502990 40d19766439121cd6d231dbee225243d14939db0
child 502992 235c2ef758a1e21f0520c5fed9cc3d4564f56c57
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1504179
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1504179 - Trigger first spell-checking by moving focus to contenteditable element; r=smaug The current test has an incorrect expectation for the first full spell-checking, it actually happens when first-time focus moves to contenteditable element (which trigger dictionary updating), not right after document loaded. Differential Revision: https://phabricator.services.mozilla.com/D11463
editor/libeditor/tests/test_bug1497480.html
--- a/editor/libeditor/tests/test_bug1497480.html
+++ b/editor/libeditor/tests/test_bug1497480.html
@@ -46,16 +46,17 @@ function getEditor() {
 add_task(async function() {
   await new Promise((resolve) => {
     SimpleTest.waitForFocus(() => {
       SimpleTest.executeSoon(resolve);
     }, window);
   });
 
   // Wait for first full spell-checking.
+  synthesizeMouseAtCenter(outOfTarget, {}, window);
   await new Promise((resolve) => {
     onSpellCheck(outOfTarget, function() {
       resolve();
     });
   });
 });
 
 // Should perform spell-checking when anchor navigates away from ShadowDOM.