From cdf600e89d0008ea42eaa60cc7b3abf0a18acff2 Mon Sep 17 00:00:00 2001
From: Alan Pearce
Date: Wed, 24 Sep 2014 13:23:30 +0100
Subject: Parse implied photo properties
---
test/microformats/parser_expectations.clj | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
(limited to 'test')
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj
index 30e05f1..639c417 100644
--- a/test/microformats/parser_expectations.clj
+++ b/test/microformats/parser_expectations.clj
@@ -152,6 +152,23 @@
(expect {:items [{:type ["h-card"] :properties {:name '("Example User")}}] :rels {}}
(parse "
"))
+(expect {:items [{:type ["h-card"] :properties {:photo '("http://example.com/me.png")}}] :rels {}}
+ (parse ""))
+
+(expect {:items [{:type ["h-card"] :properties {:name '("Example User")
+ :photo '("http://example.com/me.png")}}] :rels {}}
+ (parse ""))
+
+(expect {:items [{:type ["h-card"] :properties {:photo '("http://example.com/me.png")}}] :rels {}}
+ (parse ""))
+
+(expect {:items [{:type ["h-card"] :properties {:photo '("http://example.com/me.png")}}] :rels {}}
+ (parse ""))
+
+(expect {:items [{:type ["h-card"] :properties {:name '("Example User")
+ :photo '("http://example.com/me.png")}}] :rels {}}
+ (parse ""))
+
(expect
{:items [{:type ["h-adr"],
:properties {:street-address '("665 3rd St."),
--
cgit 1.4.1