From eb70e6e3d0bff11c25f14b1196025791bf2308fb Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Tue, 25 Feb 2020 15:07:00 -0500 Subject: Issue #439 - Remove tests from toolkit/ --- .../test/interface-tests/isMicroformat-test.js | 146 --------------------- 1 file changed, 146 deletions(-) delete mode 100644 toolkit/components/microformats/test/interface-tests/isMicroformat-test.js (limited to 'toolkit/components/microformats/test/interface-tests/isMicroformat-test.js') diff --git a/toolkit/components/microformats/test/interface-tests/isMicroformat-test.js b/toolkit/components/microformats/test/interface-tests/isMicroformat-test.js deleted file mode 100644 index 7081b2880..000000000 --- a/toolkit/components/microformats/test/interface-tests/isMicroformat-test.js +++ /dev/null @@ -1,146 +0,0 @@ -/* -Unit test for isMicroformat -*/ - -assert = chai.assert; - - -describe('Microformat.isMicroformat', function() { - - it('true - v2', function(){ - - var doc, - node; - - var html = 'Glenn'; - - doc = document.implementation.createHTMLDocument('New Document'); - node = document.createElement('div'); - doc.body.appendChild( node ); - node.innerHTML = html; - node = doc.querySelector( 'a' ); - - assert.isTrue( Microformats.isMicroformat( node ) ); - - }); - - - it('true - v1', function(){ - - var doc, - node; - - var html = 'Glenn'; - - doc = document.implementation.createHTMLDocument('New Document'); - node = document.createElement('div'); - doc.body.appendChild( node ); - node.innerHTML = html; - node = doc.querySelector( 'a' ); - - assert.isTrue( Microformats.isMicroformat( node ) ); - - }); - - - it('true - v2 filter', function(){ - - var doc, - node; - - var html = 'Glenn'; - - doc = document.implementation.createHTMLDocument('New Document'); - node = document.createElement('div'); - doc.body.appendChild( node ); - node.innerHTML = html; - node = doc.querySelector( 'a' ); - - assert.isTrue( Microformats.isMicroformat( node, {'filters': ['h-card']} ) ); - - }); - - - it('true - v1 filter', function(){ - - var doc, - node; - - var html = 'Glenn'; - - doc = document.implementation.createHTMLDocument('New Document'); - node = document.createElement('div'); - doc.body.appendChild( node ); - node.innerHTML = html; - node = doc.querySelector( 'a' ); - - assert.isTrue( Microformats.isMicroformat( node, {'filters': ['h-card']} ) ); - - }); - - - it('false - v2 filter', function(){ - - var doc, - node; - - var html = 'Glenn'; - - doc = document.implementation.createHTMLDocument('New Document'); - node = document.createElement('div'); - doc.body.appendChild( node ); - node.innerHTML = html; - node = doc.querySelector( 'a' ); - - assert.isFalse( Microformats.isMicroformat( node, {'filters': ['h-entry']} ) ); - - }); - - - - it('false - property', function(){ - - var doc, - node; - - var html = 'Glenn'; - - doc = document.implementation.createHTMLDocument('New Document'); - node = document.createElement('div'); - doc.body.appendChild( node ); - node.innerHTML = html; - node = doc.querySelector( 'span' ); - - assert.isFalse( Microformats.isMicroformat( node ) ); - - }); - - - it('false - no class', function(){ - - var doc, - node; - - var html = 'Glenn'; - - doc = document.implementation.createHTMLDocument('New Document'); - node = document.createElement('div'); - doc.body.appendChild( node ); - node.innerHTML = html; - node = doc.querySelector( 'span' ); - - assert.isFalse( Microformats.isMicroformat( node ) ); - - }); - - - it('false - no node', function(){ - assert.isFalse( Microformats.isMicroformat( ) ); - }); - - - it('false - undefined node', function(){ - assert.isFalse( Microformats.isMicroformat( undefined ) ); - }); - - }); -- cgit v1.2.3