add failing test

This commit is contained in:
Jared Forsyth
2015-08-05 21:57:22 -07:00
parent e1d99952f7
commit 3e9ac12d22

View File

@@ -2397,3 +2397,20 @@ describe('Layout alignContent', function() {
testAlignContent('flex-end', 'flex-end');
testAlignContent('flex-end', 'stretch');
});
describe('nested flex', function() {
it('should stretch a nested child', function() {
testLayout(
{children: [
{children: [{}]},
{style: {width: 40}}
]},
{width: 40, height: 0, top: 0, left: 0, children: [
{width: 40, height: 0, top: 0, left: 0, children: [
{width: 40, height: 0, top: 0, left: 0}
]},
{width: 40, height: 0, top: 0, left: 0}
]}
);
});
});