W3C home > Mailing lists > Public > public-multilingualweb-lt-tests@w3.org > September 2012

Locale Filter test suite

From: Shaun McCance <shaunm@gnome.org>
Date: Tue, 11 Sep 2012 15:52:55 -0400
To: public-multilingualweb-lt-tests@w3.org
Message-ID: <1347393175.28106.29.camel@recto>
The current locale filter tests don't exercise any of the
extended language range functionality, or using an empty
filter to exclude all translations.

It doesn't make a difference in generating the test output,
because that only tests applying the rules to get the data
categories, and not round-trip behavior based on them. But
for people like me who use the test suite as the basis for
their regression tests, it's really useful.

I've attached a proposed source XML file along with what I
believe is the correct test output for it. I can modify the
rest of the files if people agree.

--
Shaun


/book	its:localeFilterList="*"
/book/@its:version	its:localeFilterList="*"
/book/info[1]	its:localeFilterList="*"
/book/info[1]/its:rules[1]	its:localeFilterList="*"
/book/info[1]/its:rules[1]/@version	its:localeFilterList="*"
/book/info[1]/its:rules[1]/its:localeFilterRule[1]	its:localeFilterList="*"
/book/info[1]/its:rules[1]/its:localeFilterRule[1]/@selector	its:localeFilterList="*"
/book/info[1]/its:rules[1]/its:localeFilterRule[1]/@localeFilterList	its:localeFilterList="*"
/book/info[1]/its:rules[1]/its:localeFilterRule[2]	its:localeFilterList="*"
/book/info[1]/its:rules[1]/its:localeFilterRule[2]/@selector	its:localeFilterList="*"
/book/info[1]/its:rules[1]/its:localeFilterRule[2]/@localeFilterList	its:localeFilterList="*"
/book/info[1]/its:rules[1]/its:localeFilterRule[3]	its:localeFilterList="*"
/book/info[1]/its:rules[1]/its:localeFilterRule[3]/@selector	its:localeFilterList="*"
/book/info[1]/its:rules[1]/its:localeFilterRule[3]/@localeFilterList	its:localeFilterList="*"
/book/info[1]/legalnotice[1]	its:localeFilterList="en-CA, fr-CA"
/book/info[1]/legalnotice[1]/@role	its:localeFilterList="en-CA, fr-CA"
/book/info[1]/legalnotice[1]/para[1]	its:localeFilterList="en-CA, fr-CA"
/book/info[1]/legalnotice[2]	its:localeFilterList="*-CH"
/book/info[1]/legalnotice[2]/@role	its:localeFilterList="*-CH"
/book/info[1]/legalnotice[2]/para[1]	its:localeFilterList="*-CH"
/book/info[1]/remark[1]	its:localeFilterList=""



Received on Tuesday, 11 September 2012 19:53:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 September 2012 19:53:20 GMT