From dc1f016626194d2f73e62e6ae6c083a7c36da013 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 19 Jan 2009 00:44:21 +0000 Subject: Another test harness for parser tests. This one compares the reserialised output, thus allowing us to sensibly test handling of invalid input and suchlike. Also, some rudimentary tests using this harness, and some documentation of the test data format. This doesn't use the dumping code from the library itself, as that's likely to disappear. svn path=/trunk/libcss/; revision=6144 --- test/data/parse2/README | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 test/data/parse2/README (limited to 'test/data/parse2/README') diff --git a/test/data/parse2/README b/test/data/parse2/README new file mode 100644 index 0000000..dec15f4 --- /dev/null +++ b/test/data/parse2/README @@ -0,0 +1,39 @@ +Parser testcases +================ + +Format +------ + +#data + +#errors + (ignored at present) +#expected + +#reset + +Format of cssom tree +-------------------- + + line ::= rule | declaration + rule ::= '| ' name + name ::= .+ + declaration ::= '| ' property-name ': ' property-value + +Example +------- + +#data +* { color: #ff0000; background-image: url("foo.png"); } +#errors +#expected +| * +| color: #ff000000 +| background-image: url("foo.png") +#reset + +TODO +---- + + + Permit nesting of rules (for nested block support) + -- cgit v1.2.3