From 1605bdfb1e48c5ff615130535f4a74f5c692c3e0 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Fri, 12 Dec 2014 13:14:18 +0000 Subject: [PATCH] add weird result from chrome --- src/__tests__/Layout-test.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/__tests__/Layout-test.js b/src/__tests__/Layout-test.js index f42ce51c..61c42335 100755 --- a/src/__tests__/Layout-test.js +++ b/src/__tests__/Layout-test.js @@ -1172,6 +1172,22 @@ describe('Layout', function() { ); }); + // The container should be width = 25 because the width of the two children + // are 20 and 5. It's likely a bug in Chrome + xit('should layout flex wrap with padding and borders', function() { + testLayout( + {style: {height: 100, flexWrap: 'wrap'}, children: [ + {style: {height: 500, paddingRight: 20}}, + {style: {borderLeftWidth: 5}} + ]}, + {width: 20, height: 100, top: 0, left: 0, children: [ + {width: 20, height: 500, top: 0, left: 0}, + {width: 5, height: 0, top: 0, left: 20} + ]} + ); + }); + + xit('should layout text with alignItems: stretch', function() { testLayout( {style: {width: 80, padding: 7, alignItems: 'stretch', measure: text(texts.big)}},