Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!--
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.
5 Expect: var encs = feed.items.queryElementAt(0, Components.interfaces.nsIFeedEntry).enclosures; encs.QueryInterface(Components.interfaces.nsIArray); (encs.length == 1);
7 -->
8 <rss xmlns:media="http://search.yahoo.com/mrss" version="2.0" >
9 <channel>
11 <item>
12 <media:content fileSize="24986239" type="audio/mpeg" url="http://dallas.example.com/joebob_050689.mp3" />
13 <author>jbb@dallas.example.com (Joe Bob Briggs)</author>
14 <comments>http://example.org</comments>
15 <title>test</title>
17 <category domain="foo">bar</category>
18 <description>no description</description>
19 </item>
21 <item>
22 <media:content url="" height="" width=""></media:content>
23 <author>jbb@dallas.example.com (Joe Bob Briggs)</author>
24 <comments>http://example.org</comments>
25 <title>test empty</title>
27 <category domain="foo">bar</category>
28 <description>no description</description>
29 </item>
31 </channel>
32 </rss>