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

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:3c974947e718
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!--
3
4 Description: mrss content added to enclosures array
5 Expect: var encs = feed.items.queryElementAt(0, Components.interfaces.nsIFeedEntry).enclosures; encs.QueryInterface(Components.interfaces.nsIArray); var enc = encs.queryElementAt(0, Components.interfaces.nsIPropertyBag); ((enc.getProperty('length') == '24986239') && (enc.getProperty('type') == 'audio/mpeg') && (enc.getProperty('url') == 'http://dallas.example.com/joebob_050689.mp3') && (feed.type == 1) && (feed.enclosureCount == 1));
6
7 -->
8 <rss xmlns:media="http://search.yahoo.com/mrss" version="2.0" >
9 <channel>
10 <item>
11
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>
16
17 <category domain="foo">bar</category>
18
19 <description>I'm headed for France. I wasn't gonna go this year, but then last week &lt;a href="http://www.imdb.com/title/tt0086525/"&gt;Valley Girl&lt;/a&gt; came out and I said to myself, Joe Bob, you gotta get out of the country for a while.</description></item>
20 </channel>
21 </rss>

mercurial