From 5f8fe7d614eed84fe4d0e65ec3efc8d2a4954acd Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Wed, 14 Oct 2015 14:31:45 -0700 Subject: [PATCH] Don't test frag cases in ReactMultiChildText-test These are now just testing the same as the array cases directly above. This should make this test a bunch faster because it (intentionally) has n^2 runtime. --- .../__tests__/ReactMultiChildText-test.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/renderers/shared/reconciler/__tests__/ReactMultiChildText-test.js b/src/renderers/shared/reconciler/__tests__/ReactMultiChildText-test.js index e981e6bb85502..dd920b2c36f35 100644 --- a/src/renderers/shared/reconciler/__tests__/ReactMultiChildText-test.js +++ b/src/renderers/shared/reconciler/__tests__/ReactMultiChildText-test.js @@ -15,11 +15,8 @@ require('mock-modules'); var React = require('React'); var ReactDOM = require('ReactDOM'); -var ReactFragment = require('ReactFragment'); var ReactTestUtils = require('ReactTestUtils'); -var frag = ReactFragment.create; - // Helpers var testAllPermutations = function(testCases) { for (var i = 0; i < testCases.length; i += 2) { @@ -164,20 +161,6 @@ describe('ReactMultiChildText', function() { [true, [1.2, '',
, 'foo'], true, 1.2], ['1.2', '',
, 'foo', '1.2'], ['', 'foo', [true,
, 1.2, ''], 'foo'], ['', 'foo',
, '1.2', '', 'foo'], - // values inside objects - [frag({a: true}), frag({a: true})], [], - [frag({a: 1.2}), frag({a: 1.2})], ['1.2', '1.2'], - [frag({a: ''}), frag({a: ''})], ['', ''], - [frag({a: 'foo'}), frag({a: 'foo'})], ['foo', 'foo'], - [frag({a:
}), frag({a:
})], [
,
], - - [frag({a: true, b: 1.2, c:
}), '', 'foo'], ['1.2',
, '', 'foo'], - [1.2, '', frag({a:
, b: 'foo', c: true})], ['1.2', '',
, 'foo'], - ['', frag({a: 'foo', b:
, c: true}), 1.2], ['', 'foo',
, '1.2'], - - [true, frag({a: 1.2, b: '', c:
, d: 'foo'}), true, 1.2], ['1.2', '',
, 'foo', '1.2'], - ['', 'foo', frag({a: true, b:
, c: 1.2, d: ''}), 'foo'], ['', 'foo',
, '1.2', '', 'foo'], - // values inside elements [
{true}{1.2}{
}
, '', 'foo'], [
, '', 'foo'], [1.2, '',
{
}{'foo'}{true}
], ['1.2', '',
],