about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2014-10-19 17:32:42 +0100
committerAlan Pearce2014-10-19 17:32:42 +0100
commitcfc7b8399308136d62f172a4d522652d0097bb96 (patch)
treec815fbd25bce28751b7b8e6fe3a37c8436c633f8 /test
parente741d80aac6cc88ba7101585924d070a35583e5b (diff)
downloadmicroformats-master.tar.lz
microformats-master.tar.zst
microformats-master.zip
Join multiple u/dt value elements without spaces HEAD master main
Diffstat (limited to 'test')
-rw-r--r--test/microformats/parser_expectations.clj14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj
index cdd26a9..56d86ab 100644
--- a/test/microformats/parser_expectations.clj
+++ b/test/microformats/parser_expectations.clj
@@ -322,3 +322,17 @@
         <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>"))
+
+(expect {:items '({:type ("h-entry"),
+                   :properties {:name ("microformats.org at 7"),
+                                :url ("http://microformats.org/2012/06/25/microformats-org-at-7")}})
+         :rels {}}
+
+        (parse "<div class=\"h-entry\">
+  <p class=\"p-name\">microformats.org at 7</p>
+  <p class=\"u-url\">
+  <span class=\"value\">http://microformats.org/</span> -
+  <span class=\"value\">2012/06/25/microformats-org-at-7</span>
+  </p>
+
+  </div>" "http://example.com/"))