test/extra/checking/checks/test_mixed_content.rb in nanoc-4.0.0b4 vs test/extra/checking/checks/test_mixed_content.rb in nanoc-4.0.0rc1

- old
+ new

@@ -18,11 +18,11 @@ '<link href="https://nanoc.ws/style.css" />', '<script src="https://nanoc.ws/app.js"></script>', '<form action="https://nanoc.ws/process.cgi"></form>', '<iframe src="https://nanoc.ws/preview.html"></iframe>', '<audio src="https://nanoc.ws/theme-song.flac"></audio>', - '<video src="https://nanoc.ws/screen-cast.mkv"></video>' + '<video src="https://nanoc.ws/screen-cast.mkv"></video>', ]) check = Nanoc::Extra::Checking::Checks::MixedContent.create(site) check.run assert check.issues.empty? @@ -36,11 +36,11 @@ '<link href="/style.css" />', '<script src="/app.js"></script>', '<form action="/process.cgi"></form>', '<iframe src="/preview.html"></iframe>', '<audio src="/theme-song.flac"></audio>', - '<video src="/screen-cast.mkv"></video>' + '<video src="/screen-cast.mkv"></video>', ]) check = Nanoc::Extra::Checking::Checks::MixedContent.create(site) check.run assert check.issues.empty? @@ -54,11 +54,11 @@ '<link href="//nanoc.ws/style.css" />', '<script src="//nanoc.ws/app.js"></script>', '<form action="//nanoc.ws/process.cgi"></form>', '<iframe src="//nanoc.ws/preview.html"></iframe>', '<audio src="//nanoc.ws/theme-song.flac"></audio>', - '<video src="//nanoc.ws/screen-cast.mkv"></video>' + '<video src="//nanoc.ws/screen-cast.mkv"></video>', ]) check = Nanoc::Extra::Checking::Checks::MixedContent.create(site) check.run assert check.issues.empty? @@ -72,11 +72,11 @@ '<link href="style.css" />', '<script src="app.js"></script>', '<form action="process.cgi"></form>', '<iframe src="preview.html"></iframe>', '<audio src="theme-song.flac"></audio>', - '<video src="screen-cast.mkv"></video>' + '<video src="screen-cast.mkv"></video>', ]) check = Nanoc::Extra::Checking::Checks::MixedContent.create(site) check.run assert check.issues.empty? @@ -90,11 +90,11 @@ '<link href="?query-string" />', '<script src="?query-string"></script>', '<form action="?query-string"></form>', '<iframe src="?query-string"></iframe>', '<audio src="?query-string"></audio>', - '<video src="?query-string"></video>' + '<video src="?query-string"></video>', ]) check = Nanoc::Extra::Checking::Checks::MixedContent.create(site) check.run assert check.issues.empty? @@ -108,11 +108,11 @@ '<link href="#fragment" />', '<script src="#fragment"></script>', '<form action="#fragment"></form>', '<iframe src="#fragment"></iframe>', '<audio src="#fragment"></audio>', - '<video src="#fragment"></video>' + '<video src="#fragment"></video>', ]) check = Nanoc::Extra::Checking::Checks::MixedContent.create(site) check.run assert check.issues.empty? @@ -127,11 +127,11 @@ '<link href="http://nanoc.ws/style.css" />', '<script src="http://nanoc.ws/app.js"></script>', '<form action="http://nanoc.ws/process.cgi"></form>', '<iframe src="http://nanoc.ws/preview.html"></iframe>', '<audio src="http://nanoc.ws/theme-song.flac"></audio>', - '<video src="http://nanoc.ws/screencast.mkv"></video>' + '<video src="http://nanoc.ws/screencast.mkv"></video>', ]) check = Nanoc::Extra::Checking::Checks::MixedContent.create(site) check.run issues = check.issues.to_a @@ -173,10 +173,10 @@ '<script href="http://nanoc.ws/app.js"></script>', '<form src="http://nanoc.ws/process.cgi"></form>', '<iframe href="http://nanoc.ws/preview.html"></iframe>', '<audio href="http://nanoc.ws/theme-song.flac"></audio>', '<video target="http://nanoc.ws/screen-cast.mkv"></video>', - '<p>http://nanoc.ws/harmless-text</p>' + '<p>http://nanoc.ws/harmless-text</p>', ]) check = Nanoc::Extra::Checking::Checks::MixedContent.create(site) check.run assert check.issues.empty?