Bug 178759

Summary: Test fast/writing-mode/english-bt-text-with-spelling-marker.html should wait for editing commands to complete
Product: WebKit Reporter: Daniel Bates <dbates>
Component: Tools / TestsAssignee: Daniel Bates <dbates>
Status: RESOLVED FIXED    
Severity: Normal CC: lforschler, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar, LayoutTestFailure, MakingBotsRed
Version: WebKit Local Build   
Hardware: All   
OS: All   
Bug Depends on: 178671    
Bug Blocks:    
Attachments:
Description Flags
Layout test rniwa: review+

Description Daniel Bates 2017-10-24 16:17:36 PDT
The test fast/writing-mode/english-bt-text-with-spelling-marker.html (added in bug #223845) should wait for editing commands to complete to ensure the spellcheck is triggered.
Comment 1 Daniel Bates 2017-10-24 16:22:50 PDT
Created attachment 324747 [details]
Layout test
Comment 2 Daniel Bates 2017-10-24 16:24:42 PDT
(In reply to Daniel Bates from comment #0)
> The test fast/writing-mode/english-bt-text-with-spelling-marker.html (added
> in bug #223845) should wait for editing commands to complete to ensure the
> spellcheck is triggered.

*bug #178671
Comment 3 Ryosuke Niwa 2017-10-24 16:25:44 PDT
Comment on attachment 324747 [details]
Layout test

View in context: https://bugs.webkit.org/attachment.cgi?id=324747&action=review

> LayoutTests/ChangeLog:9
> +        character is typed before proceeding to type the next character.

Should mention that we're inserting a delay instead of saying they're typed.

> LayoutTests/fast/writing-mode/english-bt-text-with-spelling-marker-expected.html:32
> +    for (var c of text)

Use const?

> LayoutTests/fast/writing-mode/english-bt-text-with-spelling-marker.html:36
> +    for (var c of text)

Ditto.
Comment 4 Daniel Bates 2017-10-24 16:31:31 PDT
(In reply to Ryosuke Niwa from comment #3)
> Comment on attachment 324747 [details]
> Layout test
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=324747&action=review
> 
> > LayoutTests/ChangeLog:9
> > +        character is typed before proceeding to type the next character.
> 
> Should mention that we're inserting a delay instead of saying they're typed.
> 

Will change the text in the ChangeLog to read:

Make use of typeCharacterCommand() from (LayoutTests/editing/editing.js) to type each character with a delay and delay test completion until all characters have been typed.

> > LayoutTests/fast/writing-mode/english-bt-text-with-spelling-marker-expected.html:32
> > +    for (var c of text)
> 
> Use const?
> 

Will fix before landing.

> > LayoutTests/fast/writing-mode/english-bt-text-with-spelling-marker.html:36
> > +    for (var c of text)
> 
> Ditto.

Will fix before landing.
Comment 5 Daniel Bates 2017-10-24 16:33:12 PDT
Committed r223938: <https://trac.webkit.org/changeset/223938>
Comment 6 Daniel Bates 2017-10-24 16:34:36 PDT
For completeness, the test fast/writing-mode/english-bt-text-with-spelling-marker.html was seen as flaky on the Apple Sierra Release WK1 (Tests) bot:
https://build.webkit.org/results/Apple%20Sierra%20Release%20WK1%20(Tests)/r223917%20(5549)/results.html
https://build.webkit.org/builders/Apple%20Sierra%20Release%20WK1%20(Tests)/builds/5549
Comment 7 Daniel Bates 2017-10-25 10:28:04 PDT
The test is still flaky :(

Apple El Capitan Release WK1 (Tests):
https://build.webkit.org/results/Apple%20El%20Capitan%20Release%20WK1%20(Tests)/r223952%20(5724)/results.html
Comment 8 Daniel Bates 2017-10-25 10:28:21 PDT
(In reply to Daniel Bates from comment #7)
> The test is still flaky :(
> 
> Apple El Capitan Release WK1 (Tests):
> https://build.webkit.org/results/
> Apple%20El%20Capitan%20Release%20WK1%20(Tests)/r223952%20(5724)/results.html

Committed attempt to fix the flakiness in <https://trac.webkit.org/changeset/223959>.
Comment 9 Radar WebKit Bug Importer 2017-11-15 12:48:30 PST
<rdar://problem/35568189>