RESOLVED FIXED 85913
Test from bug 34875 does not work on chromium/mac
https://bugs.webkit.org/show_bug.cgi?id=85913
Summary Test from bug 34875 does not work on chromium/mac
Shezan Baig
Reported 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
Attachments
Patch (10.68 KB, patch)
2012-05-08 14:41 PDT, Shezan Baig
no flags
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
Patch (17.32 KB, patch)
2012-05-08 17:22 PDT, Oliver Hunt
no flags
Patch (17.33 KB, patch)
2012-05-08 17:29 PDT, Oliver Hunt
no flags
Patch (18.07 KB, patch)
2012-05-08 18:03 PDT, Oliver Hunt
no flags
Patch (18.05 KB, patch)
2012-05-08 18:07 PDT, Oliver Hunt
no flags
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
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
Patch (19.31 KB, patch)
2012-05-09 03:18 PDT, Shezan Baig
no flags
Patch (enables test on mac/Skipped) (19.86 KB, patch)
2012-05-10 07:26 PDT, Shezan Baig
no flags
Patch (with change from comment 27) (20.53 KB, patch)
2012-05-10 10:19 PDT, Shezan Baig
no flags
Shezan Baig
Comment 1 2012-05-08 14:41:53 PDT
WebKit Review Bot
Comment 2 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
WebKit Review Bot
Comment 3 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
Oliver Hunt
Comment 4 2012-05-08 17:22:08 PDT
Oliver Hunt
Comment 5 2012-05-08 17:29:43 PDT
Oliver Hunt
Comment 6 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
Shezan Baig
Comment 7 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?
Oliver Hunt
Comment 8 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.
Oliver Hunt
Comment 9 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.
Oliver Hunt
Comment 10 2012-05-08 18:03:10 PDT
mitz
Comment 11 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?
Shezan Baig
Comment 12 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 :)
Oliver Hunt
Comment 13 2012-05-08 18:07:07 PDT
Julien Chaffraix
Comment 14 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).
Shezan Baig
Comment 15 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.
WebKit Review Bot
Comment 16 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
WebKit Review Bot
Comment 17 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
Ojan Vafai
Comment 18 2012-05-08 19:02:53 PDT
FYI: suppressed the failure for Chromium in http://trac.webkit.org/changeset/116477.
Julien Chaffraix
Comment 19 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.
Julien Chaffraix
Comment 20 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.
Ojan Vafai
Comment 21 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?
WebKit Review Bot
Comment 22 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
Shezan Baig
Comment 23 2012-05-09 03:18:05 PDT
Antti Koivisto
Comment 24 2012-05-09 07:40:14 PDT
Skipped for Mac in fast/block/positioning/offsetLeft-offsetTop-multicolumn.html
Antti Koivisto
Comment 25 2012-05-09 08:17:10 PDT
Shezan Baig
Comment 26 2012-05-10 07:26:26 PDT
Created attachment 141164 [details] Patch (enables test on mac/Skipped)
Julien Chaffraix
Comment 27 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)
Shezan Baig
Comment 28 2012-05-10 10:19:57 PDT
Created attachment 141193 [details] Patch (with change from comment 27)
WebKit Review Bot
Comment 29 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>
WebKit Review Bot
Comment 30 2012-05-10 11:15:41 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.