summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2013-04-03 15:26:51 +0300
committerSimonas Kazlauskas <git@kazlauskas.me>2013-04-04 13:29:57 +0300
commit63a3000f9cab6446ce40cf6d9671123baee6c22b (patch)
tree9c33af1a8571074ba662a9d0e6c6f3ed8a24b585 /tests
parent5f6035b8e95c0fa5747d8b46b15f6e6c75651abd (diff)
downloadhakyll-63a3000f9cab6446ce40cf6d9671123baee6c22b.tar.gz
Account for scheme-relative URLs
http://url.spec.whatwg.org/#concept-scheme-relative-url
Diffstat (limited to 'tests')
-rw-r--r--tests/Hakyll/Web/Html/Tests.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/Hakyll/Web/Html/Tests.hs b/tests/Hakyll/Web/Html/Tests.hs
index 1c17f5c..bfb6b7c 100644
--- a/tests/Hakyll/Web/Html/Tests.hs
+++ b/tests/Hakyll/Web/Html/Tests.hs
@@ -58,6 +58,7 @@ tests = testGroup "Hakyll.Web.Html.Tests" $ concat
, fromAssertions "isExternal"
[ assert (isExternal "http://reddit.com")
, assert (isExternal "https://mail.google.com")
+ , assert (isExternal "//ajax.googleapis.com")
, assert (not (isExternal "../header.png"))
, assert (not (isExternal "/foo/index.html"))
]