diff options
author | Alan Pearce | 2014-09-23 21:38:11 +0100 |
---|---|---|
committer | Alan Pearce | 2014-09-23 21:38:11 +0100 |
commit | 648699e0c15773bc332b2876ad0aa21c897e3654 (patch) | |
tree | e362e91b4f88215297bcacdbc15071f8f39cd138 /test | |
parent | 2bf7f18a47beb329f6dcd3776a819d6541cff166 (diff) | |
download | microformats-648699e0c15773bc332b2876ad0aa21c897e3654.tar.lz microformats-648699e0c15773bc332b2876ad0aa21c897e3654.tar.zst microformats-648699e0c15773bc332b2876ad0aa21c897e3654.zip |
Add full support for implied names
Diffstat (limited to 'test')
-rw-r--r-- | test/microformats/parser_expectations.clj | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj index c903165..30e05f1 100644 --- a/test/microformats/parser_expectations.clj +++ b/test/microformats/parser_expectations.clj @@ -136,6 +136,22 @@ (expect {:items [{:type ["h-card"] :properties {:name '("Example User") :photo '("http://example.com/me.png")}}] :rels {}} (parse "<img class=\"h-card\" alt=\"Example User\" src=\"http://example.com/me.png\"></img>")) + +(expect {:items [{:type ["h-card"] :properties {:name '("Example User")}}] :rels {}} + (parse "<abbr class=\"h-card\" title=\"Example User\">Incorrect</abbr>")) + +(expect {:items [{:type ["h-card"] :properties {:name '("Example User")}}] :rels {}} + (parse "<p class=\"h-card\"><img alt=\"Example User\"></p>")) + +(expect {:items [{:type ["h-card"] :properties {:name '("Example User")}}] :rels {}} + (parse "<p class=\"h-card\"><abbr title=\"Example User\">Wrong </abbr></p>")) + +(expect {:items [{:type ["h-card"] :properties {:name '("Example User")}}] :rels {}} + (parse "<div class=\"h-card\"><div><img alt=\"Example User\"></div></div>")) + +(expect {:items [{:type ["h-card"] :properties {:name '("Example User")}}] :rels {}} + (parse "<div class=\"h-card\"><p><abbr title=\"Example User\">Wrong</abbr></p></div>")) + (expect {:items [{:type ["h-adr"], :properties {:street-address '("665 3rd St."), |