about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/microformats/parser_expectations.clj6
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"),