Bug 104787 - [EFL][GTK] spelling-unified-emulation.html fails - word "zzz" cannot be found by enchant
Summary: [EFL][GTK] spelling-unified-emulation.html fails - word "zzz" cannot be found...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Grzegorz Czajkowski
URL:
Keywords:
Depends on:
Blocks: 104528
  Show dependency treegraph
 
Reported: 2012-12-12 02:33 PST by Grzegorz Czajkowski
Modified: 2013-01-11 06:59 PST (History)
6 users (show)

See Also:


Attachments
replace problemtaic "zzz" with "buzz" (2.78 KB, patch)
2012-12-12 07:56 PST, Grzegorz Czajkowski
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Grzegorz Czajkowski 2012-12-12 02:33:03 PST
Hi,

There is another test which fails for both EFL and GTK+ WebKit ports.
This est has been added in bug 70299, it allows legacy text check emulation in unified text check interface.

It fails due to word "zzz" which cannot be found by enchant library, checked for en_US dictionary, see result of command: echo "zzz" | enchant -l
Can we replace the problematic sound of snoring with a different phrase? That change will allow to test unified text checking by EFL and GTK+ WebKit ports.

I will upload patch as soon as I get your opinions.
Thanks
Comment 1 Mario Sanchez Prada 2012-12-12 06:29:05 PST
(In reply to comment #0)
> Hi,
> 
> There is another test which fails for both EFL and GTK+ WebKit ports.
> This est has been added in bug 70299, it allows legacy text check emulation in unified text check interface.
> 
> It fails due to word "zzz" which cannot be found by enchant library, checked for en_US dictionary, see result of command: echo "zzz" | enchant -l
> Can we replace the problematic sound of snoring with a different phrase? That change will allow to test unified text checking by EFL and GTK+ WebKit ports.

I'm not 100% sure about how they used this 'zzz' string but I guess it could be to test the following situation:

  "a test case containing a valid word which contains a bad word as a substring"

...assuming that 'zz' is expected to be invalid while 'zzz' should be valid.

If that's the case, and after checking that indeed 'zzz' is not considered valid by enchant with a en_US dictionary, I think there shouldn't be any big issue in changing that string with something different. Perhaps the words 'buzz' or 'buzzer' might be valid in case we don't want to change the 'zz' lines. 

> I will upload patch as soon as I get your opinions.

I think it doesn't hurts to change this as long as the same kind of situations keep being tested
Comment 2 Grzegorz Czajkowski 2012-12-12 07:27:02 PST
(In reply to comment #1)
> (In reply to comment #0)
> > Hi,
> > 
> > There is another test which fails for both EFL and GTK+ WebKit ports.
> > This est has been added in bug 70299, it allows legacy text check emulation in unified text check interface.
> > 
> > It fails due to word "zzz" which cannot be found by enchant library, checked for en_US dictionary, see result of command: echo "zzz" | enchant -l
> > Can we replace the problematic sound of snoring with a different phrase? That change will allow to test unified text checking by EFL and GTK+ WebKit ports.
> 
> I'm not 100% sure about how they used this 'zzz' string but I guess it could be to test the following situation:
> 
>   "a test case containing a valid word which contains a bad word as a substring"
> 
> ...assuming that 'zz' is expected to be invalid while 'zzz' should be valid.

The word "zzz" is tested in two ways:
1) single "zzz" word is verified - it's expected to valid
2) sentence "I would like to sleep, zzz" is verified - it's expected to be valid too.

> 
> > I will upload patch as soon as I get your opinions.
> 
> I think it doesn't hurts to change this as long as the same kind of situations keep being tested

Thanks, for your opinion
Comment 3 Grzegorz Czajkowski 2012-12-12 07:56:37 PST
Created attachment 179045 [details]
replace problemtaic "zzz" with "buzz"
Comment 4 Hajime Morrita 2012-12-12 15:54:03 PST
Comment on attachment 179045 [details]
replace problemtaic "zzz" with "buzz"

fair enough.
Comment 5 WebKit Review Bot 2012-12-12 23:58:30 PST
Comment on attachment 179045 [details]
replace problemtaic "zzz" with "buzz"

Clearing flags on attachment: 179045

Committed r137571: <http://trac.webkit.org/changeset/137571>
Comment 6 WebKit Review Bot 2012-12-12 23:58:34 PST
All reviewed patches have been landed.  Closing bug.