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-2/expected-metadata.json | 7 + test/test-pages/mozilla-2/expected.html | 55 +++ test/test-pages/mozilla-2/source.html | 408 +++++++++++++++++++++++ 3 files changed, 470 insertions(+) create mode 100644 test/test-pages/mozilla-2/expected-metadata.json create mode 100644 test/test-pages/mozilla-2/expected.html create mode 100644 test/test-pages/mozilla-2/source.html (limited to 'test/test-pages/mozilla-2') diff --git a/test/test-pages/mozilla-2/expected-metadata.json b/test/test-pages/mozilla-2/expected-metadata.json new file mode 100644 index 0000000..d2126a6 --- /dev/null +++ b/test/test-pages/mozilla-2/expected-metadata.json @@ -0,0 +1,7 @@ +{ + "title": "Welcome to Firefox Developer Edition", + "byline": null, + "dir": "ltr", + "excerpt": "Get to know the features that make it the most complete browser for building the Web.", + "readerable": false +} diff --git a/test/test-pages/mozilla-2/expected.html b/test/test-pages/mozilla-2/expected.html new file mode 100644 index 0000000..3b10053 --- /dev/null +++ b/test/test-pages/mozilla-2/expected.html @@ -0,0 +1,55 @@ +
+
+
+
+

Get to know the features that make it the most complete browser for building the Web.

+
+
    +
  • + Screenshot +

    WebIDE

    +

    Develop, deploy and debug Firefox OS apps directly in your browser, or on a Firefox OS device, with this tool that replaces App Manager.

    Learn more about WebIDE
  • +
  • + Screenshot +

    Valence

    +

    Develop and debug your apps across multiple browsers and devices with this powerful extension that comes pre-installed with Firefox Developer Edition.

    Learn more about Valence
  • +
+
+

Important: Sync your new profile

+

Developer Edition comes with a new profile so you can run it alongside other versions of Firefox. To access your bookmarks, browsing history and more, you need to sync the profile with your existing Firefox Account, or create a new one. Learn more

+
+
+
+
+
+

Features and tools

+
    +
  • + Screenshot +

    Page Inspector

    +

    Examine the HTML and CSS of any Web page and easily modify the structure and layout of a page.

    Learn more about Page Inspector
  • +
  • + Screenshot +

    Web Console

    +

    See logged information associated with a Web page and use Web Console to interact with Web pages using JavaScript.

    Learn more about Web Console
  • +
  • + Screenshot +

    JavaScript Debugger

    +

    Step through JavaScript code and examine or modify its state to help track down bugs.

    Learn more about JavaScript Debugger
  • +
  • + Screenshot +

    Network Monitor

    +

    See all the network requests your browser makes, how long each request takes and details of each request.

    Learn more about Network Monitor
  • +
  • + Screenshot +

    Web Audio Editor

    +

    Inspect and interact with Web Audio API in real time to ensure that all audio nodes are connected in the way you expect.

    Learn more about Web Audio Editor
  • +
  • + Screenshot +

    Style Editor

    +

    View and edit CSS styles associated with a Web page, create new ones and apply existing CSS stylesheets to any page.

    Learn more about Style Editor
  • +
+
+
+
+
\ No newline at end of file diff --git a/test/test-pages/mozilla-2/source.html b/test/test-pages/mozilla-2/source.html new file mode 100644 index 0000000..31f30a6 --- /dev/null +++ b/test/test-pages/mozilla-2/source.html @@ -0,0 +1,408 @@ + + + + + + + + + + + Welcome to Firefox Developer Edition + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ +
+ Mozilla + + +

Firefox Developer Edition

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

Welcome to Firefox Developer Edition

+

Get to know the features that make it the most complete browser for building the Web.

+
+
    +
  • + + Screenshot + +

    WebIDE

    +

    Develop, deploy and debug Firefox OS apps directly in your browser, or on a Firefox OS device, with this tool that replaces App Manager.

    + Learn more about WebIDE +
    +
    +
    +
  • +
  • + + Screenshot + +

    Valence

    +

    Develop and debug your apps across multiple browsers and devices with this powerful extension that comes pre-installed with Firefox Developer Edition.

    + Learn more about Valence +
    +
    +
    +
  • +
+
+

Important: Sync your new profile

+

+ Developer Edition comes with a new profile so you can run it alongside other versions of Firefox. To access your bookmarks, browsing history and more, you need to sync the profile with your existing Firefox Account, or create a new one. + Learn more +

+
+
+ +
+
+
+

Features and tools

+
+ +
+
+
+ + + +
+ + +
+ + + + + + -- cgit v1.2.3