Pleroma.Web.RelMeTest: Add test against Pleroma.Web.RelMe
This commit is contained in:
parent
56d4e39012
commit
25e588496a
4 changed files with 95 additions and 0 deletions
14
test/fixtures/rel_me_anchor.html
vendored
Normal file
14
test/fixtures/rel_me_anchor.html
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Blog</title>
|
||||
</head>
|
||||
<body>
|
||||
<article>
|
||||
<h1>Lorem ipsum</h1>
|
||||
<p>Lorem ipsum dolor sit ameph, …</p>
|
||||
<a rel="me" href="https://social.example.org/users/lain">lain’s account</a>
|
||||
</article>
|
||||
</body>
|
||||
</html>
|
||||
14
test/fixtures/rel_me_link.html
vendored
Normal file
14
test/fixtures/rel_me_link.html
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Blog</title>
|
||||
<link rel="me" href="https://social.example.org/users/lain"/>
|
||||
</head>
|
||||
<body>
|
||||
<article>
|
||||
<h1>Lorem ipsum</h1>
|
||||
<p>Lorem ipsum dolor sit ameph, …</p>
|
||||
</article>
|
||||
</body>
|
||||
</html>
|
||||
13
test/fixtures/rel_me_null.html
vendored
Normal file
13
test/fixtures/rel_me_null.html
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Blog</title>
|
||||
</head>
|
||||
<body>
|
||||
<article>
|
||||
<h1>Lorem ipsum</h1>
|
||||
<p>Lorem ipsum dolor sit ameph, …</p>
|
||||
</article>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue