css with regex

Hi all,
Just wanted to let you know I just submitted some code that performs the CSS
tests using regular expressions. Feel free to try it out and let me know if
you encounter any bugs. The only bug we're currently facing is incorrect
line number reporting on embedded and inline style sheets (although it works
for external stylesheets). This error is because we're pulling the line
number from moki document, and the moki document's version of the original
file is a little corrupt due to the e-mail that I sent out earlier this
week. I'll work on getting that sorted out soon, but any recommendations on
the previous e-mail would be wholeheartedly appreciated. However, this
implementation does print out snippets of offending code for all three style
methods.

If everyone approves of this method, I'm going to comment out the part of
the preprocessor that calls on our version of the css parser. While using
regular expressions, we no longer need it. Any strong objections to this
course of action?


Go ahead and run the "measures" and "stylesheet support" tests with the
following commands, respectively:

MeasuresTest 1 MEASURES
StyleSheetsSupportTest 1 STYLE_SHEETS_SUPPORT

(for measures, you can run 2 and 3 as well. 1 covers external stylesheets, 2
is embedded, and 3 is inline)

Also, in order to get successful runs, you might just want to comment out
the code in OneTestTest that compares the moki files and test files for
JUnit tests. There's been some weird variation in the moki document
generation that I'm trying to track down.

Lastly, the External Resources and DefaultInputMode tests are up and
working. I'll be spending the next day or so writing out some more tests for
these tests in order to iron out any bugs, but pretty much everything should
be there.

Cheers,
Laura

Received on Friday, 17 August 2007 14:47:09 UTC