diff options
author | Alan Pearce | 2014-10-10 19:57:56 +0100 |
---|---|---|
committer | Alan Pearce | 2014-10-10 19:57:56 +0100 |
commit | 4debb2f471188fdd17a03f7250050b8e83ae9b32 (patch) | |
tree | 19d8a2adcf4b3030ea7e97720073aede5f93bc72 /test | |
parent | 3213c0c46a152e709772f0818a9281f5ce0e1988 (diff) | |
download | microformats-4debb2f471188fdd17a03f7250050b8e83ae9b32.tar.lz microformats-4debb2f471188fdd17a03f7250050b8e83ae9b32.tar.zst microformats-4debb2f471188fdd17a03f7250050b8e83ae9b32.zip |
Parse values from value-title class elements
Diffstat (limited to 'test')
-rw-r--r-- | test/microformats/parser_expectations.clj | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj index 92e4448..5486898 100644 --- a/test/microformats/parser_expectations.clj +++ b/test/microformats/parser_expectations.clj @@ -67,6 +67,9 @@ (expect {:name '("Name")} (parse-p (snippet "<p class=\"p-name\"><span class=\"value\">Name</span></p>"))) +(expect {:name '("Name")} + (parse-p (snippet "<p class=\"p-name\"><span class=\"value-title\" title=\"Name\">Not this name</span></p>"))) + (expect {:name '("Name Endname")} (parse-p (snippet "<p class=\"p-name\"><span class=\"value\">Name</span> (this should not be included) <span class=\"value\">Endname</span></p>"))) |