Bug 30702 - WebKit has no tests containing complex Arabic text
Summary: WebKit has no tests containing complex Arabic text
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-22 18:38 PDT by Evan Martin
Modified: 2012-02-23 11:06 PST (History)
5 users (show)

See Also:


Attachments
simple arabic html; will include in a patch as well (578 bytes, text/html)
2009-10-22 18:38 PDT, Evan Martin
no flags Details
page + changelog (4.65 KB, patch)
2009-10-22 18:58 PDT, Evan Martin
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evan Martin 2009-10-22 18:38:49 PDT
Created attachment 41710 [details]
simple arabic html; will include in a patch as well

I fixed a Chromium-side bug related to the way we handle complex joining characters in Arabic, and I was surprised to discover that no layout tests changed.

We *do* have tests with Hebrew combining characters, but due to subtle details (Hebrew vowels are in the Hebrew class, while Arabic combining characters are in the inherited Unicode class) they were unaffected by my change.

So here's a little bit of Arabic text with some English around it to help hapless observers.
Comment 1 Evan Martin 2009-10-22 18:58:48 PDT
Created attachment 41711 [details]
page + changelog
Comment 2 Evan Martin 2009-10-22 19:10:58 PDT
How do I include a new image baseline?  I have the Mac baseline image here but I'm not sure what to do with it.
Comment 3 Tony Chang 2009-10-23 10:01:30 PDT
(In reply to comment #2)
> How do I include a new image baseline?  I have the Mac baseline image here but
> I'm not sure what to do with it.

svn-create-patch will base64 encode the images into the patch file.  Maybe bugzilla-tool knows how to do that too?
Comment 4 Eric Seidel (no email) 2009-10-23 14:42:14 PDT
bugzilla-tool just uses svn-create-patch under the covers for SVN checkouts. For git checkouts it uses 'git diff' which doesn't really help us, sadly.
http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/modules/scm.py

We need to make bugzilla-tool or svn-create-patch know how to make patches for git repositories.
Comment 5 Evan Martin 2009-10-26 14:46:58 PDT
Before I land this, I think I'm going to include some more complicated text just to verify I cover all of the edge cases.
Comment 6 Eric Seidel (no email) 2010-01-19 16:48:11 PST
Evan?  Should this bug still be open?
Comment 7 Evan Martin 2010-01-19 16:55:18 PST
Hm, yeah.  I should finish it.  :(
Comment 8 Ebrahim Byagowi 2012-02-22 13:20:58 PST
Hi, I think someone should add a testcase for joining:
data:text/html;charset=utf-8,<span style="font-size:1000%"><span>%D8%B3</span><span>%D8%B3</span></span>
Please compare it on FF, IE and webkit based browsers.
Comment 9 Alexey Proskuryakov 2012-02-23 10:54:02 PST
> data:text/html;charset=utf-8,<span style="font-size:1000%"><span>%D8%B3</span><span>%D8%B3</span></span>

That case is tracked in bug 77790 (likely to be duplicate of another older one). It's not a matter of adding a test.
Comment 10 Evan Martin 2012-02-23 11:06:07 PST
Wow, I have nearly no recollection of filing this bug!

Looking at the patch, it does seem like a useful test baseline.  But it is necessarily an image test, and adding those is both difficult to do for me (haven't set up a build on my Mac in a while) and adds cost to the WebKit project (more images make tests run slower etc.).  So I'm unlikely to finish this.  If someone wants to just close this bug I wouldn't be opposed.