diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-02-25 15:07:00 -0500 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 12:55:19 +0200 |
commit | eb70e6e3d0bff11c25f14b1196025791bf2308fb (patch) | |
tree | 5ef4ce17db83c74d7b05ec12c8f59e095a6dd5bd /toolkit/components/microformats/test/lib/maps | |
parent | 32ead795290b3399d56b4708fc75b77d296f6a1a (diff) | |
download | UXP-eb70e6e3d0bff11c25f14b1196025791bf2308fb.tar UXP-eb70e6e3d0bff11c25f14b1196025791bf2308fb.tar.gz UXP-eb70e6e3d0bff11c25f14b1196025791bf2308fb.tar.lz UXP-eb70e6e3d0bff11c25f14b1196025791bf2308fb.tar.xz UXP-eb70e6e3d0bff11c25f14b1196025791bf2308fb.zip |
Issue #439 - Remove tests from toolkit/
Diffstat (limited to 'toolkit/components/microformats/test/lib/maps')
16 files changed, 0 insertions, 688 deletions
diff --git a/toolkit/components/microformats/test/lib/maps/h-adr.js b/toolkit/components/microformats/test/lib/maps/h-adr.js deleted file mode 100644 index aa3a695c5..000000000 --- a/toolkit/components/microformats/test/lib/maps/h-adr.js +++ /dev/null @@ -1,29 +0,0 @@ -/* - Copyright (C) 2010 - 2015 Glenn Jones. All Rights Reserved. - MIT License: https://raw.github.com/glennjones/microformat-shiv/master/license.txt -*/ - -var Modules = (function (modules) { - - modules.maps = (modules.maps)? modules.maps : {}; - - modules.maps['h-adr'] = { - root: 'adr', - name: 'h-adr', - properties: { - 'post-office-box': {}, - 'street-address': {}, - 'extended-address': {}, - 'locality': {}, - 'region': {}, - 'postal-code': {}, - 'country-name': {} - } - }; - - return modules; - -} (Modules || {})); - - - diff --git a/toolkit/components/microformats/test/lib/maps/h-card.js b/toolkit/components/microformats/test/lib/maps/h-card.js deleted file mode 100644 index 124750a37..000000000 --- a/toolkit/components/microformats/test/lib/maps/h-card.js +++ /dev/null @@ -1,85 +0,0 @@ -/* - Copyright (C) 2010 - 2015 Glenn Jones. All Rights Reserved. - MIT License: https://raw.github.com/glennjones/microformat-shiv/master/license.txt -*/ -var Modules = (function (modules) { - - modules.maps = (modules.maps)? modules.maps : {}; - - modules.maps['h-card'] = { - root: 'vcard', - name: 'h-card', - properties: { - 'fn': { - 'map': 'p-name' - }, - 'adr': { - 'map': 'p-adr', - 'uf': ['h-adr'] - }, - 'agent': { - 'uf': ['h-card'] - }, - 'bday': { - 'map': 'dt-bday' - }, - 'class': {}, - 'category': { - 'map': 'p-category', - 'relAlt': ['tag'] - }, - 'email': { - 'map': 'u-email' - }, - 'geo': { - 'map': 'p-geo', - 'uf': ['h-geo'] - }, - 'key': { - 'map': 'u-key' - }, - 'label': {}, - 'logo': { - 'map': 'u-logo' - }, - 'mailer': {}, - 'honorific-prefix': {}, - 'given-name': {}, - 'additional-name': {}, - 'family-name': {}, - 'honorific-suffix': {}, - 'nickname': {}, - 'note': {}, // could be html i.e. e-note - 'org': {}, - 'p-organization-name': {}, - 'p-organization-unit': {}, - 'photo': { - 'map': 'u-photo' - }, - 'rev': { - 'map': 'dt-rev' - }, - 'role': {}, - 'sequence': {}, - 'sort-string': {}, - 'sound': { - 'map': 'u-sound' - }, - 'title': { - 'map': 'p-job-title' - }, - 'tel': {}, - 'tz': {}, - 'uid': { - 'map': 'u-uid' - }, - 'url': { - 'map': 'u-url' - } - } - }; - - return modules; - -} (Modules || {})); - diff --git a/toolkit/components/microformats/test/lib/maps/h-entry.js b/toolkit/components/microformats/test/lib/maps/h-entry.js deleted file mode 100644 index b82c4c2d9..000000000 --- a/toolkit/components/microformats/test/lib/maps/h-entry.js +++ /dev/null @@ -1,52 +0,0 @@ -/* - Copyright (C) 2010 - 2015 Glenn Jones. All Rights Reserved. - MIT License: https://raw.github.com/glennjones/microformat-shiv/master/license.txt -*/ - -var Modules = (function (modules) { - - modules.maps = (modules.maps)? modules.maps : {}; - - modules.maps['h-entry'] = { - root: 'hentry', - name: 'h-entry', - properties: { - 'entry-title': { - 'map': 'p-name' - }, - 'entry-summary': { - 'map': 'p-summary' - }, - 'entry-content': { - 'map': 'e-content' - }, - 'published': { - 'map': 'dt-published' - }, - 'updated': { - 'map': 'dt-updated' - }, - 'author': { - 'uf': ['h-card'] - }, - 'category': { - 'map': 'p-category', - 'relAlt': ['tag'] - }, - 'geo': { - 'map': 'p-geo', - 'uf': ['h-geo'] - }, - 'latitude': {}, - 'longitude': {}, - 'url': { - 'map': 'u-url', - 'relAlt': ['bookmark'] - } - } - }; - - return modules; - -} (Modules || {})); - diff --git a/toolkit/components/microformats/test/lib/maps/h-event.js b/toolkit/components/microformats/test/lib/maps/h-event.js deleted file mode 100644 index 6599d4549..000000000 --- a/toolkit/components/microformats/test/lib/maps/h-event.js +++ /dev/null @@ -1,64 +0,0 @@ -/* - Copyright (C) 2010 - 2015 Glenn Jones. All Rights Reserved. - MIT License: https://raw.github.com/glennjones/microformat-shiv/master/license.txt -*/ - -var Modules = (function (modules) { - - modules.maps = (modules.maps)? modules.maps : {}; - - modules.maps['h-event'] = { - root: 'vevent', - name: 'h-event', - properties: { - 'summary': { - 'map': 'p-name' - }, - 'dtstart': { - 'map': 'dt-start' - }, - 'dtend': { - 'map': 'dt-end' - }, - 'description': {}, - 'url': { - 'map': 'u-url' - }, - 'category': { - 'map': 'p-category', - 'relAlt': ['tag'] - }, - 'location': { - 'uf': ['h-card'] - }, - 'geo': { - 'uf': ['h-geo'] - }, - 'latitude': {}, - 'longitude': {}, - 'duration': { - 'map': 'dt-duration' - }, - 'contact': { - 'uf': ['h-card'] - }, - 'organizer': { - 'uf': ['h-card']}, - 'attendee': { - 'uf': ['h-card']}, - 'uid': { - 'map': 'u-uid' - }, - 'attach': { - 'map': 'u-attach' - }, - 'status': {}, - 'rdate': {}, - 'rrule': {} - } - }; - - return modules; - -} (Modules || {})); - diff --git a/toolkit/components/microformats/test/lib/maps/h-feed.js b/toolkit/components/microformats/test/lib/maps/h-feed.js deleted file mode 100644 index f68022856..000000000 --- a/toolkit/components/microformats/test/lib/maps/h-feed.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - Copyright (C) 2010 - 2015 Glenn Jones. All Rights Reserved. - MIT License: https://raw.github.com/glennjones/microformat-shiv/master/license.txt -*/ - -var Modules = (function (modules) { - - modules.maps = (modules.maps)? modules.maps : {}; - - modules.maps['h-feed'] = { - root: 'hfeed', - name: 'h-feed', - properties: { - 'category': { - 'map': 'p-category', - 'relAlt': ['tag'] - }, - 'summary': { - 'map': 'p-summary' - }, - 'author': { - 'uf': ['h-card'] - }, - 'url': { - 'map': 'u-url' - }, - 'photo': { - 'map': 'u-photo' - }, - } - }; - - return modules; - -} (Modules || {})); - diff --git a/toolkit/components/microformats/test/lib/maps/h-geo.js b/toolkit/components/microformats/test/lib/maps/h-geo.js deleted file mode 100644 index fabb86f07..000000000 --- a/toolkit/components/microformats/test/lib/maps/h-geo.js +++ /dev/null @@ -1,22 +0,0 @@ -/* - Copyright (C) 2010 - 2015 Glenn Jones. All Rights Reserved. - MIT License: https://raw.github.com/glennjones/microformat-shiv/master/license.txt -*/ - -var Modules = (function (modules) { - - modules.maps = (modules.maps)? modules.maps : {}; - - modules.maps['h-geo'] = { - root: 'geo', - name: 'h-geo', - properties: { - 'latitude': {}, - 'longitude': {} - } - }; - - return modules; - -} (Modules || {})); - diff --git a/toolkit/components/microformats/test/lib/maps/h-item.js b/toolkit/components/microformats/test/lib/maps/h-item.js deleted file mode 100644 index 471a8454e..000000000 --- a/toolkit/components/microformats/test/lib/maps/h-item.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - Copyright (C) 2010 - 2015 Glenn Jones. All Rights Reserved. - MIT License: https://raw.github.com/glennjones/microformat-shiv/master/license.txt -*/ - -var Modules = (function (modules) { - - modules.maps = (modules.maps)? modules.maps : {}; - - modules.maps['h-item'] = { - root: 'item', - name: 'h-item', - subTree: false, - properties: { - 'fn': { - 'map': 'p-name' - }, - 'url': { - 'map': 'u-url' - }, - 'photo': { - 'map': 'u-photo' - } - } - }; - - return modules; - -} (Modules || {})); - diff --git a/toolkit/components/microformats/test/lib/maps/h-listing.js b/toolkit/components/microformats/test/lib/maps/h-listing.js deleted file mode 100644 index 94783d9ee..000000000 --- a/toolkit/components/microformats/test/lib/maps/h-listing.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - Copyright (C) 2010 - 2015 Glenn Jones. All Rights Reserved. - MIT License: https://raw.github.com/glennjones/microformat-shiv/master/license.txt -*/ - -var Modules = (function (modules) { - - modules.maps = (modules.maps)? modules.maps : {}; - - modules.maps['h-listing'] = { - root: 'hlisting', - name: 'h-listing', - properties: { - 'version': {}, - 'lister': { - 'uf': ['h-card'] - }, - 'dtlisted': { - 'map': 'dt-listed' - }, - 'dtexpired': { - 'map': 'dt-expired' - }, - 'location': {}, - 'price': {}, - 'item': { - 'uf': ['h-card','a-adr','h-geo'] - }, - 'summary': { - 'map': 'p-name' - }, - 'description': { - 'map': 'e-description' - }, - 'listing': {} - } - }; - - return modules; - -} (Modules || {})); diff --git a/toolkit/components/microformats/test/lib/maps/h-news.js b/toolkit/components/microformats/test/lib/maps/h-news.js deleted file mode 100644 index 362a5a570..000000000 --- a/toolkit/components/microformats/test/lib/maps/h-news.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - Copyright (C) 2010 - 2015 Glenn Jones. All Rights Reserved. - MIT License: https://raw.github.com/glennjones/microformat-shiv/master/license.txt -*/ - -var Modules = (function (modules) { - - modules.maps = (modules.maps)? modules.maps : {}; - - modules.maps['h-news'] = { - root: 'hnews', - name: 'h-news', - properties: { - 'entry': { - 'uf': ['h-entry'] - }, - 'geo': { - 'uf': ['h-geo'] - }, - 'latitude': {}, - 'longitude': {}, - 'source-org': { - 'uf': ['h-card'] - }, - 'dateline': { - 'uf': ['h-card'] - }, - 'item-license': { - 'map': 'u-item-license' - }, - 'principles': { - 'map': 'u-principles', - 'relAlt': ['principles'] - } - } - }; - - return modules; - -} (Modules || {})); - - diff --git a/toolkit/components/microformats/test/lib/maps/h-org.js b/toolkit/components/microformats/test/lib/maps/h-org.js deleted file mode 100644 index d1b4e8245..000000000 --- a/toolkit/components/microformats/test/lib/maps/h-org.js +++ /dev/null @@ -1,24 +0,0 @@ -/* - Copyright (C) 2010 - 2015 Glenn Jones. All Rights Reserved. - MIT License: https://raw.github.com/glennjones/microformat-shiv/master/license.txt -*/ - -var Modules = (function (modules) { - - modules.maps = (modules.maps)? modules.maps : {}; - - modules.maps['h-org'] = { - root: 'h-x-org', // drop this from v1 as it causes issue with fn org hcard pattern - name: 'h-org', - childStructure: true, - properties: { - 'organization-name': {}, - 'organization-unit': {} - } - }; - - return modules; - -} (Modules || {})); - - diff --git a/toolkit/components/microformats/test/lib/maps/h-product.js b/toolkit/components/microformats/test/lib/maps/h-product.js deleted file mode 100644 index 18f8eb51a..000000000 --- a/toolkit/components/microformats/test/lib/maps/h-product.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - Copyright (C) 2010 - 2015 Glenn Jones. All Rights Reserved. - MIT License: https://raw.github.com/glennjones/microformat-shiv/master/license.txt -*/ - -var Modules = (function (modules) { - - modules.maps = (modules.maps)? modules.maps : {}; - - modules.maps['h-product'] = { - root: 'hproduct', - name: 'h-product', - properties: { - 'brand': { - 'uf': ['h-card'] - }, - 'category': { - 'map': 'p-category', - 'relAlt': ['tag'] - }, - 'price': {}, - 'description': { - 'map': 'e-description' - }, - 'fn': { - 'map': 'p-name' - }, - 'photo': { - 'map': 'u-photo' - }, - 'url': { - 'map': 'u-url' - }, - 'review': { - 'uf': ['h-review', 'h-review-aggregate'] - }, - 'listing': { - 'uf': ['h-listing'] - }, - 'identifier': { - 'map': 'u-identifier' - } - } - }; - - return modules; - -} (Modules || {})); - diff --git a/toolkit/components/microformats/test/lib/maps/h-recipe.js b/toolkit/components/microformats/test/lib/maps/h-recipe.js deleted file mode 100644 index e3901ea3e..000000000 --- a/toolkit/components/microformats/test/lib/maps/h-recipe.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - Copyright (C) 2010 - 2015 Glenn Jones. All Rights Reserved. - MIT License: https://raw.github.com/glennjones/microformat-shiv/master/license.txt -*/ - -var Modules = (function (modules) { - - modules.maps = (modules.maps)? modules.maps : {}; - - modules.maps['h-recipe'] = { - root: 'hrecipe', - name: 'h-recipe', - properties: { - 'fn': { - 'map': 'p-name' - }, - 'ingredient': { - 'map': 'e-ingredient' - }, - 'yield': {}, - 'instructions': { - 'map': 'e-instructions' - }, - 'duration': { - 'map': 'dt-duration' - }, - 'photo': { - 'map': 'u-photo' - }, - 'summary': {}, - 'author': { - 'uf': ['h-card'] - }, - 'published': { - 'map': 'dt-published' - }, - 'nutrition': {}, - 'category': { - 'map': 'p-category', - 'relAlt': ['tag'] - }, - } - }; - - return modules; - -} (Modules || {})); diff --git a/toolkit/components/microformats/test/lib/maps/h-resume.js b/toolkit/components/microformats/test/lib/maps/h-resume.js deleted file mode 100644 index d6a46cc88..000000000 --- a/toolkit/components/microformats/test/lib/maps/h-resume.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - Copyright (C) 2010 - 2015 Glenn Jones. All Rights Reserved. - MIT License: https://raw.github.com/glennjones/microformat-shiv/master/license.txt -*/ - -var Modules = (function (modules) { - - modules.maps = (modules.maps)? modules.maps : {}; - - modules.maps['h-resume'] = { - root: 'hresume', - name: 'h-resume', - properties: { - 'summary': {}, - 'contact': { - 'uf': ['h-card'] - }, - 'education': { - 'uf': ['h-card', 'h-event'] - }, - 'experience': { - 'uf': ['h-card', 'h-event'] - }, - 'skill': {}, - 'affiliation': { - 'uf': ['h-card'] - } - } - }; - - return modules; - -} (Modules || {})); - diff --git a/toolkit/components/microformats/test/lib/maps/h-review-aggregate.js b/toolkit/components/microformats/test/lib/maps/h-review-aggregate.js deleted file mode 100644 index 4b6027cbf..000000000 --- a/toolkit/components/microformats/test/lib/maps/h-review-aggregate.js +++ /dev/null @@ -1,40 +0,0 @@ -/* - Copyright (C) 2010 - 2015 Glenn Jones. All Rights Reserved. - MIT License: https://raw.github.com/glennjones/microformat-shiv/master/license.txt -*/ - -var Modules = (function (modules) { - - modules.maps = (modules.maps)? modules.maps : {}; - - modules.maps['h-review-aggregate'] = { - root: 'hreview-aggregate', - name: 'h-review-aggregate', - properties: { - 'summary': { - 'map': 'p-name' - }, - 'item': { - 'map': 'p-item', - 'uf': ['h-item', 'h-geo', 'h-adr', 'h-card', 'h-event', 'h-product'] - }, - 'rating': {}, - 'average': {}, - 'best': {}, - 'worst': {}, - 'count': {}, - 'votes': {}, - 'category': { - 'map': 'p-category', - 'relAlt': ['tag'] - }, - 'url': { - 'map': 'u-url', - 'relAlt': ['self', 'bookmark'] - } - } - }; - - return modules; - -} (Modules || {})); diff --git a/toolkit/components/microformats/test/lib/maps/h-review.js b/toolkit/components/microformats/test/lib/maps/h-review.js deleted file mode 100644 index 83f4c24bc..000000000 --- a/toolkit/components/microformats/test/lib/maps/h-review.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - Copyright (C) 2010 - 2015 Glenn Jones. All Rights Reserved. - MIT License: https://raw.github.com/glennjones/microformat-shiv/master/license.txt -*/ - -var Modules = (function (modules) { - - modules.maps = (modules.maps)? modules.maps : {}; - - modules.maps['h-review'] = { - root: 'hreview', - name: 'h-review', - properties: { - 'summary': { - 'map': 'p-name' - }, - 'description': { - 'map': 'e-description' - }, - 'item': { - 'map': 'p-item', - 'uf': ['h-item', 'h-geo', 'h-adr', 'h-card', 'h-event', 'h-product'] - }, - 'reviewer': { - 'uf': ['h-card'] - }, - 'dtreviewer': { - 'map': 'dt-reviewer' - }, - 'rating': {}, - 'best': {}, - 'worst': {}, - 'category': { - 'map': 'p-category', - 'relAlt': ['tag'] - }, - 'url': { - 'map': 'u-url', - 'relAlt': ['self', 'bookmark'] - } - } - }; - - return modules; - -} (Modules || {})); diff --git a/toolkit/components/microformats/test/lib/maps/rel.js b/toolkit/components/microformats/test/lib/maps/rel.js deleted file mode 100644 index 8accf8009..000000000 --- a/toolkit/components/microformats/test/lib/maps/rel.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - Copyright (C) 2010 - 2015 Glenn Jones. All Rights Reserved. - MIT License: https://raw.github.com/glennjones/microformat-shiv/master/license.txt -*/ - -var Modules = (function (modules) { - - modules.rels = { - // xfn - 'friend': [ 'yes','external'], - 'acquaintance': [ 'yes','external'], - 'contact': [ 'yes','external'], - 'met': [ 'yes','external'], - 'co-worker': [ 'yes','external'], - 'colleague': [ 'yes','external'], - 'co-resident': [ 'yes','external'], - 'neighbor': [ 'yes','external'], - 'child': [ 'yes','external'], - 'parent': [ 'yes','external'], - 'sibling': [ 'yes','external'], - 'spouse': [ 'yes','external'], - 'kin': [ 'yes','external'], - 'muse': [ 'yes','external'], - 'crush': [ 'yes','external'], - 'date': [ 'yes','external'], - 'sweetheart': [ 'yes','external'], - 'me': [ 'yes','external'], - - // other rel=* - 'license': [ 'yes','yes'], - 'nofollow': [ 'no','external'], - 'tag': [ 'no','yes'], - 'self': [ 'no','external'], - 'bookmark': [ 'no','external'], - 'author': [ 'no','external'], - 'home': [ 'no','external'], - 'directory': [ 'no','external'], - 'enclosure': [ 'no','external'], - 'pronunciation': [ 'no','external'], - 'payment': [ 'no','external'], - 'principles': [ 'no','external'] - - }; - - return modules; - -} (Modules || {})); |