diff options
Diffstat (limited to 'test')
4 files changed, 40 insertions, 29 deletions
diff --git a/test/test-pages/base-url-base-element-relative/expected-images.json b/test/test-pages/base-url-base-element-relative/expected-images.json index d3eed6f..efa3a53 100644 --- a/test/test-pages/base-url-base-element-relative/expected-images.json +++ b/test/test-pages/base-url-base-element-relative/expected-images.json @@ -1 +1 @@ -{"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 +{"0":"http:\/\/fakehost\/test\/base\/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/test/test-pages/base-url-base-element-relative/expected.html b/test/test-pages/base-url-base-element-relative/expected.html index 29e7ac5..14d23f6 100644 --- a/test/test-pages/base-url-base-element-relative/expected.html +++ b/test/test-pages/base-url-base-element-relative/expected.html @@ -1,22 +1,33 @@ -<div id="readability-page-1" class="page"> - <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/base/foo/bar/baz.html">link</a></p> - <p><a href="http://fakehost/test/base/foo/bar/baz.html">link</a></p> - <p><a href="http://fakehost/foo/bar/baz.html">link</a></p> - <p><a href="http://fakehost/test/base/#foo">link</a></p> - <p><a href="http://fakehost/test/base/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/base/foo/bar/baz.png"/></p> - <p><img src="http://fakehost/test/base/foo/bar/baz.png"/></p> - <p><img src="http://fakehost/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> - <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> -</div> +<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/base/foo/bar/baz.html">link</a></p> + <p><a href="http://fakehost/test/base/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/base/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/base/foo/bar/baz.png"></img></p> + <p><img src="http://fakehost/test/base/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/test/test-pages/base-url-base-element/expected-images.json b/test/test-pages/base-url-base-element/expected-images.json index d3eed6f..1f0eaea 100644 --- a/test/test-pages/base-url-base-element/expected-images.json +++ b/test/test-pages/base-url-base-element/expected-images.json @@ -1 +1 @@ -{"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 +{"0":"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/test/test-pages/base-url-base-element/expected.html b/test/test-pages/base-url-base-element/expected.html index 36981e1..5037eb2 100644 --- a/test/test-pages/base-url-base-element/expected.html +++ b/test/test-pages/base-url-base-element/expected.html @@ -8,17 +8,17 @@ 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="http://fakehost/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/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://fakehost/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> |