about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2014-09-23 19:10:40 +0100
committerAlan Pearce2014-09-23 19:10:40 +0100
commit2bf7f18a47beb329f6dcd3776a819d6541cff166 (patch)
tree8e07bf2cc2cf142bad1d27a7158af96911faf15c /test
parent46d8526af589558b7ed1a2537e96953245c08720 (diff)
downloadmicroformats-2bf7f18a47beb329f6dcd3776a819d6541cff166.tar.lz
microformats-2bf7f18a47beb329f6dcd3776a819d6541cff166.tar.zst
microformats-2bf7f18a47beb329f6dcd3776a819d6541cff166.zip
Add basic img property inferring
Diffstat (limited to 'test')
-rw-r--r--test/microformats/parser_expectations.clj3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj
index bf39778..c903165 100644
--- a/test/microformats/parser_expectations.clj
+++ b/test/microformats/parser_expectations.clj
@@ -133,6 +133,9 @@
 (expect {:items [{:type ["h-card"] :properties {:name '("Example User") :url '("http://example.com")}}] :rels {}}
         (parse "<a class=\"h-card\" href=\"http://example.com\">Example User</a>"))
 
+(expect {:items [{:type ["h-card"] :properties {:name '("Example User")
+                                                :photo '("http://example.com/me.png")}}] :rels {}}
+        (parse "<img class=\"h-card\" alt=\"Example User\" src=\"http://example.com/me.png\"></img>"))
 (expect
  {:items [{:type ["h-adr"],
            :properties {:street-address '("665 3rd St."),