Commit Graph

10 Commits (3aa212547f8dd06978de8a809a739fd89d724b31)

Author SHA1 Message Date
Gijs Kruitbosch 225adef137 Turn off JS when using JSDOM in tests. 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 6b7834f798 add test for isProbablyReaderable 10 years ago
Nicolas Perriault 1e14d47bb7 Added benchmarks. 10 years ago
Gijs 14b33b69db Merge pull request #65 from mozilla/support-embed-videos
Fixes #56 - Updated support for embedded Youtube & Vimeo videos.
10 years ago
Nicolas Perriault ad52d8ee30 Fixes #53 - Fixed dot-slash relative URI resolution. 10 years ago
Nicolas Perriault 2d5f59f3eb Fixes #56 - Updated support for embedded Youtube & Vimeo videos. 10 years ago
Nicolas Perriault cf3dce6cf2 Refs #58 - Stripped embed tags. 10 years ago
Gijs Kruitbosch f9e770ad3b Write a bunch of tests for jsdomparser 10 years ago