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/ --- .../microformats/test/module-tests/html-test.js | 50 ---------------------- 1 file changed, 50 deletions(-) delete mode 100644 toolkit/components/microformats/test/module-tests/html-test.js (limited to 'toolkit/components/microformats/test/module-tests/html-test.js') diff --git a/toolkit/components/microformats/test/module-tests/html-test.js b/toolkit/components/microformats/test/module-tests/html-test.js deleted file mode 100644 index cd06c7b7f..000000000 --- a/toolkit/components/microformats/test/module-tests/html-test.js +++ /dev/null @@ -1,50 +0,0 @@ -/* -Unit test for html -*/ - -assert = chai.assert; - -// Tests the private Modules.html object -// Modules.html is unit tested as it has an interface access by other modules - -describe('Modules.html', function() { - - - it('parse', function(){ - var html = 'Glenn Jones', - bloghtml = '
  1. This be the title

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque venenatis nunc vitae libero iaculis elementum. Nullam et justo non sapien dapibus blandit nec et leo. Ut ut malesuada tellus.

', - node = document.createElement('div'); - - node.innerHTML = html; - assert.equal(Modules.html.parse( node ), html ); - - // make sure excludes 'data-include' marked items - var child = document.createElement('p'); - child.setAttribute('data-include', 'true'); - node.appendChild(child); - assert.equal( Modules.html.parse( node ), html ); - - node = document.createElement('div'); - node.innerHTML = bloghtml; - assert.equal( Modules.html.parse( node ), bloghtml ); - - node = document.createElement('div'); - assert.equal( Modules.html.parse( node ), '' ); - - child = document.createElement('br'); - node.appendChild(child); - assert.equal( Modules.html.parse( node ), '
' ); - - node = document.createComment('test comment'); - assert.equal( Modules.html.parse( node ), '' ); - - }); - - - - - - - - -}); -- cgit v1.2.3