diff options
author | Alan Pearce | 2014-10-12 00:55:12 +0100 |
---|---|---|
committer | Alan Pearce | 2014-10-12 00:55:12 +0100 |
commit | dc1b88d86c0feffd15489a3f51681a9942d107c0 (patch) | |
tree | de764ce396ba58ebc83885f0ae972da92223ff60 | |
parent | 590b586073457434ade3d6ebbfc6f2ca72cc8806 (diff) | |
download | microformats-dc1b88d86c0feffd15489a3f51681a9942d107c0.tar.lz microformats-dc1b88d86c0feffd15489a3f51681a9942d107c0.tar.zst microformats-dc1b88d86c0feffd15489a3f51681a9942d107c0.zip |
Whitespace cleanup
-rw-r--r-- | test/microformats/parser_expectations.clj | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj index 15d41da..a60883d 100644 --- a/test/microformats/parser_expectations.clj +++ b/test/microformats/parser_expectations.clj @@ -34,12 +34,12 @@ (#'microformats.parser/node-to-text))) (expect {:tag :div :attrs {:class "h-card"} - :content ["\n" - {:tag :p :attrs nil - :content [{:tag :a :attrs {:class "h-org"} - :content nil}]} - "\n"]} - (z/node (snippet "<div class=\"h-card\"> + :content ["\n" + {:tag :p :attrs nil + :content [{:tag :a :attrs {:class "h-org"} + :content nil}]} + "\n"]} + (z/node (snippet "<div class=\"h-card\"> <p><a class=\"h-org\"></a></p> </div>"))) @@ -170,7 +170,7 @@ (parse " <div class=\"h-card\"><p class=\"p-name\">Example User</p></div>")) (expect {:items '({:properties {:name ("Example User") :url ("http://example.com")} - :type ("h-card")}) :rels {}} + :type ("h-card")}) :rels {}} (parse "<div class=\"h-card\"><a class=\"p-name u-url\" href=\"http://example.com\">Example User</></div>")) (expect {:items '({:type ("h-card") :properties {:name ("Example User")}}) :rels {}} @@ -183,7 +183,7 @@ (parse "<a class=\"h-card\" href=\"http://example.com\">Example User</a>")) (expect {:items '({:type ("h-card") :properties {:name ("Example User") - :photo ("http://example.com/me.png")}}) :rels {}} + :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 {}} @@ -205,7 +205,7 @@ (parse "<object class=\"h-card\" data=\"http://example.com/me.png\"></object>")) (expect {:items '({:type ("h-card") :properties {:name ("Example User") - :photo ("http://example.com/me.png")}}) :rels {}} + :photo ("http://example.com/me.png")}}) :rels {}} (parse "<div class=\"h-card\"><img alt=\"Example User\" src=\"http://example.com/me.png\"></div>")) (expect {:items '({:type ("h-card") :properties {:photo ("http://example.com/me.png")}}) :rels {}} @@ -215,14 +215,14 @@ (parse "<div class=\"h-card\"><div><object data=\"http://example.com/me.png\"></object></div></div>")) (expect {:items '({:type ("h-card") :properties {:name ("Example User") - :photo ("http://example.com/me.png")}}) :rels {}} + :photo ("http://example.com/me.png")}}) :rels {}} (parse "<div class=\"h-card\"><div><img alt=\"Example User\" src=\"http://example.com/me.png\"></div></div>")) (expect {:items '({:type ("h-card") :properties {:name ("Example User") :url ("http://example.com")}}) :rels {}} (parse "<div class=\"h-card\"><a href=\"http://example.com\">Example User</a></div>")) (expect {:items '({:type ("h-card") :properties {:name ("Example") - :url ("http://example.com" + :url ("http://example.com" "http://myblog.com")}}) :rels {}} (parse "<div class=\"h-card\"> @@ -241,8 +241,8 @@ </div>")) (expect {:items '({:type ("h-card") - :properties {:name ("Example") - :tel ("01234567890")}}) + :properties {:name ("Example") + :tel ("01234567890")}}) :rels {}} (parse "<div class=\"h-card\"> <p class=\"p-name\">Example</p> @@ -252,13 +252,13 @@ (expect {:items '({:type ("h-adr"), - :properties {:street-address ("665 3rd St."), - :extended-address ("Suite 207"), - :locality ("San Francisco"), - :region ("CA"), - :postal-code ("94107"), - :country-name ("U.S.A."), - :name ("665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.")}}) + :properties {:street-address ("665 3rd St."), + :extended-address ("Suite 207"), + :locality ("San Francisco"), + :region ("CA"), + :postal-code ("94107"), + :country-name ("U.S.A."), + :name ("665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.")}}) :rels {}} (parse "<p class=\"h-adr\"> <span class=\"p-street-address\">665 3rd St.</span> @@ -270,13 +270,13 @@ </p>")) (expect {:items '({:type ("h-card" "h-org") - :properties {:name ("Example")}}) + :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" + :properties {:name ("John Doe") + :org ({:value "Example" :type ("h-card" "h-org") :properties {:name ("Example")}})}}) :rels {}} |