From 22ef5246f864480a392f7848ef76dce3dcbf51ad Mon Sep 17 00:00:00 2001 From: Thomas Aylott Date: Mon, 25 Nov 2013 12:22:17 -0500 Subject: [PATCH] =?UTF-8?q?fixes=20#532=20=E2=80=94=20no=20`getElementsByC?= =?UTF-8?q?lassName`=20in=20IE8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/__tests__/ReactMountDestruction-test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/__tests__/ReactMountDestruction-test.js b/src/core/__tests__/ReactMountDestruction-test.js index e476dd0864b..a654f496780 100644 --- a/src/core/__tests__/ReactMountDestruction-test.js +++ b/src/core/__tests__/ReactMountDestruction-test.js @@ -43,17 +43,17 @@ describe('ReactMount', function() { React.renderComponent(instanceTwo, secondRootDiv); // Test that two react roots are rendered in isolation - expect(firstRootDiv.getElementsByClassName('firstReactDiv').length) + expect(firstRootDiv.querySelectorAll('.firstReactDiv').length) .toBe(1); - expect(secondRootDiv.getElementsByClassName('secondReactDiv').length) + expect(secondRootDiv.querySelectorAll('.secondReactDiv').length) .toBe(1); // Test that after unmounting each, they are no longer in the document. React.unmountComponentAtNode(firstRootDiv); - expect(firstRootDiv.getElementsByClassName('firstReactDiv').length) + expect(firstRootDiv.querySelectorAll('.firstReactDiv').length) .toBe(0); React.unmountComponentAtNode(secondRootDiv); - expect(secondRootDiv.getElementsByClassName('secondReactDiv').length) + expect(secondRootDiv.querySelectorAll('.secondReactDiv').length) .toBe(0); }); });