diff options
author | Alan Pearce | 2014-10-19 13:20:46 +0100 |
---|---|---|
committer | Alan Pearce | 2014-10-19 13:20:46 +0100 |
commit | a4735ff01cdb3ac784820b0510bf07a33a561f1b (patch) | |
tree | 79e382333d9192939bbd62d14745076ea208a784 /test | |
parent | fe2e6c08a4f8d42317fe8e97a62e061209d4ed4d (diff) | |
download | microformats-a4735ff01cdb3ac784820b0510bf07a33a561f1b.tar.lz microformats-a4735ff01cdb3ac784820b0510bf07a33a561f1b.tar.zst microformats-a4735ff01cdb3ac784820b0510bf07a33a561f1b.zip |
Allow base-url to be overridden by parse argument
Diffstat (limited to 'test')
-rw-r--r-- | test/microformats/parser_expectations.clj | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj index f8c7bfb..dd7b335 100644 --- a/test/microformats/parser_expectations.clj +++ b/test/microformats/parser_expectations.clj @@ -305,6 +305,12 @@ <div class=\"h-card\"><img class=\"u-photo\" alt=\"Example User\" src=\"me.png\"></div> </body></html>")) +(expect-focused {:items '({:type ("h-card") :properties {:name ("Example User") + :photo ("http://not-example.com/me.png")}}) :rels {}} + (parse "<html><head><base href=\"http://example.com/\"></head><body> +<div class=\"h-card\"><img class=\"u-photo\" alt=\"Example User\" src=\"me.png\"></div> +</body></html>" "http://not-example.com/")) + (expect {:items '({:type ("h-card"), :properties {:photo ("http://blog.mozilla.org/press/files/2012/04/mitchell-baker.jpg"), :url ("http://blog.lizardwrangler.com/" "https://twitter.com/MitchellBaker"), |