blob: cee5d850d56cdc2e21b3b1bf7b7737dc26b04c64 [file] [log] [blame]
This tests parsing and re-serialization of :lang CSS selector with string arguments
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS parseThenSerializeRule(':lang("a") { }') is ':lang("a") { }'
PASS parseThenSerializeRule(':lang("bb", cc) { }') is ':lang("bb", "cc") { }'
PASS parseThenSerializeRule(':lang("ddd", eee) { }') is ':lang("ddd", "eee") { }'
PASS parseThenSerializeRule(':lang("ddd", eee, ffff) { }') is ':lang("ddd", "eee", "ffff") { }'
PASS parseThenSerializeRule(':lang("ddd", eee, "ffff") { }') is ':lang("ddd", "eee", "ffff") { }'
PASS parseThenSerializeRule(':lang("*-1997") { }') is ':lang("*-1997") { }'
PASS parseThenSerializeRule(':lang("*-1997", "*-1998") { }') is ':lang("*-1997", "*-1998") { }'
PASS parseThenSerializeRule(':lang("*-1997", "*-1998", "*-1999") { }') is ':lang("*-1997", "*-1998", "*-1999") { }'
PASS parseThenSerializeRule(':lang("") { }') is ':lang("") { }'
PASS parseThenSerializeRule(':lang(foo, "bar", baz) { }') is ':lang("foo", "bar", "baz") { }'
PASS parseThenSerializeRule(':lang(foo, "bar" , baz) { }') is ':lang("foo", "bar", "baz") { }'
PASS parseThenSerializeRule(':lang( foo , "bar" , baz ) { }') is ':lang("foo", "bar", "baz") { }'
PASS successfullyParsed is true
TEST COMPLETE