From 3ec5546359239f66714ae6eb5257810877202a52 Mon Sep 17 00:00:00 2001 From: Andres Rey Date: Wed, 7 Dec 2016 09:59:02 +0000 Subject: Added some basic Unit Testing. HTML samples taken from readability.js --- test/test-pages/mozilla-1/expected-metadata.json | 7 + test/test-pages/mozilla-1/expected.html | 60 + test/test-pages/mozilla-1/source.html | 1348 ++++++++++++++++++++++ 3 files changed, 1415 insertions(+) create mode 100644 test/test-pages/mozilla-1/expected-metadata.json create mode 100644 test/test-pages/mozilla-1/expected.html create mode 100644 test/test-pages/mozilla-1/source.html (limited to 'test/test-pages/mozilla-1') diff --git a/test/test-pages/mozilla-1/expected-metadata.json b/test/test-pages/mozilla-1/expected-metadata.json new file mode 100644 index 0000000..77ad264 --- /dev/null +++ b/test/test-pages/mozilla-1/expected-metadata.json @@ -0,0 +1,7 @@ +{ + "title": "Firefox — Customize and make it your own — The most flexible browser on the Web", + "byline": null, + "dir": "ltr", + "excerpt": "It’s easier than ever to personalize Firefox and make it work the way\n you do.\n No other browser gives you so much choice and flexibility.", + "readerable": true +} diff --git a/test/test-pages/mozilla-1/expected.html b/test/test-pages/mozilla-1/expected.html new file mode 100644 index 0000000..b1011d4 --- /dev/null +++ b/test/test-pages/mozilla-1/expected.html @@ -0,0 +1,60 @@ +
+
+
+
+

It’s easier than ever to personalize Firefox and make it work the way you do. +
No other browser gives you so much choice and flexibility.

+
+
+
+
+
+
+

Designed to
be redesigned

+

Get fast and easy access to the features you use most in the new menu. Open the “Customize” panel to add, move or remove any button you want. Keep your favorite features — add-ons, private browsing, Sync and more — one quick click away.

+
+
+
+
+
+
+
+
+

Themes

+

Make Firefox match your style. Choose from thousands of themes and dress up your browser with a single click.

+

+ + + + +

Try it now +
Learn more
+
Preview of the currently selected theme
+
+
+
+
+
+

Add-ons

+

Add-ons are like apps that you install to add features to Firefox. They let you compare prices, check the weather, listen to music, send a tweet and more.

+
    +
  • Read the latest news & blogs
  • +
  • Manage your downloads
  • +
  • Watch videos & view photos
  • +
Here are a few of our favorites +
Learn more
+
+
+
+
+
+
+

Awesome Bar

+

The Awesome Bar learns as you browse to make your version of Firefox unique. Find and return to your favorite sites without having to remember a URL.

See what it can do for you
+
Firefox Awesome Bar
+
+
+
+
+
+
\ No newline at end of file diff --git a/test/test-pages/mozilla-1/source.html b/test/test-pages/mozilla-1/source.html new file mode 100644 index 0000000..b8ff3df --- /dev/null +++ b/test/test-pages/mozilla-1/source.html @@ -0,0 +1,1348 @@ + + + + + + + + Firefox — Customize and make it your own — The most flexible browser on + the Web — Mozilla + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+ + + +
+ + +
+
+
+
+ + + +
+ + +
+
+
+
+
+
+
+

Make your Firefox your own

+ +

It’s easier than ever to personalize Firefox and make it work the way + you do. +
No other browser gives you so much choice and flexibility.

+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+

Designed to
be redesigned

+ +

Get fast and easy access to the features you use most in the new menu. + Open the “Customize” panel to add, move or remove any button you want. + Keep your favorite features — add-ons, private browsing, Sync and more + — one quick click away.

+ +
+
+ +
+
+
+
+
+ +
+ + +
+
+
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+

Themes

+ +

Make Firefox match your style. Choose from thousands of themes and dress + up your browser with a single click.

+
+ + + + +
Try it now + +
Learn more + +
+ +
+ Preview of the currently selected theme +
+
+
+
+
+
+

Add-ons

+ + +

Add-ons are like apps that you install to add features to Firefox. They + let you compare prices, check the weather, listen to music, send a tweet + and more.

+
    +
  • Read the latest news & blogs
  • +
  • Manage your downloads
  • +
  • Watch videos & view photos
  • +
Here are a few of our favorites + +
Learn more + +
+ +
+ +
+
+
+
+
+
+

Awesome Bar

+ + +

The Awesome Bar learns as you browse to make your version of Firefox unique. + Find and return to your favorite sites without having to remember a URL.

+ See what it can do for you +
+
+ Firefox Awesome Bar +
+
+
+
+ +
+
+

Keep your Firefox in Sync

+ +

Access your bookmarks, history, passwords and more from any device to +
make Firefox your own wherever you use it.

+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
Learn more about Sync + +
Get help with Sync + +
+
+
+
+
+
+ + + +
+
+
+ +
+
+

Download Firefox — English (US)

+ + +
+
+

Your system doesn't meet the requirements to + run Firefox.

+

Please follow these instructions to + install Firefox.

+

Firefox is coming soon to iOS! Sign up to learn more.

+ + Supported Devices | What’s New | + Privacy + + + Systems & Languages | + What’s New | + Privacy + + +
+
+
+
+
+ +
+ +
+
+ + + + + + + + -- cgit v1.2.3