diff options
Diffstat (limited to 'toolkit/components/feeds/test/xml/rss09x')
7 files changed, 214 insertions, 0 deletions
diff --git a/toolkit/components/feeds/test/xml/rss09x/rss090.xml b/toolkit/components/feeds/test/xml/rss09x/rss090.xml new file mode 100644 index 000000000..783c018f4 --- /dev/null +++ b/toolkit/components/feeds/test/xml/rss09x/rss090.xml @@ -0,0 +1,50 @@ +<?xml version="1.0"?> +<!-- + +Description: RSS 0.90 works +Expect: feed.title.plainText() == "Mozilla Dot Org" && result.version == "rss090" + +--> +<!-- The very first RSS file, circa 1999 --> +<rdf:RDF +xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +xmlns="http://my.netscape.com/rdf/simple/0.9/"> + + <channel> + <title>Mozilla Dot Org</title> + <link>http://www.mozilla.org</link> + <description>the Mozilla Organization web site</description> + </channel> + + <image> + <title>Mozilla</title> + <url>http://www.mozilla.org/images/moz.gif</url> + <link>http://www.mozilla.org</link> + </image> + + <item> + <title>New Status Updates</title> + <link>http://www.mozilla.org/status/</link> + </item> + + <item> + <title>Bugzilla Reorganized</title> + <link>http://www.mozilla.org/bugs/</link> + </item> + + <item> + <title>Mozilla Party, 2.0!</title> + <link>http://www.mozilla.org/party/1999/</link> + </item> + + <item> + <title>Unix Platform Parity</title> + <link>http://www.mozilla.org/build/unix.html</link> + </item> + + <item> + <title>NPL 1.0M published</title> + <link>http://www.mozilla.org/NPL/NPL-1.0M.html</link> + </item> + +</rdf:RDF>
\ No newline at end of file diff --git a/toolkit/components/feeds/test/xml/rss09x/rss091.xml b/toolkit/components/feeds/test/xml/rss09x/rss091.xml new file mode 100644 index 000000000..6749fc49e --- /dev/null +++ b/toolkit/components/feeds/test/xml/rss09x/rss091.xml @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd"> +<!-- + +Description: RSS 0.91 works +Expect: feed.title.plainText() == "Scripting News" && result.version == "rss091" + +--> +<rss version="0.91"> + <channel> + <language>en</language> + <description> + News and commentary from the cross-platform scripting community. + </description> + <link>http://www.scripting.com/</link> + <title>Scripting News</title> + <image> + <link>http://www.scripting.com/</link> + <title>Scripting News</title> + <url>http://www.scripting.com/gifs/tinyScriptingNews.gif</url> + </image> + <item> + <title>stuff</title> + <link>http://bar.example.com</link> + <description>This is an article about some stuff</description> + </item> + </channel> +</rss>
\ No newline at end of file diff --git a/toolkit/components/feeds/test/xml/rss09x/rss091_withNS.xml b/toolkit/components/feeds/test/xml/rss09x/rss091_withNS.xml new file mode 100644 index 000000000..9ab2c3bf7 --- /dev/null +++ b/toolkit/components/feeds/test/xml/rss09x/rss091_withNS.xml @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd"> +<!-- + +Description: RSS 0.91 works +Expect: feed.title.plainText() == "Scripting News" && result.version == "rss091" + +--> +<rss version="0.91" xmlns="http://backend.userland.com/RsS2"> + <channel> + <language>en</language> + <description> + News and commentary from the cross-platform scripting community. + </description> + <link>http://www.scripting.com/</link> + <title>Scripting News</title> + <image> + <link>http://www.scripting.com/</link> + <title>Scripting News</title> + <url>http://www.scripting.com/gifs/tinyScriptingNews.gif</url> + </image> + <item> + <title>stuff</title> + <link>http://bar.example.com</link> + <description>This is an article about some stuff</description> + </item> + </channel> +</rss>
\ No newline at end of file diff --git a/toolkit/components/feeds/test/xml/rss09x/rss092.xml b/toolkit/components/feeds/test/xml/rss09x/rss092.xml new file mode 100644 index 000000000..ed68bd64f --- /dev/null +++ b/toolkit/components/feeds/test/xml/rss09x/rss092.xml @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<!-- + +Description: RSS 0.92 works +Expect: feed.title.plainText() == "Scripting News" && result.version == "rss092" + +--> +<rss version="0.92"> + <channel> + <language>en</language> + <description> + News and commentary from the cross-platform scripting community. + </description> + <link>http://www.scripting.com/</link> + <title>Scripting News</title> + <image> + <link>http://www.scripting.com/</link> + <title>Scripting News</title> + <url>http://www.scripting.com/gifs/tinyScriptingNews.gif</url> + </image> + <item> + <title>stuff</title> + <link>http://bar.example.com</link> + <description>This is an article about some stuff</description> + </item> + </channel> +</rss>
\ No newline at end of file diff --git a/toolkit/components/feeds/test/xml/rss09x/rss093.xml b/toolkit/components/feeds/test/xml/rss09x/rss093.xml new file mode 100644 index 000000000..f1bb81ddf --- /dev/null +++ b/toolkit/components/feeds/test/xml/rss09x/rss093.xml @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<!-- + +Description: RSS 0.93 works +Expect: feed.title.plainText() == "Scripting News" && result.version == "rss093" + +--> +<rss version="0.93"> + <channel> + <language>en</language> + <description> + News and commentary from the cross-platform scripting community. + </description> + <link>http://www.scripting.com/</link> + <title>Scripting News</title> + <image> + <link>http://www.scripting.com/</link> + <title>Scripting News</title> + <url>http://www.scripting.com/gifs/tinyScriptingNews.gif</url> + </image> + <item> + <title>stuff</title> + <link>http://bar.example.com</link> + <description>This is an article about some stuff</description> + </item> + </channel> +</rss>
\ No newline at end of file diff --git a/toolkit/components/feeds/test/xml/rss09x/rss094.xml b/toolkit/components/feeds/test/xml/rss09x/rss094.xml new file mode 100644 index 000000000..1c2b17a24 --- /dev/null +++ b/toolkit/components/feeds/test/xml/rss09x/rss094.xml @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<!-- + +Description: RSS 0.94 works +Expect: feed.title.plainText() == "Scripting News" && result.version == "rss094" + +--> +<rss version="0.94"> + <channel> + <language>en</language> + <description> + News and commentary from the cross-platform scripting community. + </description> + <link>http://www.scripting.com/</link> + <title>Scripting News</title> + <image> + <link>http://www.scripting.com/</link> + <title>Scripting News</title> + <url>http://www.scripting.com/gifs/tinyScriptingNews.gif</url> + </image> + <item> + <title>stuff</title> + <link>http://bar.example.com</link> + <description>This is an article about some stuff</description> + </item> + </channel> +</rss>
\ No newline at end of file diff --git a/toolkit/components/feeds/test/xml/rss09x/rssUnknown.xml b/toolkit/components/feeds/test/xml/rss09x/rssUnknown.xml new file mode 100644 index 000000000..653b574d0 --- /dev/null +++ b/toolkit/components/feeds/test/xml/rss09x/rssUnknown.xml @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<!-- + +Description: RSS unknown version works +Expect: feed.title.plainText() == "Scripting News" && result.version == "rssUnknown" + +--> +<rss version="0.95"> + <channel> + <language>en</language> + <description> + News and commentary from the cross-platform scripting community. + </description> + <link>http://www.scripting.com/</link> + <title>Scripting News</title> + <image> + <link>http://www.scripting.com/</link> + <title>Scripting News</title> + <url>http://www.scripting.com/gifs/tinyScriptingNews.gif</url> + </image> + <item> + <title>stuff</title> + <link>http://bar.example.com</link> + <description>This is an article about some stuff</description> + </item> + </channel> +</rss>
\ No newline at end of file |