From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../test/interface-tests/experimental-test.js | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 toolkit/components/microformats/test/interface-tests/experimental-test.js (limited to 'toolkit/components/microformats/test/interface-tests/experimental-test.js') 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': '
30.267991;-97.739568
', + 'baseUrl': 'http://example.com', + 'dateFormat': 'html5', + 'parseLatLonGeo': true + }; + + var result = Microformats.get(options); + assert.deepEqual( result, expected ); + + }); + + +}); -- cgit v1.2.3