diff options
Diffstat (limited to 'test/test-pages/basic-tags-cleaning')
-rw-r--r-- | test/test-pages/basic-tags-cleaning/expected-metadata.json | 6 | ||||
-rw-r--r-- | test/test-pages/basic-tags-cleaning/expected.html | 11 | ||||
-rw-r--r-- | test/test-pages/basic-tags-cleaning/source.html | 36 |
3 files changed, 53 insertions, 0 deletions
diff --git a/test/test-pages/basic-tags-cleaning/expected-metadata.json b/test/test-pages/basic-tags-cleaning/expected-metadata.json new file mode 100644 index 0000000..baa8c73 --- /dev/null +++ b/test/test-pages/basic-tags-cleaning/expected-metadata.json @@ -0,0 +1,6 @@ +{ + "title": "Basic tag cleaning test", + "byline": null, + "excerpt": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua.", + "readerable": true +} diff --git a/test/test-pages/basic-tags-cleaning/expected.html b/test/test-pages/basic-tags-cleaning/expected.html new file mode 100644 index 0000000..f731d75 --- /dev/null +++ b/test/test-pages/basic-tags-cleaning/expected.html @@ -0,0 +1,11 @@ +<div id="readability-page-1" class="page"> + <div> + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> + <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> + <p>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> + </div> + <div> + <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.</p> + <p>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> + </div> +</div>
\ No newline at end of file diff --git a/test/test-pages/basic-tags-cleaning/source.html b/test/test-pages/basic-tags-cleaning/source.html new file mode 100644 index 0000000..d00f4cc --- /dev/null +++ b/test/test-pages/basic-tags-cleaning/source.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"/> + <title>Basic tag cleaning test</title> +</head> +<body> + <article> + <h1>Lorem</h1> + <div> + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod + tempor incididunt ut labore et dolore magna aliqua.</p> + <p>Ut enim ad minim veniam, + quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo + consequat.</p> + <iframe src="about:blank">Iframe fallback test</iframe> + <p>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> + </div> + <h2>Foo</h2> + <div> + <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.</p> + <object data="foo.swf" type="application/x-shockwave-flash" width="88" height="31"> + <param movie="foo.swf" /> + </object> + <embed src="foo.swf"/> + <p>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> + </div> + </article> +</body> +</html> |