Cameron McCormack
5ad448f831
Update test expectations.
2017-11-21 10:04:59 +00:00
Evan Tseng
0f147374b7
Bug 1323861 - Remove the readScript method, r=Gijs
2017-02-22 09:39:17 +00:00
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
2016-01-22 19:57:45 +00:00
Nicolas Perriault
de89036cd5
Fixes #130 - Using js-beautify for HTML formatting.
2015-04-21 10:30:48 +02:00
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.
2015-04-03 22:41:55 +01:00
Nicolas Perriault
3b636b59f0
Added readerable value to test pages metadata.
2015-04-03 15:14:49 +02:00
Nicolas Perriault
d83763c8a1
Preserve inline tweets as they're part of article contents.
2015-03-22 18:19:34 +01:00
Margaret Leibovic
639c878af5
Generate expected-metadata.json in generate-testcase.js
2015-03-19 14:47:36 -07:00
Margaret Leibovic
1b5d896b8b
Add expected-metadata.json for existing tests
2015-03-19 14:39:50 -07:00
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.
2015-03-19 10:10:50 -07:00
Nicolas Perriault
7da6e82fec
Switched to using jsdom for tests.
2015-03-18 18:49:36 +01:00
Gijs Kruitbosch
b62fd27ba6
Don't create/leave empty class attributes around all the nodes we're using.
2015-03-17 13:17:49 -07:00
Nicolas Perriault
3bef3e7029
Added basic functional test + travis setup.
2015-03-16 15:12:10 +01:00