The following is an attempt at an informal test suite for the embedding and detection of hatom feeds in html documents. The goal is to first see if the hAtom 0.1 spec makes sense with regard to the definition of feeds, roots, and required parameters, then to use as an aid to define the rules for consumer applications confronting multiple feeds.
For each test the following questions should be answered:
- Can a unique reference be made to each feed? Are there ambiguous references?
- Can a unique label or feed name be generated from each feed for the purpose of selection by the subscriber?
The Tests
- Test 1 – Document containing single feed with undefined hfeed root element
- Test 2 – Document containing single feed with defined hfeed root element
- Test 3 – Document containing two feeds positioned side by side, both with defined hfeed root elements
- Test 4 – Document containing two feeds positioned side by side, one with and one without defined hfeed root elements
- Test 5 – Document containing two feeds, 2nd in entry of 1st, both with defined hfeed root elements
- Test 6 – Document containing two feeds, 2nd in entry of 1st, one with and one without defined hfeed root elements
Not covered in these tests
- some additional permutations of which feed has id or hfeed defined
- more then 2 feeds
- author (or other element) resolution
- detection of feeds under non-optimal conditions (HTML vs. XHTML, invalid markup)
- the case of a consumer application being ‘subscribed’ to a url whose # of feeds changes over time