summaryrefslogtreecommitdiff
path: root/test/test-pages/reordering-paragraphs
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2016-12-07 09:59:02 +0000
committerAndres Rey <[email protected]>2016-12-07 09:59:02 +0000
commit3ec5546359239f66714ae6eb5257810877202a52 (patch)
treef800888686b7fb0232a1c323600cfa11ba885c13 /test/test-pages/reordering-paragraphs
parent0a8077f9e2a3f531a087b3ec5c07cf16ba5497ae (diff)
Added some basic Unit Testing. HTML samples taken from readability.js
Diffstat (limited to 'test/test-pages/reordering-paragraphs')
-rw-r--r--test/test-pages/reordering-paragraphs/expected-metadata.json6
-rw-r--r--test/test-pages/reordering-paragraphs/expected.html5
-rw-r--r--test/test-pages/reordering-paragraphs/source.html34
3 files changed, 45 insertions, 0 deletions
diff --git a/test/test-pages/reordering-paragraphs/expected-metadata.json b/test/test-pages/reordering-paragraphs/expected-metadata.json
new file mode 100644
index 0000000..ca7653a
--- /dev/null
+++ b/test/test-pages/reordering-paragraphs/expected-metadata.json
@@ -0,0 +1,6 @@
+{
+ "title": "",
+ "byline": null,
+ "excerpt": "Regarding item# 11111, under sufficiently extreme conditions, quarks may\n become deconfined and exist as free particles. In the course of asymptotic\n freedom, the strong interaction becomes weaker at higher temperatures.\n Eventually, color confinement would be lost and an extremely hot plasma\n of freely moving quarks and gluons would be formed. This theoretical phase\n of matter is called quark-gluon plasma.[81] The exact conditions needed\n to give rise to this state are unknown and have been the subject of a great\n deal of speculation and experimentation.",
+ "readerable": true
+}
diff --git a/test/test-pages/reordering-paragraphs/expected.html b/test/test-pages/reordering-paragraphs/expected.html
new file mode 100644
index 0000000..7d15fcc
--- /dev/null
+++ b/test/test-pages/reordering-paragraphs/expected.html
@@ -0,0 +1,5 @@
+<div id="readability-page-1" class="page">
+ <p id="first">Regarding item# 11111, under sufficiently extreme conditions, quarks may become deconfined and exist as free particles. In the course of asymptotic freedom, the strong interaction becomes weaker at higher temperatures. Eventually, color confinement would be lost and an extremely hot plasma of freely moving quarks and gluons would be formed. This theoretical phase of matter is called quark-gluon plasma.[81] The exact conditions needed to give rise to this state are unknown and have been the subject of a great deal of speculation and experimentation.</p>
+ <p id="second">Regarding item# 22222, under sufficiently extreme conditions, quarks may become deconfined and exist as free particles. In the course of asymptotic freedom, the strong interaction becomes weaker at higher temperatures. Eventually, color confinement would be lost and an extremely hot plasma of freely moving quarks and gluons would be formed. This theoretical phase of matter is called quark-gluon plasma.[81] The exact conditions needed to give rise to this state are unknown and have been the subject of a great deal of speculation and experimentation.</p>
+ <p id="third">Regarding item# 33333, under sufficiently extreme conditions, quarks may become deconfined and exist as free particles. In the course of asymptotic freedom, the strong interaction becomes weaker at higher temperatures. Eventually, color confinement would be lost and an extremely hot plasma of freely moving quarks and gluons would be formed. This theoretical phase of matter is called quark-gluon plasma.[81] The exact conditions needed to give rise to this state are unknown and have been the subject of a great deal of speculation and experimentation.</p>
+ <br id="br2"/> </div> \ No newline at end of file
diff --git a/test/test-pages/reordering-paragraphs/source.html b/test/test-pages/reordering-paragraphs/source.html
new file mode 100644
index 0000000..d081a94
--- /dev/null
+++ b/test/test-pages/reordering-paragraphs/source.html
@@ -0,0 +1,34 @@
+<html>
+
+ <head></head>
+
+ <body>
+ <br id="br1"/>
+ <p id="first">Regarding item# 11111, under sufficiently extreme conditions, quarks may
+ become deconfined and exist as free particles. In the course of asymptotic
+ freedom, the strong interaction becomes weaker at higher temperatures.
+ Eventually, color confinement would be lost and an extremely hot plasma
+ of freely moving quarks and gluons would be formed. This theoretical phase
+ of matter is called quark-gluon plasma.[81] The exact conditions needed
+ to give rise to this state are unknown and have been the subject of a great
+ deal of speculation and experimentation.</p>
+ <p id="second">Regarding item# 22222, under sufficiently extreme conditions, quarks may
+ become deconfined and exist as free particles. In the course of asymptotic
+ freedom, the strong interaction becomes weaker at higher temperatures.
+ Eventually, color confinement would be lost and an extremely hot plasma
+ of freely moving quarks and gluons would be formed. This theoretical phase
+ of matter is called quark-gluon plasma.[81] The exact conditions needed
+ to give rise to this state are unknown and have been the subject of a great
+ deal of speculation and experimentation.</p>
+ <p id="third">Regarding item# 33333, under sufficiently extreme conditions, quarks may
+ become deconfined and exist as free particles. In the course of asymptotic
+ freedom, the strong interaction becomes weaker at higher temperatures.
+ Eventually, color confinement would be lost and an extremely hot plasma
+ of freely moving quarks and gluons would be formed. This theoretical phase
+ of matter is called quark-gluon plasma.[81] The exact conditions needed
+ to give rise to this state are unknown and have been the subject of a great
+ deal of speculation and experimentation.</p>
+ <br id="br2"/>
+ </body>
+
+</html> \ No newline at end of file