From b912acf8e347db8d53c99498118740cb3100dd95 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Mon, 6 Apr 2015 16:08:12 -0700 Subject: [PATCH] Add more failing tests if someone wants to pick them up and have fun :p --- src/__tests__/Layout-test.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/__tests__/Layout-test.js b/src/__tests__/Layout-test.js index a279e529..67a96dc4 100755 --- a/src/__tests__/Layout-test.js +++ b/src/__tests__/Layout-test.js @@ -1513,4 +1513,33 @@ describe('Layout', function() { ); }); + xit('should layout minHeight with a flex child', function() { + testLayout( + {style: {minHeight: 800}, children: [ + {style: {flex: 1}} + ]}, + {width: 0, height: 800, top: 0, left: 0, children: [ + {width: 0, height: 800, top: 0, left: 0} + ]} + ); + }); + + xit('should layout node with a nested sibling child with width', function() { + testLayout( + {style: {}, children: [ + {style: {width: 5}}, + {style: {}, children: [ + {style: {}} + ]}, + ]}, + {width: 5, height: 0, top: 0, left: 0, children: [ + {width: 5, height: 0, top: 0, left: 0}, + {width: 5, height: 0, top: 0, left: 0, children: [ + {width: 5, height: 0, top: 0, left: 0} + ]} + ]} + ); + }); + + });