You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cinema_links=tags.select{ |name,link| name == "a" && link.key?("data-video-dialog")}.map(&:last)
68
+
abort"Only the five YouTube posters may open the cinema"unlesscinema_links.map{ |link| link["href"]} == video_hrefs && cinema_links.all?{ |link| link["class"] == "video__facade" && link["data-video-dialog"] == "true"}
64
69
link_counts=Hash.new(0)
65
70
tags.select{ |name,_attributes| name == "a"}.eachdo |_name,link|
66
71
href=link.fetch("href","")
@@ -83,7 +88,7 @@ Dir.chdir(root) do
83
88
abort"Keep #{kind} link behavior unchanged: #{href}"iflink.key?("target")
84
89
end
85
90
end
86
-
puts"PASS: all #{link_counts[:destination]}homepage destinations open safe, labeled new tabs; #{link_counts[:iso]} ISO downloads, #{link_counts[:same_page]} home/section links and #{link_counts[:email]} email link retain native behavior."
91
+
puts"PASS: #{link_counts[:destination]} safe, labeled new-tab destinations/fallbacks (only five video posters may enhance into the cinema); #{link_counts[:iso]} ISO downloads, #{link_counts[:same_page]} home/section links and #{link_counts[:email]} email link retain native behavior."
0 commit comments