padding with a child

This commit is contained in:
Christopher Chedeau
2014-04-16 12:49:31 -07:00
parent 36d6108e8d
commit d607b8bb7a
2 changed files with 18 additions and 5 deletions

View File

@@ -479,6 +479,17 @@ describe('Layout', function() {
);
});
it('should layout node with padding and a child', function() {
testLayout(
{style: {padding: 5}, children: [
{style: {}}
]},
{width: 10, height: 10, top: 0, left: 0, children: [
{width: 0, height: 0, top: 5, left: 5}
]}
);
});
it('should layout randomly', function() {
function RNG(seed) {
this.state = seed;