Bug 80191 - [CSS Regions] Convert some fast/regions pixel tests to reftests
Summary: [CSS Regions] Convert some fast/regions pixel tests to reftests
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: Nobody
URL:
Keywords:
Depends on:
Blocks: 57312
  Show dependency treegraph
 
Reported: 2012-03-02 13:50 PST by Rebecca Hauck
Modified: 2012-12-24 10:29 PST (History)
9 users (show)

See Also:


Attachments
Patch for the bug (120.33 KB, patch)
2012-03-06 10:37 PST, Rebecca Hauck
krit: review-
krit: commit-queue-
Details | Formatted Diff | Diff
Added more description to the Changelog about edits made to the original test file (120.56 KB, patch)
2012-03-13 12:14 PDT, Rebecca Hauck
no flags Details | Formatted Diff | Diff
fixed conflicts - re-uploading patch with more descriptive changelog (120.63 KB, patch)
2012-03-13 15:42 PDT, Rebecca Hauck
no flags Details | Formatted Diff | Diff
Moved diffs to top (120.58 KB, patch)
2012-03-16 15:29 PDT, Rebecca Hauck
no flags Details | Formatted Diff | Diff
Patch (31.19 KB, patch)
2012-12-24 00:39 PST, Mihnea Ovidenie
no flags Details | Formatted Diff | Diff
Patch 2 (399.38 KB, patch)
2012-12-24 00:43 PST, Mihnea Ovidenie
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rebecca Hauck 2012-03-02 13:50:25 PST
Convert some fast/regions pixel tests to reftests
Comment 1 Rebecca Hauck 2012-03-06 10:37:48 PST
Created attachment 130402 [details]
Patch for the bug
Comment 2 Dirk Schulze 2012-03-12 15:03:19 PDT
Comment on attachment 130402 [details]
Patch for the bug

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

> LayoutTests/ChangeLog:6
> +        Convert some fast/regions pixel tests to reftests
> +        https://bugs.webkit.org/show_bug.cgi?id=80191
> +
> +        Reviewed by NOBODY (OOPS!).

Your change log should be more explicit what you try to do with your patch, why you do it and how you do it. Also, you modified the test itself without a comment why you did it. Is the test still testing the same?

> LayoutTests/fast/regions/bottom-overflow-out-of-first-region.html:-6
> -        text-align: justify;

Why did you remove this line?

> LayoutTests/fast/regions/bottom-overflow-out-of-first-region.html:-61
> -    <div id="region3"></div>

It is not desirable to modify the test to match the reference. It should be the other way around. Why did you remove the region here?
Comment 3 Rebecca Hauck 2012-03-12 16:35:14 PDT
(In reply to comment #2)
> (From update of attachment 130402 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=130402&action=review
> 
> > LayoutTests/ChangeLog:6
> > +        Convert some fast/regions pixel tests to reftests
> > +        https://bugs.webkit.org/show_bug.cgi?id=80191
> > +
> > +        Reviewed by NOBODY (OOPS!).
> 
> Your change log should be more explicit what you try to do with your patch, why you do it and how you do it. Also, you modified the test itself without a comment why you did it. Is the test still testing the same?
> 
> > LayoutTests/fast/regions/bottom-overflow-out-of-first-region.html:-6
> > -        text-align: justify;
> 
> Why did you remove this line?

Ah, you're right, I should have added a comment about why I removed this.  The reason is that text-align:justify caused a lot of problems when trying to reconstruct a ref file that works on chromium as well as osx.  With the font differences across platforms it's difficult to match natural line breaks on each platform, but it's nearly impossible to match the spacing of text when it is fully justified. 


> 
> > LayoutTests/fast/regions/bottom-overflow-out-of-first-region.html:-61
> > -    <div id="region3"></div>
> 
> It is not desirable to modify the test to match the reference. It should be the other way around. Why did you remove the region here?

Unless I'm missing something about what the original test was testing, it wasn't actually testing anything in region3 - nothing flowed into it. Further, a 1 px black border was applied to it, but no dimensions were specified, so it appeared in the test file as a little glyph in the lower left corner of region2. Since it didn't appear that region3 was part of the test in the first place, I didn't think constructing a ref with the glyph was useful in this case.  Also note that the description of the test in the test file makes no reference to region3 either.  Is this ok?


I'll be sure to add more clarity when I make these sorts of changes to test files in the future though. Thanks!
Comment 4 Rebecca Hauck 2012-03-13 12:14:34 PDT
Created attachment 131689 [details]
Added more description to the Changelog about edits made to the original test file
Comment 5 Dirk Schulze 2012-03-13 15:16:30 PDT
(In reply to comment #4)
> Created an attachment (id=131689) [details]
> Added more description to the Changelog about edits made to the original test file

Seems that the patch could not get applied.
Comment 6 Rebecca Hauck 2012-03-13 15:42:58 PDT
Created attachment 131733 [details]
fixed conflicts - re-uploading patch with more descriptive changelog
Comment 7 Hajime Morrita 2012-03-15 23:33:19 PDT
Comment on attachment 131733 [details]
fixed conflicts - re-uploading patch with more descriptive changelog

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

> LayoutTests/ChangeLog:6100
> +2012-03-13  Rebecca Hauck  <rhauck@adobe.com>

The diff should be on the top of the file.
Comment 8 Rebecca Hauck 2012-03-16 15:29:53 PDT
Created attachment 132398 [details]
Moved diffs to top
Comment 9 Eric Seidel (no email) 2012-03-27 12:44:46 PDT
Comment on attachment 131733 [details]
fixed conflicts - re-uploading patch with more descriptive changelog

Cleared Hajime Morita's review+ from obsolete attachment 131733 [details] so that this bug does not appear in http://webkit.org/pending-commit.
Comment 10 Mihnea Ovidenie 2012-12-24 00:39:48 PST
Created attachment 180656 [details]
Patch
Comment 11 Mihnea Ovidenie 2012-12-24 00:43:56 PST
Created attachment 180657 [details]
Patch 2
Comment 12 WebKit Review Bot 2012-12-24 10:29:29 PST
Comment on attachment 180657 [details]
Patch 2

Clearing flags on attachment: 180657

Committed r138446: <http://trac.webkit.org/changeset/138446>
Comment 13 WebKit Review Bot 2012-12-24 10:29:35 PST
All reviewed patches have been landed.  Closing bug.