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

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

michael@0 1 <?xml version="1.0" encoding="iso-8859-1"?>
michael@0 2 <!--
michael@0 3
michael@0 4 Description: feed with duplicate enclosures on a single item with different data available
michael@0 5 Expect: var enc = feed.items.queryElementAt(0, Components.interfaces.nsIFeedEntry).fields.getProperty('enclosure'); enc.QueryInterface(Components.interfaces.nsIPropertyBag); ((enc.getProperty('length') == '24986239') && (enc.getProperty('type') == 'video/mpeg') && (feed.type == 4) && (feed.enclosureCount == 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 <enclosure url="http://dallas.example.com/joebob_050689.mpeg" />
michael@0 13 <media:content fileSize="24986239" type="video/mpeg" url="http://dallas.example.com/joebob_050689.mpeg" />
michael@0 14 <author>jbb@dallas.example.com (Joe Bob Briggs)</author>
michael@0 15 <comments>http://example.org</comments>
michael@0 16 <title>test audio</title>
michael@0 17
michael@0 18 <category domain="foo">bar</category>
michael@0 19
michael@0 20 <description>Listen to the words that are coming out of my mouth.</description>
michael@0 21 </item>
michael@0 22
michael@0 23 </channel>
michael@0 24 </rss>

mercurial