Bug 85913 - Test from bug 34875 does not work on chromium/mac
Summary: Test from bug 34875 does not work on chromium/mac
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Shezan Baig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-08 14:10 PDT by Shezan Baig
Modified: 2012-05-10 11:15 PDT (History)
7 users (show)

See Also:


Attachments
Patch (10.68 KB, patch)
2012-05-08 14:41 PDT, Shezan Baig
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ec2-cr-linux-02 (5.56 MB, application/zip)
2012-05-08 16:21 PDT, WebKit Review Bot
no flags Details
Patch (17.32 KB, patch)
2012-05-08 17:22 PDT, Oliver Hunt
no flags Details | Formatted Diff | Diff
Patch (17.33 KB, patch)
2012-05-08 17:29 PDT, Oliver Hunt
no flags Details | Formatted Diff | Diff
Patch (18.07 KB, patch)
2012-05-08 18:03 PDT, Oliver Hunt
no flags Details | Formatted Diff | Diff
Patch (18.05 KB, patch)
2012-05-08 18:07 PDT, Oliver Hunt
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ec2-cr-linux-03 (5.58 MB, application/zip)
2012-05-08 19:01 PDT, WebKit Review Bot
no flags Details
Revert back to a ref-test using one of the original patch. Tested on Cr-Linux / Mac + Apple Mac SnowLeopard without problem. (19.42 KB, patch)
2012-05-08 19:31 PDT, Julien Chaffraix
no flags Details | Formatted Diff | Diff
Patch (19.31 KB, patch)
2012-05-09 03:18 PDT, Shezan Baig
no flags Details | Formatted Diff | Diff
Patch (enables test on mac/Skipped) (19.86 KB, patch)
2012-05-10 07:26 PDT, Shezan Baig
no flags Details | Formatted Diff | Diff
Patch (with change from comment 27) (20.53 KB, patch)
2012-05-10 10:19 PDT, Shezan Baig
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Shezan Baig 2012-05-08 14:10:24 PDT
The Ahem font is not the same size on all platforms, we need to explicitly set the font-size
Comment 1 Shezan Baig 2012-05-08 14:41:53 PDT
Created attachment 140789 [details]
Patch
Comment 2 WebKit Review Bot 2012-05-08 16:21:11 PDT
Comment on attachment 140789 [details]
Patch

Attachment 140789 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/12643824

New failing tests:
fast/block/positioning/offsetLeft-offsetTop-multicolumn.html
Comment 3 WebKit Review Bot 2012-05-08 16:21:22 PDT
Created attachment 140808 [details]
Archive of layout-test-results from ec2-cr-linux-02

