<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>45633</bug_id>
          
          <creation_ts>2010-09-12 22:05:46 -0700</creation_ts>
          <short_desc>[Chromium][DRT] Spellcheck doesn&apos;t work except for Mac DRT.</short_desc>
          <delta_ts>2011-05-11 04:18:38 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hajime Morrita">morrita</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>hbono</cc>
    
    <cc>tkent</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>277967</commentid>
    <comment_count>0</comment_count>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2010-09-12 22:05:46 -0700</bug_when>
    <thetext>Current Chromium DRT does not run a spellcheck except for Mac
and spellcheck-related tests are not usable. (See WebViewHost::spellCheck() for detail.)

Mac DRT uses MockSpellCheker class to do that check.
So using it would on Windows and Linux looks fine in general.
But there are concerns:

- A: If we simply enable MockSpellChecker on Windows/Linux, many pixel expectations under editing/* will get broken and massive rebaselinining will be required.
- B: If we add an API to DRT that enables/disables spellchecking, such rebaselining could be avoided. But porting such API to other ports will need hassle.

Any thoughts?
At this time I think A is preferable but its landing need care.
Your feedbacks and ideas are appreciated!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278037</commentid>
    <comment_count>1</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2010-09-13 00:46:01 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; - A: If we simply enable MockSpellChecker on Windows/Linux, many pixel expectations under editing/* will get broken and massive rebaselinining will be required.

How many tests will be affected?  Can we reduce the number by dumpAsText()/dump-as-markup.js conversion?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278045</commentid>
    <comment_count>2</comment_count>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2010-09-13 01:20:49 -0700</bug_when>
    <thetext>&gt; How many tests will be affected?  Can we reduce the number by dumpAsText()/dump-as-markup.js conversion?

We have about 700 png files under LayoutTests/platform/chromium-win/editing/ now.
I&apos;m not sure which fraction of them contains a ill-spelled word... I can run a experiment though.
On converting them to dump-as-markup, it will be definitely helpful. 
It is longer way than rebaselining, though.

BTW, it might be worth to have something like a &quot;textify task force&quot;
as a part of our editing improvement effort because
most of editing test can be converted to the text-style, I guess.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278227</commentid>
    <comment_count>3</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-09-13 08:27:39 -0700</bug_when>
    <thetext>I vote for A if it&apos;s not too hard.  I think you can use the layout test try bots to see how many tests would need to be rebaselined.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278644</commentid>
    <comment_count>4</comment_count>
    <who name="Hironori Bono">hbono</who>
    <bug_when>2010-09-13 18:59:10 -0700</bug_when>
    <thetext>Morita-san,

Even though I&apos;m not a WebKit guru, I think the option A may need rebaselines every time when we chage the spell-checking code of WebKit. I&apos;m not sure whether it is acceptable.

Regards,

Hironori Bono</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278653</commentid>
    <comment_count>5</comment_count>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2010-09-13 19:18:28 -0700</bug_when>
    <thetext>&gt; Even though I&apos;m not a WebKit guru, I think the option A may need rebaselines every time when we chage the spell-checking code of WebKit. I&apos;m not sure whether it is acceptable.
Good point. This is what I encountered when landing http://webkit.org/b/41423.
as Kent-san mentioned,
- C: turning editing tests into dump-as-markup
becomes more appealing now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>401897</commentid>
    <comment_count>6</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2011-05-11 04:18:38 -0700</bug_when>
    <thetext>I think this was resolved some months ago.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>