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 @@ | |||
34 | (#'microformats.parser/node-to-text))) | 34 | (#'microformats.parser/node-to-text))) |
35 | 35 | ||
36 | (expect {:tag :div :attrs {:class "h-card"} | 36 | (expect {:tag :div :attrs {:class "h-card"} |
37 | :content ["\n" | 37 | :content ["\n" |
38 | {:tag :p :attrs nil | 38 | {:tag :p :attrs nil |
39 | :content [{:tag :a :attrs {:class "h-org"} | 39 | :content [{:tag :a :attrs {:class "h-org"} |
40 | :content nil}]} | 40 | :content nil}]} |
41 | "\n"]} | 41 | "\n"]} |
42 | (z/node (snippet "<div class=\"h-card\"> | 42 | (z/node (snippet "<div class=\"h-card\"> |
43 | <p><a class=\"h-org\"></a></p> | 43 | <p><a class=\"h-org\"></a></p> |
44 | </div>"))) | 44 | </div>"))) |
45 | 45 | ||
@@ -170,7 +170,7 @@ | |||
170 | (parse " <div class=\"h-card\"><p class=\"p-name\">Example User</p></div>")) | 170 | (parse " <div class=\"h-card\"><p class=\"p-name\">Example User</p></div>")) |
171 | 171 | ||
172 | (expect {:items '({:properties {:name ("Example User") :url ("http://example.com")} | 172 | (expect {:items '({:properties {:name ("Example User") :url ("http://example.com")} |
173 | :type ("h-card")}) :rels {}} | 173 | :type ("h-card")}) :rels {}} |
174 | (parse "<div class=\"h-card\"><a class=\"p-name u-url\" href=\"http://example.com\">Example User</></div>")) | 174 | (parse "<div class=\"h-card\"><a class=\"p-name u-url\" href=\"http://example.com\">Example User</></div>")) |
175 | 175 | ||
176 | (expect {:items '({:type ("h-card") :properties {:name ("Example User")}}) :rels {}} | 176 | (expect {:items '({:type ("h-card") :properties {:name ("Example User")}}) :rels {}} |
@@ -183,7 +183,7 @@ | |||
183 | (parse "<a class=\"h-card\" href=\"http://example.com\">Example User</a>")) | 183 | (parse "<a class=\"h-card\" href=\"http://example.com\">Example User</a>")) |
184 | 184 | ||
185 | (expect {:items '({:type ("h-card") :properties {:name ("Example User") | 185 | (expect {:items '({:type ("h-card") :properties {:name ("Example User") |
186 | :photo ("http://example.com/me.png")}}) :rels {}} | 186 | :photo ("http://example.com/me.png")}}) :rels {}} |
187 | (parse "<img class=\"h-card\" alt=\"Example User\" src=\"http://example.com/me.png\"></img>")) | 187 | (parse "<img class=\"h-card\" alt=\"Example User\" src=\"http://example.com/me.png\"></img>")) |
188 | 188 | ||
189 | (expect {:items '({:type ("h-card") :properties {:name ("Example User")}}) :rels {}} | 189 | (expect {:items '({:type ("h-card") :properties {:name ("Example User")}}) :rels {}} |
@@ -205,7 +205,7 @@ | |||
205 | (parse "<object class=\"h-card\" data=\"http://example.com/me.png\"></object>")) | 205 | (parse "<object class=\"h-card\" data=\"http://example.com/me.png\"></object>")) |
206 | 206 | ||
207 | (expect {:items '({:type ("h-card") :properties {:name ("Example User") | 207 | (expect {:items '({:type ("h-card") :properties {:name ("Example User") |
208 | :photo ("http://example.com/me.png")}}) :rels {}} | 208 | :photo ("http://example.com/me.png")}}) :rels {}} |
209 | (parse "<div class=\"h-card\"><img alt=\"Example User\" src=\"http://example.com/me.png\"></div>")) | 209 | (parse "<div class=\"h-card\"><img alt=\"Example User\" src=\"http://example.com/me.png\"></div>")) |
210 | 210 | ||
211 | (expect {:items '({:type ("h-card") :properties {:photo ("http://example.com/me.png")}}) :rels {}} | 211 | (expect {:items '({:type ("h-card") :properties {:photo ("http://example.com/me.png")}}) :rels {}} |
@@ -215,14 +215,14 @@ | |||
215 | (parse "<div class=\"h-card\"><div><object data=\"http://example.com/me.png\"></object></div></div>")) | 215 | (parse "<div class=\"h-card\"><div><object data=\"http://example.com/me.png\"></object></div></div>")) |
216 | 216 | ||
217 | (expect {:items '({:type ("h-card") :properties {:name ("Example User") | 217 | (expect {:items '({:type ("h-card") :properties {:name ("Example User") |
218 | :photo ("http://example.com/me.png")}}) :rels {}} | 218 | :photo ("http://example.com/me.png")}}) :rels {}} |
219 | (parse "<div class=\"h-card\"><div><img alt=\"Example User\" src=\"http://example.com/me.png\"></div></div>")) | 219 | (parse "<div class=\"h-card\"><div><img alt=\"Example User\" src=\"http://example.com/me.png\"></div></div>")) |
220 | 220 | ||
221 | (expect {:items '({:type ("h-card") :properties {:name ("Example User") :url ("http://example.com")}}) :rels {}} | 221 | (expect {:items '({:type ("h-card") :properties {:name ("Example User") :url ("http://example.com")}}) :rels {}} |
222 | (parse "<div class=\"h-card\"><a href=\"http://example.com\">Example User</a></div>")) | 222 | (parse "<div class=\"h-card\"><a href=\"http://example.com\">Example User</a></div>")) |
223 | 223 | ||
224 | (expect {:items '({:type ("h-card") :properties {:name ("Example") | 224 | (expect {:items '({:type ("h-card") :properties {:name ("Example") |
225 | :url ("http://example.com" | 225 | :url ("http://example.com" |
226 | "http://myblog.com")}}) | 226 | "http://myblog.com")}}) |
227 | :rels {}} | 227 | :rels {}} |
228 | (parse "<div class=\"h-card\"> | 228 | (parse "<div class=\"h-card\"> |
@@ -241,8 +241,8 @@ | |||
241 | </div>")) | 241 | </div>")) |
242 | 242 | ||
243 | (expect {:items '({:type ("h-card") | 243 | (expect {:items '({:type ("h-card") |
244 | :properties {:name ("Example") | 244 | :properties {:name ("Example") |
245 | :tel ("01234567890")}}) | 245 | :tel ("01234567890")}}) |
246 | :rels {}} | 246 | :rels {}} |
247 | (parse "<div class=\"h-card\"> | 247 | (parse "<div class=\"h-card\"> |
248 | <p class=\"p-name\">Example</p> | 248 | <p class=\"p-name\">Example</p> |
@@ -252,13 +252,13 @@ | |||
252 | 252 | ||
253 | (expect | 253 | (expect |
254 | {:items '({:type ("h-adr"), | 254 | {:items '({:type ("h-adr"), |
255 | :properties {:street-address ("665 3rd St."), | 255 | :properties {:street-address ("665 3rd St."), |
256 | :extended-address ("Suite 207"), | 256 | :extended-address ("Suite 207"), |
257 | :locality ("San Francisco"), | 257 | :locality ("San Francisco"), |
258 | :region ("CA"), | 258 | :region ("CA"), |
259 | :postal-code ("94107"), | 259 | :postal-code ("94107"), |
260 | :country-name ("U.S.A."), | 260 | :country-name ("U.S.A."), |
261 | :name ("665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.")}}) | 261 | :name ("665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.")}}) |
262 | :rels {}} | 262 | :rels {}} |
263 | (parse "<p class=\"h-adr\"> | 263 | (parse "<p class=\"h-adr\"> |
264 | <span class=\"p-street-address\">665 3rd St.</span> | 264 | <span class=\"p-street-address\">665 3rd St.</span> |
@@ -270,13 +270,13 @@ | |||
270 | </p>")) | 270 | </p>")) |
271 | 271 | ||
272 | (expect {:items '({:type ("h-card" "h-org") | 272 | (expect {:items '({:type ("h-card" "h-org") |
273 | :properties {:name ("Example")}}) | 273 | :properties {:name ("Example")}}) |
274 | :rels {}} | 274 | :rels {}} |
275 | (parse "<p class=\"h-card h-org\">Example</p>")) | 275 | (parse "<p class=\"h-card h-org\">Example</p>")) |
276 | 276 | ||
277 | (expect {:items '({:type ("h-card") | 277 | (expect {:items '({:type ("h-card") |
278 | :properties {:name ("John Doe") | 278 | :properties {:name ("John Doe") |
279 | :org ({:value "Example" | 279 | :org ({:value "Example" |
280 | :type ("h-card" "h-org") | 280 | :type ("h-card" "h-org") |
281 | :properties {:name ("Example")}})}}) | 281 | :properties {:name ("Example")}})}}) |
282 | :rels {}} | 282 | :rels {}} |