-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
454 additions
and
181 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"__description": "author.name: `name` key missing, but mailto: `url` present", | ||
"__tests": [ | ||
"feed['author'] == 'user@domain.example'", | ||
"len(feed['author_detail'].keys()) == 1", | ||
"'name' not in feed['author_detail']", | ||
"len(feed['authors'][0].keys()) == 1", | ||
"'name' not in feed['authors'][0]" | ||
], | ||
"author": { | ||
"url": "mailto:user@domain.example?subject=Hello" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
"feed['subtitle'] == ''", | ||
"feed['subtitle_detail']['value'] == ''" | ||
], | ||
"description": " " | ||
"description": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"__description": "description: html must be ignored", | ||
"__tests": [ | ||
"feed['subtitle'] == \"<blink><script>alert('abc');</script></blink>\"", | ||
"len(feed['subtitle_detail']) == 2", | ||
"feed['subtitle_detail']['type'] == 'text/plain'", | ||
"feed['subtitle_detail']['value'] == \"<blink><script>alert('abc');</script></blink>\"" | ||
], | ||
"description": "<blink><script>alert('abc');</script></blink>" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"__description": "expired: boolean false means 'false'", | ||
"__tests": [ | ||
"feed['complete'] is False" | ||
"feed['expired'] is False" | ||
], | ||
"expired": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"__description": "expired: boolean true means 'true'", | ||
"__tests": [ | ||
"feed['complete'] is True" | ||
"feed['expired'] is True" | ||
], | ||
"expired": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"__description": "expired: integer 1 means false", | ||
"__tests": [ | ||
"feed['expired'] is False" | ||
], | ||
"expired": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"__description": "expired: should not exist if not present in feed", | ||
"__tests": [ | ||
"'complete' not in feed" | ||
"'expired' not in feed" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"__description": "expired: an explicit null value means false", | ||
"__tests": [ | ||
"feed['expired'] is False" | ||
], | ||
"expired": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"__description": "expired: string 'true' is not 'true'", | ||
"__tests": [ | ||
"feed['complete'] is False" | ||
"feed['expired'] is False" | ||
], | ||
"expired": "true" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
"__tests": [ | ||
"feed['icon'] == ''" | ||
], | ||
"favicon": " " | ||
"favicon": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
"feed['id'] == ''", | ||
"feed['links'][0]['href'] == ''" | ||
], | ||
"feed_url": " " | ||
"feed_url": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
"__tests": [ | ||
"feed.link == ''" | ||
], | ||
"home_page_url": " " | ||
"home_page_url": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
"__tests": [ | ||
"feed['image']['href'] == ''" | ||
], | ||
"icon": " " | ||
"icon": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"__description": "items.title: blank values are not lost", | ||
"__tests": [ | ||
"entries[0]['title'] == ''", | ||
"len(entries[0]['title_detail'].keys()) == 2", | ||
"entries[0]['title_detail']['value'] == ''", | ||
"entries[0]['title_detail']['type'] == 'text/plain'" | ||
], | ||
"items": [ | ||
{ | ||
"title": "" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"__description": "items.title: html must be ignored", | ||
"__tests": [ | ||
"entries[0]['title'] == \"<blink><script>alert('abc');</script></blink>\"", | ||
"len(entries[0]['title_detail']) == 2", | ||
"entries[0]['title_detail']['value'] == \"<blink><script>alert('abc');</script></blink>\"", | ||
"entries[0]['title_detail']['type'] == 'text/plain'" | ||
], | ||
"items": [ | ||
{ | ||
"title": "<blink><script>alert('abc');</script></blink>" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"__description": "items.title: value is not a string", | ||
"__tests": [ | ||
"'title' not in entries[0]", | ||
"'title_detail' not in entries[0]" | ||
], | ||
"items": [ | ||
{ | ||
"title": [1, 2, 3] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"__description": "items.title: whitespace must be stripped", | ||
"__tests": [ | ||
"entries[0]['title'] == 'abc'", | ||
"entries[0]['title_detail']['value'] == 'abc'" | ||
], | ||
"items": [ | ||
{ | ||
"title": " abc " | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"__description": "items.title: valid value", | ||
"__tests": [ | ||
"entries[0]['title'] == 'abc'", | ||
"len(entries[0]['title_detail'].keys()) == 2", | ||
"entries[0]['title_detail']['value'] == 'abc'", | ||
"entries[0]['title_detail']['type'] == 'text/plain'" | ||
], | ||
"items": [ | ||
{ | ||
"title": "abc" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"__description": "items.url: blank values are not lost", | ||
"__tests": [ | ||
"entries[0]['link'] == ''", | ||
"entries[0]['links'][0]['href'] == ''" | ||
], | ||
"items": [ | ||
{ | ||
"url": "" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"__description": "items.url: entry has a title", | ||
"__tests": [ | ||
"entries[0]['link'] == 'https://domain.example/entry'", | ||
"len(entries[0]['links']) == 1", | ||
"len(entries[0]['links'][0].keys()) == 3", | ||
"entries[0]['links'][0]['rel'] == 'self'", | ||
"entries[0]['links'][0]['href'] == 'https://domain.example/entry'", | ||
"entries[0]['links'][0]['title'] == 'abc'" | ||
], | ||
"items": [ | ||
{ | ||
"title": "abc", | ||
"url": "https://domain.example/entry" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"__description": "items.url: entry has no title", | ||
"__tests": [ | ||
"entries[0]['link'] == 'https://domain.example/entry'", | ||
"len(entries[0]['links']) == 1", | ||
"len(entries[0]['links'][0].keys()) == 2", | ||
"entries[0]['links'][0]['rel'] == 'self'", | ||
"entries[0]['links'][0]['href'] == 'https://domain.example/entry'" | ||
], | ||
"items": [ | ||
{ | ||
"url": "https://domain.example/entry" | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
"__tests": [ | ||
"feed['links'][0]['href'] == ''" | ||
], | ||
"next_url": " " | ||
"next_url": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
"__tests": [ | ||
"feed['title'] == ''" | ||
], | ||
"title": " " | ||
"title": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"__description": "title: html must be ignored", | ||
"__tests": [ | ||
"feed['title'] == \"<blink><script>alert('abc');</script></blink>\"", | ||
"len(feed['title_detail'].keys()) == 2", | ||
"feed['title_detail']['type'] == 'text/plain'", | ||
"feed['title_detail']['value'] == \"<blink><script>alert('abc');</script></blink>\"" | ||
], | ||
"title": "<blink><script>alert('abc');</script></blink>" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
"feed['info'] == ''", | ||
"feed['info_detail']['value'] == ''" | ||
], | ||
"user_comment": " " | ||
"user_comment": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"__description": "user_comment: html must be ignored", | ||
"__tests": [ | ||
"feed['info'] == \"<blink><script>alert('abc');</script></blink>\"", | ||
"len(feed['info_detail']) == 2", | ||
"feed['info_detail']['type'] == 'text/plain'", | ||
"feed['info_detail']['value'] == \"<blink><script>alert('abc');</script></blink>\"" | ||
], | ||
"user_comment": "<blink><script>alert('abc');</script></blink>" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
"__tests": [ | ||
"version == 'json'" | ||
], | ||
"version": " " | ||
"version": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters