Currently, the most spellchecking tests are using synchronous implementation. To ensure code coverage we should refactor them to use its asynchronous version.
Created attachment 219753[details]
worker
This is first attempt to use asynchronous spellchecking in layout tests. It'll probably turn Mac bot red, However I'd like to see yours comments.
Created attachment 219760[details]
Archive of layout-test-results from webkit-ews-04 for mac-mountainlion
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-04 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Created attachment 219762[details]
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-10 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Created attachment 219764[details]
Archive of layout-test-results from webkit-ews-07 for mac-mountainlion
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-07 Port: mac-mountainlion Platform: Mac OS X 10.8.5
(In reply to comment #11)
> Looks like the tests are failing on Mac?
Right. Those basically check grammar which I could not test due to only Mac supports it. I'll take care of them.
Created attachment 220621[details]
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-10 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Comment on attachment 220616[details]
patch
We need to mark new failing tests on mac-wk2 as it does not support async spellchecking yet (see bug 125690). I will add them in next patch.
Created attachment 220624[details]
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-09 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Created attachment 220714[details]
Archive of layout-test-results from webkit-ews-01 for mac-mountainlion
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-01 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Hi Ryosuke, Alexey and Darin.
I'm looking forward to see your comments. The latest patch contains pixel rebaseline which cause style error that I've never seen before.
Comment on attachment 220716[details]
fix design-mode-spellcheck-off.html
View in context: https://bugs.webkit.org/attachment.cgi?id=220716&action=review
I'm sorry this patch is way too big. Could you split this up into smaller patches so that we can do more thorough review of the patch?
> LayoutTests/ChangeLog:45
> + elements, affects mouse down's position. Now Its margin is 16.
Nit: its. (I should not be capitalized).
> LayoutTests/ChangeLog:46
> + Origin description was created by single <p> and its margin was 8.
Original? What are you referring to by "origin description"?
> LayoutTests/editing/spelling/design-mode-spellcheck-off.html:5
> +<head>
> +<script src="../../resources/js-test-pre.js"></script>
> +</head>
We don't need to add head just to include a script. Put this in the body.
> LayoutTests/editing/spelling/design-mode-spellcheck-off.html:-14
> -if (document.activeElement != document.body)
> - document.body.appendChild(document.createTextNode('FAIL: active element before click is not body element'));
Where did this check disappear?
> LayoutTests/editing/spelling/grammar-edit-word-expected.txt:-21
> -document.execCommand("InsertText", false, "You has the right.")
> -PASS internals.hasGrammarMarker(4, 3) is true
> -Delete the end of this sentence until it becomes "You ha".
> -testRunner.execCommand("DeleteBackward")
> -testRunner.execCommand("DeleteBackward")
> -testRunner.execCommand("DeleteBackward")
> -testRunner.execCommand("DeleteBackward")
> -testRunner.execCommand("DeleteBackward")
> -testRunner.execCommand("DeleteBackward")
> -testRunner.execCommand("DeleteBackward")
> -testRunner.execCommand("DeleteBackward")
> -testRunner.execCommand("DeleteBackward")
> -testRunner.execCommand("DeleteBackward")
> -testRunner.execCommand("DeleteBackward")
> -testRunner.execCommand("DeleteBackward")
> -PASS internals.hasGrammarMarker(4, 2) is false
Removing these lines is not great. Now I have no idea what offset 4 and 3 and 2 means in this output.
2013-12-20 05:54 PST, Grzegorz Czajkowski
2013-12-20 06:32 PST, Grzegorz Czajkowski
2013-12-20 06:51 PST, Grzegorz Czajkowski
2013-12-20 08:28 PST, Build Bot
2013-12-20 09:01 PST, Build Bot
2013-12-20 09:17 PST, Build Bot
2014-01-08 02:22 PST, Grzegorz Czajkowski
2014-01-08 02:23 PST, Grzegorz Czajkowski
2014-01-08 03:27 PST, Build Bot
2014-01-08 04:22 PST, Build Bot
2014-01-09 03:56 PST, Grzegorz Czajkowski
2014-01-09 04:33 PST, Build Bot
2014-01-09 04:44 PST, Grzegorz Czajkowski