diff --git a/resources/tests/readability/daringfireball-1/expected.html b/resources/tests/readability/daringfireball-1/expected.html new file mode 100644 index 0000000..23eeebf --- /dev/null +++ b/resources/tests/readability/daringfireball-1/expected.html @@ -0,0 +1,26 @@ +
+

About This Site

+

Daring Fireball is written and produced by John Gruber.

+

Photograph of the author.
Portrait by George Del Barrio

+

Mac Apps

+ +

iPhone Apps

+ +

Server Software

+

The Daring Fireball website is hosted by Joyent.

+

Articles and links are published through Movable Type. In addition to my own SmartyPants and Markdown plug-ins, Daring Fireball uses several excellent Movable Type plug-ins, including Brad Choate’s MT-Regex and MT-IfEmpty, and Nat Irons’s Amputator.

+

Stats are tracked using Mint. Additional web nerdery, including the membership system, is fueled by Perl, PHP, and MySQL.

+

Web Standards

+

Web standards are important, and Daring Fireball adheres to them. Specifically, Daring Fireball’s HTML markup should validate as either HTML 5 or XHTML 4.01 Transitional, its layout is constructed using valid CSS, and its syndicated feed is valid Atom.

+

If Daring Fireball looks goofy in your browser, you’re likely using a shitty browser that doesn’t support web standards. Internet Explorer, I’m looking in your direction. If you complain about this, I will laugh at you, because I do not care. If, however, you are using a modern, standards-compliant browser and have trouble viewing or reading Daring Fireball, please do let me know.

+
diff --git a/resources/tests/readability/daringfireball-1/source.html b/resources/tests/readability/daringfireball-1/source.html new file mode 100644 index 0000000..c68f390 --- /dev/null +++ b/resources/tests/readability/daringfireball-1/source.html @@ -0,0 +1,151 @@ + + + + + + Daring Fireball: Colophon + + + + + + + + + + + + +
+ + + +
+
+

About This Site

+

Daring Fireball is written and produced by John Gruber.

+

+ Photograph of the author. +
Portrait by George Del Barrio

+

Mac Apps

+ +

iPhone Apps

+ +

Server Software

+

The Daring Fireball website is hosted by Joyent.

+

Articles and links are published through Movable Type. In addition to my own SmartyPants and Markdown plug-ins, Daring Fireball uses several excellent Movable Type plug-ins, including Brad Choate’s MT-Regex and MT-IfEmpty, and Nat Irons’s Amputator.

+

Stats are tracked using Mint. Additional web nerdery, including the membership system, is fueled by Perl, PHP, and MySQL.

+

Web Standards

+

Web standards are important, and Daring Fireball adheres to them. Specifically, Daring Fireball’s HTML markup should validate as either HTML 5 or XHTML 4.01 Transitional, its layout is constructed using valid CSS, and its syndicated feed is valid Atom.

+

If Daring Fireball looks goofy in your browser, you’re likely using a shitty browser that doesn’t support web standards. Internet Explorer, I’m looking in your direction. If you complain about this, I will laugh at you, because I do not care. If, however, you are using a modern, standards-compliant browser and have trouble viewing or reading Daring Fireball, please do let me know.

+
+ + +
+ +

+ Ads via The Deck Ads via The Deck +

+
+ + + + +
+ +
+ + + + diff --git a/src/full_text_parser/readability/tests.rs b/src/full_text_parser/readability/tests.rs index 13646ae..862e07e 100644 --- a/src/full_text_parser/readability/tests.rs +++ b/src/full_text_parser/readability/tests.rs @@ -151,6 +151,11 @@ async fn comment_inside_script_parsing() { run_test("comment-inside-script-parsing").await } +#[tokio::test] +async fn daringfireball_1() { + run_test("daringfireball-1").await +} + #[tokio::test] async fn webmd_1() { run_test("webmd-1").await