diff options
author | FiveFilters.org <[email protected]> | 2021-08-25 13:39:55 +0200 |
---|---|---|
committer | FiveFilters.org <[email protected]> | 2021-08-25 13:39:55 +0200 |
commit | 4c42348ab2e316af537dc9ba85005ee8a9baebf5 (patch) | |
tree | 48ca7b816d2466a6b35dce611cde6b98ac3a933e /test/test-pages/normalize-spaces | |
parent | c4a6cf576b6e9870d64d833816f93c45dd36d090 (diff) |
Fix headers being removed
https://github.com/mozilla/readability/commit/11093f011f57fa528a00a78d70b8d9df32c7a32d
Diffstat (limited to 'test/test-pages/normalize-spaces')
4 files changed, 70 insertions, 0 deletions
diff --git a/test/test-pages/normalize-spaces/expected-images.json b/test/test-pages/normalize-spaces/expected-images.json new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/test/test-pages/normalize-spaces/expected-images.json @@ -0,0 +1 @@ +[]
\ No newline at end of file diff --git a/test/test-pages/normalize-spaces/expected-metadata.json b/test/test-pages/normalize-spaces/expected-metadata.json new file mode 100644 index 0000000..59c9941 --- /dev/null +++ b/test/test-pages/normalize-spaces/expected-metadata.json @@ -0,0 +1,8 @@ +{ + "Author": null, + "Direction": null, + "Excerpt": "Lorem\n ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\n\ttab here\n incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,\n quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\n consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse\n cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non\n proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", + "Image": null, + "Title": "Normalize space test", + "SiteName": null +}
\ No newline at end of file diff --git a/test/test-pages/normalize-spaces/expected.html b/test/test-pages/normalize-spaces/expected.html new file mode 100644 index 0000000..18739c3 --- /dev/null +++ b/test/test-pages/normalize-spaces/expected.html @@ -0,0 +1,26 @@ +<article> + <h2>Lorem</h2> + <p> + Lorem + ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod + tab here + incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, + quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo + consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse + cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non + proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + </p> + <h2>Foo</h2> + <p> + Tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, + quis nostrud exercitation + + + + + ullamco laboris nisi ut aliquip ex ea commodo + consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse + cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non + proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + </p> + </article>
\ No newline at end of file diff --git a/test/test-pages/normalize-spaces/source.html b/test/test-pages/normalize-spaces/source.html new file mode 100644 index 0000000..b230798 --- /dev/null +++ b/test/test-pages/normalize-spaces/source.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"/> + <title>Normalize space test</title> +</head> +<body> + <article> + <h1>Lorem</h1> + <div> + Lorem + ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod + tab here + incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, + quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo + consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse + cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non + proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + </div> + <h2>Foo</h2> + <div> + Tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, + quis nostrud exercitation + + + + + ullamco laboris nisi ut aliquip ex ea commodo + consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse + cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non + proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + </div> + </article> +</body> +</html> |