From d9e9d9589263279e15e156d0e1644ab05e45164b Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Mon, 14 Apr 2014 17:50:55 -0700 Subject: [PATCH] auto-test alignSelf --- spec/LayoutSpec.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/LayoutSpec.js b/spec/LayoutSpec.js index 69f62460..b2c54480 100755 --- a/spec/LayoutSpec.js +++ b/spec/LayoutSpec.js @@ -571,12 +571,19 @@ describe('Layout', function() { randEnum(node, 0.1, 'flexDirection', ['row', 'column']); randEnum(node, 0.1, 'justifyContent', ['flex-start', 'center', 'flex-end', 'space-between', 'space-around']); randEnum(node, 0.1, 'alignItems', ['flex-start', 'center', 'flex-end']); + randEnum(node, 0.1, 'alignSelf', ['flex-start', 'center', 'flex-end']); randChildren(node, 0.2); return node; } for (var i = 0; i < 1000; ++i) { var node = generateRandomNode(); + + // The iframe's body has a natural width of 300 that it doesn't really make + // to replicate in the test suite. The easiest workaround is not to test + // alignSelf property on the top element. + delete node.style.alignSelf; + expect({i: i, node: node, layout: computeLayout(node)}) .toEqual({i: i, node: node, layout: computeDOMLayout(node)}); }