about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2014-09-28 19:21:55 +0100
committerAlan Pearce2014-09-28 19:21:55 +0100
commit2beb34d0d9481faa111567b6faf019c0c179c591 (patch)
treeff3282f6615fad6aff575006cdd5b28d64d130c1 /test
parentb1e28b8b122a46951ab8e17f010ab58fd06f9524 (diff)
downloadmicroformats-2beb34d0d9481faa111567b6faf019c0c179c591.tar.lz
microformats-2beb34d0d9481faa111567b6faf019c0c179c591.tar.zst
microformats-2beb34d0d9481faa111567b6faf019c0c179c591.zip
Parse properties for child microformats
Diffstat (limited to 'test')
-rw-r--r--test/microformats/parser_expectations.clj11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj
index 1cbeedd..12234aa 100644
--- a/test/microformats/parser_expectations.clj
+++ b/test/microformats/parser_expectations.clj
@@ -244,3 +244,14 @@
                   :properties {:name '("Example")}}]
          :rels {}}
         (parse "<p class=\"h-card h-org\">Example</p>"))
+
+(expect {:items [{:type ["h-card"]
+                  :properties {:name '("John Doe")
+                               :org '({:value "Example"
+                                       :type ["h-card" "h-org"]
+                                       :properties {:name ("Example")}})}}]
+         :rels {}}
+        (parse "<div class=\"h-card\">
+<span class=\"p-name\">John Doe</span>
+<span class=\"p-org h-card h-org\">Example</span>
+</div>"))