RESOLVED FIXED 75823
background position parsing test for CSS3 calc
https://bugs.webkit.org/show_bug.cgi?id=75823
Summary background position parsing test for CSS3 calc
Mike Lawther
Reported 2012-01-08 21:13:39 PST
background position parsing test for CSS3 calc
Attachments
Patch (20.93 KB, patch)
2012-01-08 21:15 PST, Mike Lawther
no flags
Patch (21.28 KB, patch)
2012-01-09 17:28 PST, Mike Lawther
no flags
Mike Lawther
Comment 1 2012-01-08 21:15:08 PST
Daniel Bates
Comment 2 2012-01-09 16:31:56 PST
Comment on attachment 121618 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=121618&action=review > LayoutTests/css3/calc/background-position-parsing-expected-mismatch.html:1 > +<!-- Note: This test is borrowed from ian@hixie.ch's "CSS background position: parsing" test --> How can you borrow a test? I take it that you mean that this test is a deriviative of one of Ian's tests. Which "CSS background position: parsing" test? Briefly using google I found the following tests: <http://hixie.ch/tests/adhoc/css/background/position>. Also, is there are version/date information for the original test? When was the original test accessed? I suggest using a more formal citation as a way to document when this derivative was created and what version of the original test was it based on. On another note, Ian's tests appear to be bound by the license <http://hixie.ch/tests/LICENSE>. This license states, among other conditions, that "you may use [the tests] as you see fit, including making changes. You may not, however, redistribute them or any derivative works in any form." Is the WebKit.org repository exempt from the redistribution clause?
Daniel Bates
Comment 3 2012-01-09 16:48:57 PST
Comment on attachment 121618 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=121618&action=review >> LayoutTests/css3/calc/background-position-parsing-expected-mismatch.html:1 >> +<!-- Note: This test is borrowed from ian@hixie.ch's "CSS background position: parsing" test --> > > How can you borrow a test? I take it that you mean that this test is a deriviative of one of Ian's tests. Which "CSS background position: parsing" test? Briefly using google I found the following tests: <http://hixie.ch/tests/adhoc/css/background/position>. Also, is there are version/date information for the original test? When was the original test accessed? I suggest using a more formal citation as a way to document when this derivative was created and what version of the original test was it based on. > > On another note, Ian's tests appear to be bound by the license <http://hixie.ch/tests/LICENSE>. This license states, among other conditions, that "you may use [the tests] as you see fit, including making changes. You may not, however, redistribute them or any derivative works in any form." Is the WebKit.org repository exempt from the redistribution clause? Also, what is the DOCTYPE for this test?
Mike Lawther
Comment 4 2012-01-09 17:01:36 PST
Comment on attachment 121618 [details] Patch Yes - it is a derivative (s/borrowed/derived/ in the comment). The test I derived from is in WebKit at LayoutTests/fast/backgrounds/background-position-parsing.html. I did not realise it was bound by a licence that affected derived works or distribution - I did not see a licence clause in the test checked into WebKit. I can certainly restore the expected file to be identical to LayoutTests/fast/backgrounds/background-position-parsing.html, but then I guess I'm stymied by the non-distribution of derived works (which the test file with -webkit-calc would be). As for DOCTYPE, I had previously been told not that DOCTYPE was unnecessary in a WebKit layout test, so I didn't include it.
Ian 'Hixie' Hickson
Comment 5 2012-01-09 17:12:30 PST
Feel free to use that test under the BSD license.
Daniel Bates
Comment 6 2012-01-09 17:18:56 PST
(In reply to comment #4) > (From update of attachment 121618 [details]) > [...] > As for DOCTYPE, I had previously been told not that DOCTYPE was unnecessary in a WebKit layout test, so I didn't include it. It's not necessary but it's preferred to include a DOCTYPE, especially for valid HTML5 documents.
Mike Lawther
Comment 7 2012-01-09 17:28:26 PST
Mike Lawther
Comment 8 2012-01-09 17:30:40 PST
Hixie - thanks for that! I've reverted the expected file to be identical to LayoutTests/fast/backgrounds/background-position-parsing.html, and the calc version is the same, except has -webkit-calc() sprinkled through it.
Daniel Bates
Comment 9 2012-01-09 17:38:06 PST
Comment on attachment 121768 [details] Patch Looks good to me.
WebKit Review Bot
Comment 10 2012-01-09 17:54:23 PST
Comment on attachment 121768 [details] Patch Clearing flags on attachment: 121768 Committed r104525: <http://trac.webkit.org/changeset/104525>
WebKit Review Bot
Comment 11 2012-01-09 17:54:28 PST
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.