Merge pull request #1963 from omnivore-app/fix/telegram-test
Add test for telegram pages
This commit is contained in:
@ -392,6 +392,12 @@
|
||||
<a href="./test-pages/gflownet/distiller.html" target="iframe_b">[dom-distiller]</a>
|
||||
</li>
|
||||
|
||||
<li>telegr.ph<br />
|
||||
<a href="./test-pages/telegr.ph/source.html" target="iframe_b">[source]</a>
|
||||
<a href="./test-pages/telegr.ph/expected.html" target="iframe_b">[readability]</a>
|
||||
<a href="./test-pages/telegr.ph/distiller.html" target="iframe_b">[dom-distiller]</a>
|
||||
</li>
|
||||
|
||||
<li>omnivore_getting_started<br />
|
||||
<a href="./test-pages/omnivore_getting_started/source.html" target="iframe_b">[source]</a>
|
||||
<a href="./test-pages/omnivore_getting_started/expected.html" target="iframe_b">[readability]</a>
|
||||
|
||||
@ -0,0 +1,11 @@
|
||||
<div><h1>
|
||||
Duplicates the title in the text
|
||||
</h1><address>
|
||||
<time datetime="2023-03-24T09:52:08+0000">March 24, 2023</time>
|
||||
</address><h1 dir="auto">
|
||||
Duplicates the title in the text
|
||||
</h1><address dir="auto">
|
||||
@me
|
||||
</address><p dir="auto">
|
||||
Suggestions for improving text processing
|
||||
</p></div>
|
||||
@ -0,0 +1,11 @@
|
||||
{
|
||||
"title": "Duplicates the title in the text",
|
||||
"byline": "@me",
|
||||
"dir": null,
|
||||
"excerpt": "Suggestions for improving text processing",
|
||||
"siteName": "Telegraph",
|
||||
"siteIcon": "http://fakehost/favicon.ico?1",
|
||||
"publishedDate": "2023-03-24T09:52:08.000Z",
|
||||
"language": "English",
|
||||
"readerable": false
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
<DIV class="page" id="readability-page-1">
|
||||
<div>
|
||||
<main>
|
||||
<header dir="auto">
|
||||
<address>
|
||||
<!--
|
||||
--><time datetime="2023-03-24T09:52:08+0000">March 24, 2023</time>
|
||||
</address>
|
||||
</header>
|
||||
<article id="_tl_editor">
|
||||
<div contenteditable="false">
|
||||
<address dir="auto" data-placeholder="Your name" data-label="Author"> @me </address>
|
||||
<p dir="auto"> Suggestions for improving text processing </p>
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
</div>
|
||||
</DIV>
|
||||
115
packages/readabilityjs/test/test-pages/telegr.ph/source.html
Normal file
115
packages/readabilityjs/test/test-pages/telegr.ph/source.html
Normal file
@ -0,0 +1,115 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>
|
||||
Duplicates the title in the text  – Telegraph
|
||||
</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<meta name="format-detection" content="telephone=no" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="MobileOptimized" content="176" />
|
||||
<meta name="HandheldFriendly" content="True" />
|
||||
<meta name="robots" content="index, follow" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:title" content="Duplicates the title in the text " />
|
||||
<meta property="og:description" content="Suggestions for improving text processing" />
|
||||
<meta property="og:image" content="" />
|
||||
<meta property="og:site_name" content="Telegraph" />
|
||||
<meta property="article:published_time" content="2023-03-24T09:52:08+0000" />
|
||||
<meta property="article:modified_time" content="2023-03-24T09:54:58+0000" />
|
||||
<meta property="article:author" content="@me" />
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:title" content="Duplicates the title in the text " />
|
||||
<meta name="twitter:description" content="Suggestions for improving text processing" />
|
||||
<meta name="twitter:image" content="" />
|
||||
<link rel="canonical" href="https://telegra.ph/Duplicates-the-title-in-the-text-03-24" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?1" type="image/x-icon" />
|
||||
<link rel="icon" type="image/png" href="/images/favicon.png?1" sizes="16x16" />
|
||||
<link rel="icon" type="image/png" href="/images/favicon_2x.png?1" sizes="32x32" />
|
||||
<link href="/css/quill.core.min.css" rel="stylesheet" />
|
||||
<link href="/css/core.min.css?46" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="tl_page_wrap">
|
||||
<div class="tl_page">
|
||||
<main class="tl_article">
|
||||
<header class="tl_article_header" dir="auto">
|
||||
<h1>
|
||||
Duplicates the title in the text 
|
||||
</h1>
|
||||
<address>
|
||||
<a rel="author">@me</a><!--
|
||||
--><time datetime="2023-03-24T09:52:08+0000">March 24, 2023</time>
|
||||
</address>
|
||||
</header>
|
||||
<article id="_tl_editor" class="tl_article_content ql-container ql-disabled">
|
||||
<div class="ql-editor" contenteditable="false">
|
||||
<h1 dir="auto" data-placeholder="Title" data-label="Title">
|
||||
Duplicates the title in the text 
|
||||
</h1>
|
||||
<address dir="auto" data-placeholder="Your name" data-label="Author">
|
||||
@me
|
||||
</address>
|
||||
<p dir="auto">
|
||||
<br />
|
||||
</p>
|
||||
<p dir="auto">
|
||||
Suggestions for improving text processing
|
||||
</p>
|
||||
<p dir="auto">
|
||||
<br />
|
||||
</p>
|
||||
</div>
|
||||
<div class="ql-clipboard" contenteditable="true" tabindex="-1"></div>
|
||||
<div id="_tl_link_tooltip" class="tl_link_tooltip"></div>
|
||||
<div id="_tl_tooltip" class="tl_tooltip">
|
||||
<div class="buttons">
|
||||
<span class="button_group"><!--
|
||||
--><button id="_bold_button"></button><!--
|
||||
--><button id="_italic_button"></button><!--
|
||||
--><button id="_link_button"></button><!--
|
||||
--></span><!--
|
||||
--><span class="button_group"><!--
|
||||
--><button id="_header_button"></button><!--
|
||||
--><button id="_subheader_button"></button><!--
|
||||
--><button id="_quote_button"></button><!--
|
||||
--></span>
|
||||
</div>
|
||||
<div class="prompt">
|
||||
<div class="prompt_input_wrap">
|
||||
<input type="url" class="prompt_input" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="_tl_blocks" class="tl_blocks">
|
||||
<div class="buttons">
|
||||
<!--
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
<aside class="tl_article_buttons">
|
||||
<div class="account account_top"></div><button id="_edit_button" class="button edit_button">Edit</button><!--
|
||||
--><button id="_publish_button" class="button publish_button">Publish</button>
|
||||
<div class="account account_bottom"></div>
|
||||
<div id="_error_msg" class="error_msg"></div>
|
||||
</aside>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
<div id="_tl_alerts" class="tl_alerts"></div>
|
||||
<script>
|
||||
<![CDATA[
|
||||
var T={"apiUrl":"https:\/\/edit.telegra.ph","datetime":1679651528,"pageId":"0b17317812a751eb9c29e","editable":true};(function(){var b=document.querySelector('time');if(b&&T.datetime){var a=new Date(1E3*T.datetime),d='January February March April May June July August September October November December'.split(' ')[a.getMonth()],c=a.getDate();b.innerText=d+' '+(10>c?'0':'')+c+', '+a.getFullYear()}})();
|
||||
]]>
|
||||
</script>
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="/js/jquery.selection.min.js"></script>
|
||||
<script src="/js/autosize.min.js"></script>
|
||||
<script src="/js/load-image.all.min.js?1"></script>
|
||||
<script src="/js/quill.min.js?9"></script>
|
||||
<script src="/js/core.min.js?63"></script>
|
||||
<script async="async" src="https://t.me/_websync_?path=Duplicates-the-title-in-the-text-03-24&hash=989f87c4b634601b85"></script>
|
||||
</body>
|
||||
</html>
|
||||
1
packages/readabilityjs/test/test-pages/telegr.ph/url.txt
Normal file
1
packages/readabilityjs/test/test-pages/telegr.ph/url.txt
Normal file
@ -0,0 +1 @@
|
||||
https://telegra.ph/Duplicates-the-title-in-the-text-03-24
|
||||
Reference in New Issue
Block a user