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.clj12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj
index a60883d..f8c7bfb 100644
--- a/test/microformats/parser_expectations.clj
+++ b/test/microformats/parser_expectations.clj
@@ -304,3 +304,15 @@
         (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>"))
+
+(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"),
+                                :name ("Mitchell Baker"),
+                                }})
+                 :rels {}}
+        (parse "<div class=\"h-card\">
+        <img class=\"u-photo\" src=\"http://blog.mozilla.org/press/files/2012/04/mitchell-baker.jpg\"/>
+        <a class=\"p-name u-url\" href=\"http://blog.lizardwrangler.com/\">Mitchell Baker</a>
+        <a class=\"u-url\" href=\"https://twitter.com/MitchellBaker\">MitchellBaker</a>
+        </div>"))