summaryrefslogtreecommitdiffstats
path: root/toolkit/components/microformats/test/interface-tests/experimental-test.js
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /toolkit/components/microformats/test/interface-tests/experimental-test.js
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'toolkit/components/microformats/test/interface-tests/experimental-test.js')
-rw-r--r--toolkit/components/microformats/test/interface-tests/experimental-test.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/toolkit/components/microformats/test/interface-tests/experimental-test.js b/toolkit/components/microformats/test/interface-tests/experimental-test.js
new file mode 100644
index 000000000..4d32b83c0
--- /dev/null
+++ b/toolkit/components/microformats/test/interface-tests/experimental-test.js
@@ -0,0 +1,37 @@
+/*
+Unit test for get
+*/
+
+assert = chai.assert;
+
+
+describe('experimental', function() {
+
+ it('h-geo - geo data writen as lat;lon', function(){
+
+ var expected = {
+ 'items': [{
+ 'type': ['h-geo'],
+ 'properties': {
+ 'name': ['30.267991;-97.739568'],
+ 'latitude': [30.267991],
+ 'longitude': [-97.739568]
+ }
+ }],
+ 'rels': {},
+ 'rel-urls': {}
+ },
+ options = {
+ 'html': '<div class="h-geo">30.267991;-97.739568</div>',
+ 'baseUrl': 'http://example.com',
+ 'dateFormat': 'html5',
+ 'parseLatLonGeo': true
+ };
+
+ var result = Microformats.get(options);
+ assert.deepEqual( result, expected );
+
+ });
+
+
+});