/* Microformats Test Suite - Downloaded from github repo: microformats/tests version v0.1.24 Mocha integration test from: microformats-v2/h-entry/u-property The test was built on Fri Sep 25 2015 13:26:26 GMT+0100 (BST) */ assert = chai.assert; describe('h-entry', function() { var htmlFragment = "\n
\n

microformats.org at 7

\n\n \n

\n \n Article permalink\n

\n

\n http://microformats.org/ - \n 2012/06/25/microformats-org-at-7 \n

\n\n

Article permalink

\n\n \"company\n \n \"microformats.org\"\n \n\n \"company\n\n \n\n value-class-pattern \n \n

http://microformats.org/discuss

\n
"; var expected = {"items":[{"type":["h-entry"],"properties":{"name":["microformats.org at 7"],"url":["http://microformats.org/","http://microformats.org/2012/06/25/microformats-org-at-7","http://microformats.org/2012/06/25/microformats-org-at-7","http://microformats.org/","http://microformats.org/wiki/microformats2-parsing","http://microformats.org/wiki/value-class-pattern","http://microformats.org/wiki/","http://microformats.org/discuss"],"photo":["http://example.com/images/logo.gif"]}}],"rels":{},"rel-urls":{}}; it('u-property', function(){ var doc, dom, node, options, parser, found; dom = new DOMParser(); doc = dom.parseFromString( htmlFragment, 'text/html' ); options ={ 'document': doc, 'node': doc, 'baseUrl': 'http://example.com', 'dateFormat': 'html5' }; found = Microformats.get( options ); assert.deepEqual(found, expected); }); });