Bug 47645

Summary: Conversion to text test: editing/spelling/spellcheck-attribute.html
Product: WebKit Reporter: Hajime Morrita <morrita>
Component: Tools / TestsAssignee: Hajime Morrita <morrita>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, eric, rniwa, tkent, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on: 47659    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch tkent: review+

Hajime Morrita
Reported 2010-10-13 19:14:59 PDT
Should convert a pixel test to text based test.
Attachments
Patch (33.03 KB, patch)
2010-10-13 20:47 PDT, Hajime Morrita
no flags
Patch (73.76 KB, patch)
2010-10-22 01:10 PDT, Hajime Morrita
tkent: review+
Hajime Morrita
Comment 1 2010-10-13 20:47:15 PDT
Kent Tamura
Comment 2 2010-10-13 20:51:23 PDT
Comment on attachment 70705 [details] Patch ok
Ryosuke Niwa
Comment 3 2010-10-13 20:54:20 PDT
> LayoutTests/editing/spelling/spellcheck-attribute.html:37 > + if (window.textInputController) { > + var marked = (0 != textInputController.hasSpellingMarker(0, 2)); > + if (shouldMarked == marked) > + log("PASS:" + id); > + else > + log("FAIL:" + id); > + } This would fail on all platforms that do not implement textInputController. Are you sure all platforms that currently run this test implement textInputController? We can't do this conversion if the answer is no because we'll be losing the test coverage then.
Kent Tamura
Comment 4 2010-10-13 21:06:21 PDT
Comment on attachment 70705 [details] Patch win/gtk/qt has no textInputController.hasSpelingMarkers(), and we should remove expectation images for Chromium, and so on.
Kent Tamura
Comment 5 2010-10-13 21:08:55 PDT
(In reply to comment #3) > This would fail on all platforms that do not implement textInputController. Are you sure all platforms that currently run this test implement textInputController? We can't do this conversion if the answer is no because we'll be losing the test coverage then. GTK and Qt is skipping this test. So we can convert this if Windows port gets textInputController.hasSpellingMarkers().
Ryosuke Niwa
Comment 6 2010-10-13 21:15:32 PDT
(In reply to comment #1) > Created an attachment (id=70705) [details] > Patch You might find my script posted on https://bugs.webkit.org/show_bug.cgi?id=45100 useful. It lets you delete all png, checksum, etc... under LayoutTest/platform/
Hajime Morrita
Comment 7 2010-10-13 22:31:47 PDT
(In reply to comment #6) > You might find my script posted on https://bugs.webkit.org/show_bug.cgi?id=45100 useful. It lets you delete all png, checksum, etc... under LayoutTest/platform/ Thanks! I didn't noticed this.
Hajime Morrita
Comment 8 2010-10-22 01:10:33 PDT
Hajime Morrita
Comment 9 2010-10-22 01:13:29 PDT
> GTK and Qt is skipping this test. So we can convert this if Windows port gets textInputController.hasSpellingMarkers(). Landed Bug 47885. It's time to make this happen! I'm working on Bug 25539 and planning extend this test for that. So landing this early would be helpful.
Kent Tamura
Comment 10 2010-10-22 01:14:25 PDT
Comment on attachment 71534 [details] Patch Looks good!
Hajime Morrita
Comment 11 2010-10-22 01:21:44 PDT
WebKit Review Bot
Comment 12 2010-10-22 03:18:36 PDT
http://trac.webkit.org/changeset/70295 might have broken GTK Linux 64-bit Debug
Note You need to log in before you can comment on or make changes to this bug.