1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/feeds/test/xml/rss2/mrss_group_content.xml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +<?xml version="1.0" encoding="iso-8859-1"?> 1.5 +<!-- 1.6 + 1.7 +Description: mrss group content works 1.8 +Expect: var mg = feed.items.queryElementAt(0, Components.interfaces.nsIFeedEntry).fields.getProperty('mediagroup'); mg.QueryInterface(Components.interfaces.nsIPropertyBag); var mcs = mg.getProperty("mediacontent"); mcs.QueryInterface(Components.interfaces.nsIArray); var mc1 = mcs.queryElementAt(0, Components.interfaces.nsIPropertyBag); var mc2 = mcs.queryElementAt(1, Components.interfaces.nsIPropertyBag); ((mc1.getProperty('fileSize') == '400') && (mc1.getProperty('type') == 'audio/mpeg') && (mc1.getProperty('url') == 'http://dallas.example.com/joebob_050689_2.mp3') && (mc2.getProperty('fileSize') == '200') && (mc2.getProperty('type') == 'audio/mpeg') && (mc2.getProperty('url') == 'http://dallas.example.com/joebob_050689_1.mp3')); 1.9 + 1.10 + 1.11 +--> 1.12 +<rss xmlns:media="http://search.yahoo.com/mrss" version="2.0" > 1.13 +<channel> 1.14 +<item> 1.15 + 1.16 +<media:group> 1.17 + <media:content fileSize="400" type="audio/mpeg" url="http://dallas.example.com/joebob_050689_2.mp3" /> 1.18 + <media:content fileSize="200" type="audio/mpeg" url="http://dallas.example.com/joebob_050689_1.mp3" /> 1.19 +</media:group> 1.20 + 1.21 +<author>jbb@dallas.example.com (Joe Bob Briggs)</author> 1.22 +<comments>http://example.org</comments> 1.23 +<title>test</title> 1.24 + 1.25 +<category domain="foo">bar</category> 1.26 + 1.27 +<description>I'm headed for France. I wasn't gonna go this year, but then last week <a href="http://www.imdb.com/title/tt0086525/">Valley Girl</a> came out and I said to myself, Joe Bob, you gotta get out of the country for a while.</description></item> 1.28 +</channel> 1.29 +</rss>