Skip to content

Commit

Permalink
Added test suite from opml.org
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Morris authored and Tom Morris committed Feb 19, 2008
1 parent 6090a9e commit 83c2dd8
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/negative/bradsoft_closedbody.opml
@@ -0,0 +1,5 @@
<opml version="1.1">
<head/>
<body/>
<outline type="rss" text="Nick Bradbury" xmlUrl="http://feeds.feedburner.com/NickBradbury"/>
</opml>
1 change: 1 addition & 0 deletions tests/negative/dave_incorrectopmlversion.opml
@@ -0,0 +1 @@
<?xml version="1.0" encoding="ISO-8859-1"?><opml version="0.5"> <head/> <body/> </opml>
Expand Down
1 change: 1 addition & 0 deletions tests/negative/dave_missingbody.opml
@@ -0,0 +1 @@
<?xml version="1.0" encoding="ISO-8859-1"?><opml version="1.1"> <head> <title>Missing Body Test</title> </head> </opml>
Expand Down
1 change: 1 addition & 0 deletions tests/negative/dave_missinghead.opml
@@ -0,0 +1 @@
<?xml version="1.0" encoding="ISO-8859-1"?><opml version="1.1"> <body> <outline text="This example is missing a top-level head element."/> </body> </opml>
Expand Down
1 change: 1 addition & 0 deletions tests/negative/dave_missingopml.opml
@@ -0,0 +1 @@
<?xml version="1.0" encoding="ISO-8859-1"?><haha version="1.1"/>
Expand Down
1 change: 1 addition & 0 deletions tests/negative/dave_missingopmlversion.opml
@@ -0,0 +1 @@
<?xml version="1.0" encoding="ISO-8859-1"?><opml> <head/> <body/> </opml>
Expand Down
1 change: 1 addition & 0 deletions tests/negative/dave_missingtextattributes.opml
@@ -0,0 +1 @@
<?xml version="1.0" encoding="ISO-8859-1"?><opml version="1.1"> <head> <title>Missing Text Attribute Test</title> </head> <body> <outline> <outline> <outline text="Illinois"/> <outline text="Indiana"/> <outline text="Iowa"/> <outline text="Kentucky"/> <outline text="Michigan"/> <outline text="Minnesota"/> <outline text="Missouri"/> <outline text="Ohio"/> <outline text="West Virginia"/> <outline text="Wisconsin"/> </outline> </outline> </body> </opml>
Expand Down
1 change: 1 addition & 0 deletions tests/negative/dave_outlinesinwrongplaces.opml
@@ -0,0 +1 @@
<?xml version="1.0" encoding="ISO-8859-1"?><opml version="1.1"> <head> <title>Unknown outline type</title> <outline text="This is in a wrong place."/> </head> <body> <outline text="This is in a right place."/> </body> <outline text="This is in a wrong place."/> </opml>
Expand Down
1 change: 1 addition & 0 deletions tests/negative/dave_subscriptionlisterrors.opml
@@ -0,0 +1 @@
<?xml version="1.0" encoding="ISO-8859-1"?><opml version="1.1"> <head> <title>mySubscriptions.opml</title> <dateCreated>Sat, 18 Jun 2005 12:11:52 GMT</dateCreated> <dateModified>Tue, 02 Aug 2005 21:42:48 GMT</dateModified> <ownerName>Dave Winer</ownerName> <ownerEmail>dave@scripting.com</ownerEmail> <expansionState></expansionState> <vertScrollState>1</vertScrollState> <windowTop>61</windowTop> <windowLeft>304</windowLeft> <windowBottom>562</windowBottom> <windowRight>842</windowRight> </head> <body> <outline text="Feed 1" type="rss"/> <outline text="Feed 2" type="rss" version="notgood" xmlUrl="http://www.badopml.com/rss.xml"/> <outline text="Feed 3" type="rss" version="RSS1" xmlUrl="http://www.badopml.com/rss.xml" created="Tue, 12 Jul 2005 23:56:35 GMT"/> <outline text="Feed 4" type="rss" nonesuch="1" xmlUrl="http://www.badopml.com/rss.xml"/> <outline text="Feed 5" type="rss" xmlurl="http://www.badopml.com/rss.xml"/> </body> </opml>
Expand Down
1 change: 1 addition & 0 deletions tests/negative/dave_unknownoutlinetype.opml
@@ -0,0 +1 @@
<?xml version="1.0" encoding="ISO-8859-1"?><opml version="1.1"> <head> <title>Unknown outline type</title> </head> <body> <outline text="Who's heard of this type?" type="oy-vey"/> </body> </opml>
Expand Down
1 change: 1 addition & 0 deletions tests/positive/dave_category.opml
@@ -0,0 +1 @@
<?xml version="1.0" encoding="ISO-8859-1"?><opml version="1.1"> <head> <title>Illustrating the category attribute</title> <dateCreated>Mon, 31 Oct 2005 19:23:00 GMT</dateCreated> </head> <body> <outline text="The Mets are the best team in baseball." category="/Philosophy/Baseball/Mets,/Tourism/New York" created="Mon, 31 Oct 2005 18:21:33 GMT"/> </body> </opml>
Expand Down
1 change: 1 addition & 0 deletions tests/positive/dave_directory.opml
@@ -0,0 +1 @@
<?xml version="1.0" encoding="ISO-8859-1"?><opml version="1.1"> <head> <title>scriptingNewsDirectory.opml</title> <dateCreated>Thu, 13 Oct 2005 15:34:07 GMT</dateCreated> <dateModified>Tue, 25 Oct 2005 21:33:57 GMT</dateModified> <ownerName>Dave Winer</ownerName> <ownerEmail>dwiner@yahoo.com</ownerEmail> <expansionState></expansionState> <vertScrollState>1</vertScrollState> <windowTop>105</windowTop> <windowLeft>466</windowLeft> <windowBottom>386</windowBottom> <windowRight>964</windowRight> </head> <body> <outline text="Scripting News sites" created="Sun, 16 Oct 2005 05:56:10 GMT" type="link" url="http://hosting.opml.org/dave/mySites.opml"/> <outline text="News.Com top 100 OPML" created="Tue, 25 Oct 2005 21:33:28 GMT" type="link" url="http://news.com.com/html/ne/blogs/CNETNewsBlog100.opml"/> <outline text="BloggerCon III Blogroll" created="Mon, 24 Oct 2005 05:23:52 GMT" type="link" url="http://static.bloggercon.org/iii/blogroll.opml"/> <outline text="TechCrunch reviews" type="link" url="http://hosting.opml.org/techcrunch.opml.org/TechCrunch.opml"/> <outline text="Tod Maffin's directory of Public Radio podcasts" type="link" url="http://todmaffin.com/radio.opml"/> <outline text="Adam Curry's iPodder.org directory" type="link" url="http://homepage.mac.com/dailysourcecode/DSC/ipodderDirectory.opml"/> <outline text="Memeorandum" created="Thu, 13 Oct 2005 15:19:05 GMT" type="link" url="http://tech.memeorandum.com/index.opml"/> <outline text="DaveNet archive" created="Wed, 12 Oct 2005 01:39:56 GMT" type="link" url="http://davenet.opml.org/index.opml"/> </body> </opml>
Expand Down
1 change: 1 addition & 0 deletions tests/positive/dave_states.opml
@@ -0,0 +1 @@
<?xml version="1.0" encoding="ISO-8859-1"?><opml version="1.1"> <head> <title>states.opml</title> <dateCreated>Tue, 15 Mar 2005 16:35:45 GMT</dateCreated> <dateModified>Thu, 14 Jul 2005 23:41:05 GMT</dateModified> <ownerName>Dave Winer</ownerName> <ownerEmail>dave@scripting.com</ownerEmail> <expansionState>1, 6, 13, 16, 18, 20</expansionState> <vertScrollState>1</vertScrollState> <windowTop>106</windowTop> <windowLeft>106</windowLeft> <windowBottom>558</windowBottom> <windowRight>479</windowRight> </head> <body> <outline text="United States"> <outline text="Far West"> <outline text="Alaska"/> <outline text="California"/> <outline text="Hawaii"/> <outline text="Nevada"> <outline text="Reno" created="Tue, 12 Jul 2005 23:56:35 GMT"/> <outline text="Las Vegas" created="Tue, 12 Jul 2005 23:56:37 GMT"/> <outline text="Ely" created="Tue, 12 Jul 2005 23:56:39 GMT"/> <outline text="Gerlach" created="Tue, 12 Jul 2005 23:56:47 GMT"/> </outline> <outline text="Oregon"/> <outline text="Washington"/> </outline> <outline text="Great Plains"> <outline text="Kansas"/> <outline text="Nebraska"/> <outline text="North Dakota"/> <outline text="Oklahoma"/> <outline text="South Dakota"/> </outline> <outline text="Mid-Atlantic"> <outline text="Delaware"/> <outline text="Maryland"/> <outline text="New Jersey"/> <outline text="New York"/> <outline text="Pennsylvania"/> </outline> <outline text="Midwest"> <outline text="Illinois"/> <outline text="Indiana"/> <outline text="Iowa"/> <outline text="Kentucky"/> <outline text="Michigan"/> <outline text="Minnesota"/> <outline text="Missouri"/> <outline text="Ohio"/> <outline text="West Virginia"/> <outline text="Wisconsin"/> </outline> <outline text="Mountains"> <outline text="Colorado"/> <outline text="Idaho"/> <outline text="Montana"/> <outline text="Utah"/> <outline text="Wyoming"/> </outline> <outline text="New England"> <outline text="Connecticut"/> <outline text="Maine"/> <outline text="Massachusetts"/> <outline text="New Hampshire"/> <outline text="Rhode Island"/> <outline text="Vermont"/> </outline> <outline text="South"> <outline text="Alabama"/> <outline text="Arkansas"/> <outline text="Florida"/> <outline text="Georgia"/> <outline text="Louisiana"/> <outline text="Mississippi"/> <outline text="North Carolina"/> <outline text="South Carolina"/> <outline text="Tennessee"/> <outline text="Virginia"/> </outline> <outline text="Southwest"> <outline text="Arizona"/> <outline text="New Mexico"/> <outline text="Texas"/> </outline> </outline> </body> </opml>
Expand Down
1 change: 1 addition & 0 deletions tests/positive/dave_subscriptionList.opml
@@ -0,0 +1 @@
<?xml version="1.0" encoding="ISO-8859-1"?><opml version="1.1"> <head> <title>mySubscriptions.opml</title> <dateCreated>Sat, 18 Jun 2005 12:11:52 GMT</dateCreated> <dateModified>Tue, 02 Aug 2005 21:42:48 GMT</dateModified> <ownerName>Dave Winer</ownerName> <ownerEmail>dave@scripting.com</ownerEmail> <expansionState></expansionState> <vertScrollState>1</vertScrollState> <windowTop>61</windowTop> <windowLeft>304</windowLeft> <windowBottom>562</windowBottom> <windowRight>842</windowRight> </head> <body> <outline text="CNET News.com" description="Tech news and business reports by CNET News.com. Focused on information technology, core topics include computers, hardware, software, networking, and Internet media." htmlUrl="http://news.com.com/" language="unknown" title="CNET News.com" type="rss" version="RSS2" xmlUrl="http://news.com.com/2547-1_3-0-5.xml"/> <outline text="washingtonpost.com - Politics" description="Politics" htmlUrl="http://www.washingtonpost.com/wp-dyn/politics?nav=rss_politics" language="unknown" title="washingtonpost.com - Politics" type="rss" version="RSS2" xmlUrl="http://www.washingtonpost.com/wp-srv/politics/rssheadlines.xml"/> <outline text="Scobleizer: Microsoft Geek Blogger" description="Robert Scoble's look at geek and Microsoft life." htmlUrl="http://radio.weblogs.com/0001011/" language="unknown" title="Scobleizer: Microsoft Geek Blogger" type="rss" version="RSS2" xmlUrl="http://radio.weblogs.com/0001011/rss.xml"/> <outline text="Yahoo! News: Technology" description="Technology" htmlUrl="http://news.yahoo.com/news?tmpl=index&amp;cid=738" language="unknown" title="Yahoo! News: Technology" type="rss" version="RSS2" xmlUrl="http://rss.news.yahoo.com/rss/tech"/> <outline text="Workbench" description="Programming and publishing news and comment" htmlUrl="http://www.cadenhead.org/workbench/" language="unknown" title="Workbench" type="rss" version="RSS2" xmlUrl="http://www.cadenhead.org/workbench/rss.xml"/> <outline text="Christian Science Monitor | Top Stories" description="Read the front page stories of csmonitor.com." htmlUrl="http://csmonitor.com" language="unknown" title="Christian Science Monitor | Top Stories" type="rss" version="RSS" xmlUrl="http://www.csmonitor.com/rss/top.rss"/> <outline text="Dictionary.com Word of the Day" description="A new word is presented every day with its definition and example sentences from actual published works." htmlUrl="http://dictionary.reference.com/wordoftheday/" language="unknown" title="Dictionary.com Word of the Day" type="rss" version="RSS" xmlUrl="http://www.dictionary.com/wordoftheday/wotd.rss"/> <outline text="The Motley Fool" description="To Educate, Amuse, and Enrich" htmlUrl="http://www.fool.com" language="unknown" title="The Motley Fool" type="rss" version="RSS" xmlUrl="http://www.fool.com/xml/foolnews_rss091.xml"/> <outline text="InfoWorld: Top News" description="The latest on Top News from InfoWorld" htmlUrl="http://www.infoworld.com/news/index.html" language="unknown" title="InfoWorld: Top News" type="rss" version="RSS2" xmlUrl="http://www.infoworld.com/rss/news.xml"/> <outline text="NYT &gt; Business" description="Find breaking news &amp; business news on Wall Street, media &amp; advertising, international business, banking, interest rates, the stock market, currencies &amp; funds." htmlUrl="http://www.nytimes.com/pages/business/index.html?partner=rssnyt" language="unknown" title="NYT &gt; Business" type="rss" version="RSS2" xmlUrl="http://www.nytimes.com/services/xml/rss/nyt/Business.xml"/> <outline text="NYT &gt; Technology" description="" htmlUrl="http://www.nytimes.com/pages/technology/index.html?partner=rssnyt" language="unknown" title="NYT &gt; Technology" type="rss" version="RSS2" xmlUrl="http://www.nytimes.com/services/xml/rss/nyt/Technology.xml"/> <outline text="Scripting News" description="It's even worse than it appears." htmlUrl="http://www.scripting.com/" language="unknown" title="Scripting News" type="rss" version="RSS2" xmlUrl="http://www.scripting.com/rss.xml"/> <outline text="Wired News" description="Technology, and the way we do business, is changing the world we know. Wired News is a technology - and business-oriented news service feeding an intelligent, discerning audience. What role does technology play in the day-to-day living of your life? Wired News tells you. How has evolving technology changed the face of the international business world? Wired News puts you in the picture." htmlUrl="http://www.wired.com/" language="unknown" title="Wired News" type="rss" version="RSS" xmlUrl="http://www.wired.com/news_drop/netcenter/netcenter.rdf"/> </body> </opml>
Expand Down

0 comments on commit 83c2dd8

Please sign in to comment.