From 9c4c61be1ec53ede4a22db123d28764f3f7cad9b Mon Sep 17 00:00:00 2001 From: Ryan Christian Date: Tue, 30 Apr 2024 08:05:33 -0500 Subject: [PATCH] test: Remove perhaps superfluous mathml tests for the moment --- test/browser/mathml.test.js | 44 ------------------------------------- 1 file changed, 44 deletions(-) diff --git a/test/browser/mathml.test.js b/test/browser/mathml.test.js index 530a85ae55..8a2e7d2093 100644 --- a/test/browser/mathml.test.js +++ b/test/browser/mathml.test.js @@ -49,50 +49,6 @@ describe('mathml', () => { expect(namespace).to.equal('http://www.w3.org/1998/Math/MathML'); }); - it('should use attributes for className', () => { - const Demo = ({ c }) => ( - - - c - 2 - - - ); - render(, scratch); - let root = scratch.firstChild; - sinon.spy(root, 'removeAttribute'); - render(, scratch); - expect(root.removeAttribute).to.have.been.calledOnce.and.calledWith( - 'class' - ); - - root.removeAttribute.restore(); - - render(
, scratch); - render(, scratch); - root = scratch.firstChild; - sinon.spy(root, 'setAttribute'); - render(, scratch); - expect(root.setAttribute).to.have.been.calledOnce.and.calledWith( - 'class', - 'foo_2' - ); - - root.setAttribute.restore(); - }); - - it('should support class attribute', () => { - render(, scratch); - - expect(scratch.innerHTML).to.contain(` class="foo bar"`); - }); - - it('should support className attribute', () => { - render(, scratch); - - expect(scratch.innerHTML).to.contain(` class="foo bar"`); - }); - it('should transition from DOM to MathML and back', () => { render(