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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/components/feeds/test/xml/rss2/mrss_content_multiple.xml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +<?xml version="1.0" encoding="iso-8859-1"?>
     1.5 +<!--
     1.6 +
     1.7 +Description: mrss content with multiple media:content items works
     1.8 +Expect: var mcs = feed.items.queryElementAt(0, Components.interfaces.nsIFeedEntry).fields.getProperty('mediacontent'); mcs.QueryInterface(Components.interfaces.nsIArray); var enc1 = mcs.queryElementAt(0, Components.interfaces.nsIPropertyBag); var enc2 = mcs.queryElementAt(1, Components.interfaces.nsIPropertyBag); ((enc1.getProperty('fileSize') == '24986239') && (enc1.getProperty('type') == 'video/mpeg') && (enc1.getProperty('url') == 'http://dallas.example.com/joebob_1.mpeg') && (enc2.getProperty('fileSize') == '30000000') && (enc2.getProperty('type') == 'video/mpeg') && (enc2.getProperty('url') == 'http://dallas.example.com/joebob_2.mpeg') && (feed.type == 4) && (feed.enclosureCount == 2));
     1.9 +
    1.10 +-->
    1.11 +<rss xmlns:media="http://search.yahoo.com/mrss" version="2.0" >
    1.12 +<channel>
    1.13 +<item>
    1.14 +
    1.15 +<media:content fileSize="24986239" type="video/mpeg" url="http://dallas.example.com/joebob_1.mpeg" /> 
    1.16 +<media:content fileSize="30000000" type="video/mpeg" url="http://dallas.example.com/joebob_2.mpeg" /> 
    1.17 +
    1.18 +<author>jbb@dallas.example.com (Joe Bob Briggs)</author>
    1.19 +<comments>http://example.org</comments>
    1.20 +<title>test</title>
    1.21 +
    1.22 +<category domain="foo">bar</category>
    1.23 +
    1.24 +<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. Two videos of that.</description></item>
    1.25 +</channel>
    1.26 +</rss>

mercurial