diff options
author | fox <[email protected]> | 2021-08-18 07:51:19 +0300 |
---|---|---|
committer | fox <[email protected]> | 2021-08-18 07:51:19 +0300 |
commit | 28eafa2bcd6e327e7014174c4efd4c10d9491e27 (patch) | |
tree | efd9e28718eff791dcaa7ffddbac44c38deedfb8 /plugins/af_readability/vendor/fivefilters/readability.php/test/test-pages/base-url | |
parent | a73e3bec45c5523910c711cf882976b71781ac9e (diff) | |
parent | b6b6771d8d7dcf13938d1578099074b0123a5d5e (diff) |
Merge pull request 'pull latest readability-php via composer' (#42) from niehztog/tt-rss:update-readability into master
Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/42
Diffstat (limited to 'plugins/af_readability/vendor/fivefilters/readability.php/test/test-pages/base-url')
4 files changed, 90 insertions, 0 deletions
diff --git a/plugins/af_readability/vendor/fivefilters/readability.php/test/test-pages/base-url/expected-images.json b/plugins/af_readability/vendor/fivefilters/readability.php/test/test-pages/base-url/expected-images.json new file mode 100644 index 000000000..1c28ae60c --- /dev/null +++ b/plugins/af_readability/vendor/fivefilters/readability.php/test/test-pages/base-url/expected-images.json @@ -0,0 +1,6 @@ +{ + "0": "http:\/\/fakehost\/test\/foo\/bar\/baz.png", + "2": "http:\/\/fakehost\/foo\/bar\/baz.png", + "3": "http:\/\/test\/foo\/bar\/baz.png", + "4": "https:\/\/test\/foo\/bar\/baz.png" +}
\ No newline at end of file diff --git a/plugins/af_readability/vendor/fivefilters/readability.php/test/test-pages/base-url/expected-metadata.json b/plugins/af_readability/vendor/fivefilters/readability.php/test/test-pages/base-url/expected-metadata.json new file mode 100644 index 000000000..291ff94bc --- /dev/null +++ b/plugins/af_readability/vendor/fivefilters/readability.php/test/test-pages/base-url/expected-metadata.json @@ -0,0 +1,8 @@ +{ + "Author": null, + "Direction": null, + "Excerpt": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\n tempor 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": "Base URL test", + "SiteName": null +} diff --git a/plugins/af_readability/vendor/fivefilters/readability.php/test/test-pages/base-url/expected.html b/plugins/af_readability/vendor/fivefilters/readability.php/test/test-pages/base-url/expected.html new file mode 100644 index 000000000..36981e1e7 --- /dev/null +++ b/plugins/af_readability/vendor/fivefilters/readability.php/test/test-pages/base-url/expected.html @@ -0,0 +1,33 @@ +<article> + <p> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod + 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> + <p>Links</p> + <p><a href="http://fakehost/test/foo/bar/baz.html">link</a></p> + <p><a href="http://fakehost/test/foo/bar/baz.html">link</a></p> + <p><a href="http://fakehost/foo/bar/baz.html">link</a></p> + <p><a href="#foo">link</a></p> + <p><a href="http://fakehost/test/baz.html#foo">link</a></p> + <p><a href="http://fakehost/foo/bar/baz.html#foo">link</a></p> + <p><a href="http://test/foo/bar/baz.html">link</a></p> + <p><a href="https://test/foo/bar/baz.html">link</a></p> + <p>Images</p> + <p><img src="http://fakehost/test/foo/bar/baz.png"></img></p> + <p><img src="http://fakehost/test/foo/bar/baz.png"></img></p> + <p><img src="http://fakehost/foo/bar/baz.png"></img></p> + <p><img src="http://test/foo/bar/baz.png"></img></p> + <p><img src="https://test/foo/bar/baz.png"></img></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/plugins/af_readability/vendor/fivefilters/readability.php/test/test-pages/base-url/source.html b/plugins/af_readability/vendor/fivefilters/readability.php/test/test-pages/base-url/source.html new file mode 100644 index 000000000..748b8be7d --- /dev/null +++ b/plugins/af_readability/vendor/fivefilters/readability.php/test/test-pages/base-url/source.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"/> + <title>Base URL test</title> +</head> +<body> + <article> + <h1>Lorem</h1> + <div> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod + 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> + <p>Links</p> + <p><a href="foo/bar/baz.html">link</a></p> + <p><a href="./foo/bar/baz.html">link</a></p> + <p><a href="/foo/bar/baz.html">link</a></p> + <p><a href="#foo">link</a></p> + <p><a href="baz.html#foo">link</a></p> + <p><a href="/foo/bar/baz.html#foo">link</a></p> + <p><a href="http://test/foo/bar/baz.html">link</a></p> + <p><a href="https://test/foo/bar/baz.html">link</a></p> + <p>Images</p> + <p><img src="foo/bar/baz.png"/></p> + <p><img src="./foo/bar/baz.png"/></p> + <p><img src="/foo/bar/baz.png"/></p> + <p><img src="http://test/foo/bar/baz.png"/></p> + <p><img src="https://test/foo/bar/baz.png"/></p> + <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> |