1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/feeds/test/xml/rfc4287/entry_link_enclosure.xml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 +<?xml version="1.0" encoding="iso-8859-1"?> 1.5 +<!-- 1.6 + 1.7 +Description: item enclosure works 1.8 +Expect: var links = feed.items.queryElementAt(0, Components.interfaces.nsIFeedEntry).fields.getProperty('links'); links.QueryInterface(Components.interfaces.nsIArray); var link = links.queryElementAt(0, Components.interfaces.nsIPropertyBag2); ((link.getProperty('length') == '24986239') && (link.getProperty('type') == 'audio/mpeg') && (link.getProperty('href') == 'http://dallas.example.com/joebob_050689.mp3') && (feed.type == 1) && (feed.enclosureCount == 1)); 1.9 + 1.10 +--> 1.11 +<feed xmlns="http://www.w3.org/2005/Atom"> 1.12 + <id>tag:snellspace.com,2006:/atom/conformance/linktest/</id> 1.13 + <title>Atom Link Tests</title> 1.14 + <updated>2005-01-18T15:10:00Z</updated> 1.15 + <author><name>James Snell</name></author> 1.16 + <link href="http://www.intertwingly.net/wiki/pie/LinkConformanceTests" /> 1.17 + <link rel="self" href="http://www.snellspace.com/public/linktests.xml" /> 1.18 + 1.19 + 1.20 + 1.21 + <entry> 1.22 + 1.23 + <id>tag:snellspace.com,2006:/atom/conformance/linktest/4</id> 1.24 + <title>One of each core link rel type + An additional alternate link</title> 1.25 + <updated>2005-01-18T15:00:04Z</updated> 1.26 + <summary>The aggregator should pick either the first or last links as the alternate. First link is likely better.</summary> 1.27 + <link rel="enclosure" length="24986239" type="audio/mpeg" href="http://dallas.example.com/joebob_050689.mp3" /> 1.28 + </entry> 1.29 + 1.30 +</feed>