From ccbb92f9ef2348e80104094b10655b61fd22ef0d Mon Sep 17 00:00:00 2001 From: Andrew Clark Date: Mon, 19 Jun 2017 15:04:19 -0700 Subject: [PATCH] Enable the fuzz tester Now that we've removed the buggy implementation of resuming work, the fuzz tester passes consistently. --- .../shared/fiber/__tests__/ReactIncrementalTriangle-test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/renderers/shared/fiber/__tests__/ReactIncrementalTriangle-test.js b/src/renderers/shared/fiber/__tests__/ReactIncrementalTriangle-test.js index ed9c003185..2c29ef7fb3 100644 --- a/src/renderers/shared/fiber/__tests__/ReactIncrementalTriangle-test.js +++ b/src/renderers/shared/fiber/__tests__/ReactIncrementalTriangle-test.js @@ -235,14 +235,16 @@ describe('ReactIncrementalTriangle', () => { return {simulate, totalChildren, totalTriangles}; } - xit('renders the triangle demo without inconsistencies', () => { + it('renders the triangle demo without inconsistencies', () => { const {simulate} = TriangleSimulator(); simulate(step(1)); simulate(toggle(0), step(1), toggle(0)); simulate(step(1), toggle(0), flush(2), step(2), toggle(0)); + simulate(step(1), flush(3), toggle(0), step(0)); + simulate(step(1), flush(3), toggle(18), step(0)); }); - xit('fuzz tester', () => { + it('fuzz tester', () => { // This test is not deterministic because the inputs are randomized. It runs // a limited number of tests on every run. If it fails, it will output the // case that led to the failure. Add the failing case to the test above