about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2014-10-12 00:51:52 +0100
committerAlan Pearce2014-10-12 00:51:52 +0100
commit8d3b9dc5f28587d0290ebf6f7c0bedf0866f5b62 (patch)
tree3496401a1dc9d5578bd29dc7244fc4c640df2e1f /test
parentb12efc0d46294c8c6295971360b67de28127175a (diff)
downloadmicroformats-8d3b9dc5f28587d0290ebf6f7c0bedf0866f5b62.tar.lz
microformats-8d3b9dc5f28587d0290ebf6f7c0bedf0866f5b62.tar.zst
microformats-8d3b9dc5f28587d0290ebf6f7c0bedf0866f5b62.zip
Parse multi-type properties on same element
Diffstat (limited to 'test')
-rw-r--r--test/microformats/parser_expectations.clj9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj
index 654241c..15d41da 100644
--- a/test/microformats/parser_expectations.clj
+++ b/test/microformats/parser_expectations.clj
@@ -231,6 +231,15 @@
 <a class=\"u-url\" href=\"http://myblog.com\">My Blog</a>
 </div>"))
 
+(expect {:items '({:type ("h-card") :properties {:name ("Example User")
+                                                 :url ("http://example.com"
+                                                       "http://myblog.com")}})
+         :rels {}}
+        (parse "<div class=\"h-card\">
+<a class=\"u-url p-name\" href=\"http://example.com\">Example User</a>
+<a class=\"u-url\" href=\"http://myblog.com\">My Blog</a>
+</div>"))
+
 (expect {:items '({:type ("h-card")
                   :properties {:name ("Example")
                                :tel ("01234567890")}})