The attached test failures were seen while running run-webkit-tests on the chromium-ews.
Bot: ec2-cr-linux-02  Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'>  Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Comment 4 Oliver Hunt 2012-05-08 17:22:08 PDT
Created attachment 140825 [details]
Patch
Comment 5 Oliver Hunt 2012-05-08 17:29:43 PDT
Created attachment 140826 [details]
Patch
Comment 6 Oliver Hunt 2012-05-08 17:32:09 PDT
I'm waiting to see if the chrome ews manages to pass this test, and if it does i'll land
Comment 7 Shezan Baig 2012-05-08 17:40:49 PDT
Thanks Oliver, just got back home and saw the chromium ews fail.  I'm still not sure why it would fail though, doesn't setting the font & font-size guarantee that the size will be the same on all platforms?
Comment 8 Oliver Hunt 2012-05-08 17:49:54 PDT
(In reply to comment #7)
> Thanks Oliver, just got back home and saw the chromium ews fail.  I'm still not sure why it would fail though, doesn't setting the font & font-size guarantee that the size will be the same on all platforms?

No, it selects an appropriate font size to match what you've requested, it doesn't make perfect guarantees.  The way to fix it is as Ojan said: fixed-size inline-blocks -- no font details are involved in computing the metrics.
Comment 9 Oliver Hunt 2012-05-08 17:58:45 PDT
Apparently it still doesn't work on chrome.  It would be nice if chrome would provide the actual test output though.
Comment 10 Oliver Hunt 2012-05-08 18:03:10 PDT
Created attachment 140832 [details]
Patch
Comment 11 mitz 2012-05-08 18:03:42 PDT
(In reply to comment #8)
> (In reply to comment #7)
> > Thanks Oliver, just got back home and saw the chromium ews fail.  I'm still not sure why it would fail though, doesn't setting the font & font-size guarantee that the size will be the same on all platforms?
> 
> No, it selects an appropriate font size to match what you've requested, it doesn't make perfect guarantees.  The way to fix it is as Ojan said: fixed-size inline-blocks -- no font details are involved in computing the metrics.

Font details still factor into the width of spaces between those inline-block spans. Is there a reason why this test cannot use the Ahem font?
Comment 12 Shezan Baig 2012-05-08 18:05:09 PDT
Julien, should we just revert back to the ref-test from https://bugs.webkit.org/attachment.cgi?id=139014&action=review ?  That has the benefit of working in other browsers too :)
Comment 13 Oliver Hunt 2012-05-08 18:07:07 PDT
Created attachment 140833 [details]
Patch
Comment 14 Julien Chaffraix 2012-05-08 18:22:04 PDT
(In reply to comment #12)
> Julien, should we just revert back to the ref-test from https://bugs.webkit.org/attachment.cgi?id=139014&action=review ?  That has the benefit of working in other browsers too :)

No objection on that as it looks like getting something cross-platform using dumpAsText() is non-trivial. If anyone wants to revert to the ref-tests (or just ask me to), see https://bug-34875-attachments.webkit.org/attachment.cgi?id=139014

Dan, the test is already using Ahem but for some reason the output is not cross-platform (we thought somehow the font-size was chosen differently but it doesn't look like this is it).
Comment 15 Shezan Baig 2012-05-08 18:28:23 PDT
(In reply to comment #14)
> No objection on that as it looks like getting something cross-platform using dumpAsText() is non-trivial. If anyone wants to revert to the ref-tests (or just ask me to), see https://bug-34875-attachments.webkit.org/attachment.cgi?id=139014

Cool - I think I still have the test in my git repo.  I'll be out all day tomorrow, but I can upload a patch for this when I get back on Thursday.
Comment 16 WebKit Review Bot 2012-05-08 19:01:19 PDT
Comment on attachment 140833 [details]
Patch

Attachment 140833 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/12656477

New failing tests:
fast/block/positioning/offsetLeft-offsetTop-multicolumn.html
Comment 17 WebKit Review Bot 2012-05-08 19:01:32 PDT
Created attachment 140850 [details]
Archive of layout-test-results from ec2-cr-linux-03

The attached test failures were seen while running run-webkit-tests on the chromium-ews.
Bot: ec2-cr-linux-03  Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'>  Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Comment 18 Ojan Vafai 2012-05-08 19:02:53 PDT
FYI: suppressed the failure for Chromium in http://trac.webkit.org/changeset/116477.
Comment 19 Julien Chaffraix 2012-05-08 19:31:04 PDT
Created attachment 140854 [details]
Revert back to a ref-test using one of the original patch. Tested on Cr-Linux / Mac + Apple Mac SnowLeopard without problem.
Comment 20 Julien Chaffraix 2012-05-08 19:34:14 PDT
Comment on attachment 140854 [details]
Revert back to a ref-test using one of the original patch. Tested on Cr-Linux / Mac + Apple Mac SnowLeopard without problem.

Sorry for jumping in late, this was the original approach for the test and it is passing on several port / platforms. I didn't think it was worth doing a ref-test when reviewing so feel free to disagree on the approach.
Comment 21 Ojan Vafai 2012-05-08 22:34:51 PDT
(In reply to comment #20)
> (From update of attachment 140854 [details])
> Sorry for jumping in late, this was the original approach for the test and it is passing on several port / platforms. I didn't think it was worth doing a ref-test when reviewing so feel free to disagree on the approach.

I only see advantages to doing this as a reftest. What cost am I missing?
Comment 22 WebKit Review Bot 2012-05-08 22:40:08 PDT
Comment on attachment 140854 [details]
Revert back to a ref-test using one of the original patch. Tested on Cr-Linux / Mac + Apple Mac SnowLeopard without problem.

Rejecting attachment 140854 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2

Last 500 characters of output:
oning/offsetLeft-offsetTop-multicolumn-expected.txt'
patching file LayoutTests/fast/block/positioning/offsetLeft-offsetTop-multicolumn.html
patching file LayoutTests/platform/chromium/test_expectations.txt
Hunk #1 FAILED at 3920.
1 out of 1 hunk FAILED -- saving rejects to file LayoutTests/platform/chromium/test_expectations.txt.rej

Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force', u'--reviewer', u'Ojan Vafai']" exit_code: 1 cwd: /mnt/git/webkit-commit-queue/

Full output: http://queues.webkit.org/results/12655470
Comment 23 Shezan Baig 2012-05-09 03:18:05 PDT
Created attachment 140903 [details]
Patch
Comment 24 Antti Koivisto 2012-05-09 07:40:14 PDT
Skipped for Mac in fast/block/positioning/offsetLeft-offsetTop-multicolumn.html
Comment 25 Antti Koivisto 2012-05-09 08:17:10 PDT
I mean in http://trac.webkit.org/changeset/116523
Comment 26 Shezan Baig 2012-05-10 07:26:26 PDT
Created attachment 141164 [details]
Patch (enables test on mac/Skipped)
Comment 27 Julien Chaffraix 2012-05-10 09:56:20 PDT
Comment on attachment 141164 [details]
Patch (enables test on mac/Skipped)

View in context: https://bugs.webkit.org/attachment.cgi?id=141164&action=review

> LayoutTests/ChangeLog:19
> +        * platform/mac/Skipped:
> +        Re-enabled the test.

qt-mac/Skipped also has an entry, it should be re-enabled as part of this change too.

(btw, you can group the test_expectations.txt / Skipped edits together as it's a similar change)
Comment 28 Shezan Baig 2012-05-10 10:19:57 PDT
Created attachment 141193 [details]
Patch (with change from comment 27)
Comment 29 WebKit Review Bot 2012-05-10 11:15:15 PDT
Comment on attachment 141193 [details]
Patch (with change from comment 27)

Clearing flags on attachment: 141193

Committed r116663: <http://trac.webkit.org/changeset/116663>
Comment 30 WebKit Review Bot 2012-05-10 11:15:41 PDT
All reviewed patches have been landed.  Closing bug.