Commit Graph

19 Commits (c823a6efb2617ce776afe43f35025dfa17f0833d)

Author SHA1 Message Date
Brad Philips 8525c6af36 Fix relative URIs given <base> tags (#422) 7 years ago
Gijs Kruitbosch ad4dd26448 Update test expectations 7 years ago
Cameron McCormack 5ad448f831 Update test expectations. 7 years ago
Evan Tseng 15e1f03261 Bug 1300697 - Reader View missed first few paragraphs on New York Times website, r=Gijs 8 years ago
Evan Tseng e84c0c3f07 Bug 1285543 - Only use "og:title" or "twitter:title" if _getArticleTitle does not return a valid title, r=Gijs 8 years ago
Gijs Kruitbosch 2e1cb3f467 Fix issue #251 by making JSDOMParser expect XML and stop making excuses for 'self-closed' things, when all that does is cause trouble 9 years ago
Nicolas Perriault 44879722b6 Fixes #183 - Preserve list items. 10 years ago
Margaret Leibovic 319a50b4f0 Fixes #184 - Don't strip class names from article content 10 years ago
Nicolas Perriault de89036cd5 Fixes #130 - Using js-beautify for HTML formatting. 10 years ago
Gijs b37ff08bc7 Merge pull request #169 from mozilla/clean-footer-tags
Fixes #163 - Avoid including footer tag contents.
10 years ago
Nicolas Perriault 12c6a11f67 Fixes #163 - Avoid including footer tag contents. 10 years ago
Nicolas Perriault 6eeabf90c1 Fixes #164 - Add support for title alt semantic metadata. 10 years ago
Gijs Kruitbosch b1f6c62b25 Fix tests for readability to also work with jsdom
For instance, jsdom's more spec-compliant parsing causes issues with auto-closing elements (lifehacker article) and with not having self-closing <img> and <br> tags. The former was fixed by removing offending markup, the latter by adjusting JSDOMParser to be more sane, and the expected outputs to cope with this.

Finally, JSDOMParser automatically drops comments. The test code needed to manually do this in the jsdom case.
10 years ago
Nicolas Perriault 3b636b59f0 Added readerable value to test pages metadata. 10 years ago
Margaret Leibovic 3c2d93cd09 Improve byline algorithm 10 years ago
Margaret Leibovic 1b5d896b8b Add expected-metadata.json for existing tests 10 years ago
Gijs Kruitbosch 5efddf6620 Update all the tests, add a bunch of random things so we have some base idea of what stuff we're breaking when changing things. 10 years ago
Gijs Kruitbosch b62fd27ba6 Don't create/leave empty class attributes around all the nodes we're using. 10 years ago
Nicolas Perriault 3bef3e7029 Added basic functional test + travis setup. 10 years ago