- From: L. David Baron <dbaron@dbaron.org>
- Date: Tue, 15 Sep 2009 21:15:57 -0700
- To: public-css-testsuite@w3.org
- Message-ID: <20090916041557.GA16133@pickering.dbaron.org>
Attached are two files that I'm contributing to the CSS 2.1 test suite. The story behind them is a little complicated, though. In the tests that Microsoft contributed, there are 412 tests, named first-letter-punctuation-001.xht through first-letter-punctuation-412.xht , which are extremely repetitive. I don't think it's appropriate to have such repetitive tests in a manual test suite, because of the costs in time of both reviewing and running them. This test is an attempt to put all of those tests in a single file that can be easily verified at a quick glance. Furthermore, this test also attempts to test the negative: that any characters not in the punctuation classes given do not cause extension of the string covered by the :first-letter pseudo-element. This means the resulting test is extremely large, and loads very slowly. It's also failing, for a few characters, in all the browsers I've tried it in. I haven't yet analyzed if that's a bug in the test (e.g., making assumptions that it can't make about certain whitespace characters) or a bug in the browsers in question, though I suspect it's a bug in the test. However, I wanted to get the test contributed before the September 15 deadline even though it's incomplete. So, attached are: 1) an HTML file that is the beginning of the test 2) a python script to generate the large part of the test file (the hardcoded path in it should be changed to the location of the appropriate file from the Unicode 5.1.0 character database), which should replace the last 6 lines of (1) -David -- L. David Baron http://dbaron.org/ Mozilla Corporation http://www.mozilla.com/
Attachments
- text/html attachment: CSS21-t051202-first-letter-punct-extend.html
- text/x-python attachment: CSS21-t051202-first-letter-punct-extend-generator.py
Received on Wednesday, 16 September 2009 04:16:33 UTC