diff options
author | Andres Rey <[email protected]> | 2016-12-07 09:59:02 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2016-12-07 09:59:02 +0000 |
commit | 3ec5546359239f66714ae6eb5257810877202a52 (patch) | |
tree | f800888686b7fb0232a1c323600cfa11ba885c13 /test/test-pages/remove-script-tags/source.html | |
parent | 0a8077f9e2a3f531a087b3ec5c07cf16ba5497ae (diff) |
Added some basic Unit Testing. HTML samples taken from readability.js
Diffstat (limited to 'test/test-pages/remove-script-tags/source.html')
-rw-r--r-- | test/test-pages/remove-script-tags/source.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/test-pages/remove-script-tags/source.html b/test/test-pages/remove-script-tags/source.html new file mode 100644 index 0000000..cacb3df --- /dev/null +++ b/test/test-pages/remove-script-tags/source.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"/> + <title>Remove script tags test</title> +</head> +<body> + <script type="text/javascript1.8">alert('wrong')</script> + <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> + <script> + alert('wrong') + </script> + <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> + <script type="text/javascript"> + alert('wrong') + </script> + <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> + <script type="text/javascript1.8">alert('wrong')</script> + <p>Duis aute irure dolor in reprehenderit in voluptate velit esse + cillum dolore eu fugiat nulla pariatur. + <script type="text/vbscript" language="vbscript"> + document.write("super wrong.") + </script> + Excepteur sint occaecat cupidatat non + proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> + </div> + </article> +</body> +</html> |