toolkit/components/feeds/test/xml/rss2/mrss_content_429049.xml

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 <?xml version="1.0" encoding="iso-8859-1"?>
michael@0 2 <!--
michael@0 3
michael@0 4 Description: this tests bug 429049. the item with a valid url is added to the enclosures array and the item with an empty url does not.
michael@0 5 Expect: var encs = feed.items.queryElementAt(0, Components.interfaces.nsIFeedEntry).enclosures; encs.QueryInterface(Components.interfaces.nsIArray); (encs.length == 1);
michael@0 6
michael@0 7 -->
michael@0 8 <rss xmlns:media="http://search.yahoo.com/mrss" version="2.0" >
michael@0 9 <channel>
michael@0 10
michael@0 11 <item>
michael@0 12 <media:content fileSize="24986239" type="audio/mpeg" url="http://dallas.example.com/joebob_050689.mp3" />
michael@0 13 <author>jbb@dallas.example.com (Joe Bob Briggs)</author>
michael@0 14 <comments>http://example.org</comments>
michael@0 15 <title>test</title>
michael@0 16
michael@0 17 <category domain="foo">bar</category>
michael@0 18 <description>no description</description>
michael@0 19 </item>
michael@0 20
michael@0 21 <item>
michael@0 22 <media:content url="" height="" width=""></media:content>
michael@0 23 <author>jbb@dallas.example.com (Joe Bob Briggs)</author>
michael@0 24 <comments>http://example.org</comments>
michael@0 25 <title>test empty</title>
michael@0 26
michael@0 27 <category domain="foo">bar</category>
michael@0 28 <description>no description</description>
michael@0 29 </item>
michael@0 30
michael@0 31 </channel>
michael@0 32 </rss>

mercurial