From 4359f3c56c19494a8094c5e6a1b81de90b0b40c7 Mon Sep 17 00:00:00 2001 From: Andres Rey Date: Sat, 5 May 2018 10:50:59 +0100 Subject: Issue #63: Avoid diving by zero + test case --- test/test-pages/fortressofsolitude/config.json | 3 + .../fortressofsolitude/expected-images.json | 1 + .../fortressofsolitude/expected-metadata.json | 5 + test/test-pages/fortressofsolitude/expected.html | 1 + test/test-pages/fortressofsolitude/source.html | 141 +++++++++++++++++++++ 5 files changed, 151 insertions(+) create mode 100644 test/test-pages/fortressofsolitude/config.json create mode 100644 test/test-pages/fortressofsolitude/expected-images.json create mode 100644 test/test-pages/fortressofsolitude/expected-metadata.json create mode 100644 test/test-pages/fortressofsolitude/expected.html create mode 100644 test/test-pages/fortressofsolitude/source.html (limited to 'test/test-pages') diff --git a/test/test-pages/fortressofsolitude/config.json b/test/test-pages/fortressofsolitude/config.json new file mode 100644 index 0000000..0ac6816 --- /dev/null +++ b/test/test-pages/fortressofsolitude/config.json @@ -0,0 +1,3 @@ +{ + "ArticleByLine": true +} \ No newline at end of file diff --git a/test/test-pages/fortressofsolitude/expected-images.json b/test/test-pages/fortressofsolitude/expected-images.json new file mode 100644 index 0000000..d2198ec --- /dev/null +++ b/test/test-pages/fortressofsolitude/expected-images.json @@ -0,0 +1 @@ +["http:\/\/www.fortressofsolitude.co.za\/wp-content\/uploads\/2018\/05\/C\u00e9line-Dion-Belches-Her-Way-Onto-Deadpool-2s-Soundtrack.jpg","http:\/\/www.fortressofsolitude.co.za\/wp-content\/uploads\/2018\/05\/C\u00e9line-Dion-Belches-Her-Way-Onto-Deadpool-2s-Soundtrack-750x400.jpg"] \ No newline at end of file diff --git a/test/test-pages/fortressofsolitude/expected-metadata.json b/test/test-pages/fortressofsolitude/expected-metadata.json new file mode 100644 index 0000000..2efe2a7 --- /dev/null +++ b/test/test-pages/fortressofsolitude/expected-metadata.json @@ -0,0 +1,5 @@ +{ + "Title": "Céline Dion Belches Her Way Onto Deadpool 2's Soundtrack", + "Author": "Written by Edward Wallace", + "Excerpt": "Just when you think the marketing behind the film couldn't get any more amazing, they go and release a music video from the Deadpool 2 soundtrack starring Canadian singer Céline Dion." +} diff --git a/test/test-pages/fortressofsolitude/expected.html b/test/test-pages/fortressofsolitude/expected.html new file mode 100644 index 0000000..723b28f --- /dev/null +++ b/test/test-pages/fortressofsolitude/expected.html @@ -0,0 +1 @@ +
Céline Dion Belches Her Way Onto Deadpool 2's Soundtrack

Ryan Reynolds never stops surprising fans with his Deadpool, a.k.a. the Merc with the Mouth, persona. Just when you think the marketing behind the film couldn’t get any more amazing, they go and release a music video from the Deadpool 2 soundtrack starring Canadian singer Céline Dion. Yes, the one who sang the Titanic theme song. Your eyes do not deceive you.

Showtime, Mama. #EffortMaximal #Deadpool2 pic.twitter.com/ZKLrucXJO4

— Ryan Reynolds (@VancityReynolds) May 3, 2018

“What’s left to say? These prayers ain’t working anymore. Every word shot down in flames. What’s left to do with these broken pieces on the floor? I’m losing my voice calling on you,” Dion croons in the video for “Ashes”. Near the end of it, the filthy, foul-mouthed Deadpool shows up in a surprising twist mentioning that he should have gotten N’sync instead.

Deadpool 2 opens in theatres on May 18.


Connect with us on Facebook, Twitter and Instagram. Sign up to our Newsletter.

\ No newline at end of file diff --git a/test/test-pages/fortressofsolitude/source.html b/test/test-pages/fortressofsolitude/source.html new file mode 100644 index 0000000..af8f61a --- /dev/null +++ b/test/test-pages/fortressofsolitude/source.html @@ -0,0 +1,141 @@ + Céline Dion Belches Her Way Onto Deadpool 2's Soundtrack
Games Festival
-- cgit v1.2.3