Skip to content

Commit b345cdc

Browse files
committed
Bring in those extra tests, why not
1 parent 277e1c9 commit b345cdc

File tree

4 files changed

+228
-0
lines changed

4 files changed

+228
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<html>
2+
<head>
3+
<link rel="me" href="https://github.com/gjtorikian/html-proofer" />
4+
<link rel="webmention" href="https://webmention.io/username/webmention" />
5+
<link rel="pingback" href="https://webmention.io/username/xmlrpc" />
6+
</head>
7+
<body></body>
8+
</html>

spec/html-proofer/fixtures/vcr_cassettes/links/link_with_me_html_check_sri_true_log_level_error_type_file_.yml

Lines changed: 162 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/html-proofer/fixtures/vcr_cassettes/links/redirected_error_html_log_level_error_type_file_.yml

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/html-proofer/links_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,12 @@
609609
expect(proofer.failed_tests).to eq []
610610
end
611611

612+
it 'is not checking SRI and CORS for indieweb links with rel "me", "webmention", or "pingback"' do
613+
file = "#{FIXTURES_DIR}/links/link_with_me.html"
614+
proofer = run_proofer(file, :file, check_sri: true)
615+
expect(proofer.failed_tests).to eq []
616+
end
617+
612618
it 'can link to external non-unicode hash' do
613619
file = "#{FIXTURES_DIR}/links/hash_to_unicode_ref.html"
614620
proofer = run_proofer(file, :file, check_external_hash: true)

0 commit comments

Comments
 (0)