empty node

This commit is contained in:
Christopher Chedeau
2014-04-09 19:40:17 -07:00
parent 0dcb7080ff
commit d6e1efdb41
2 changed files with 24 additions and 13 deletions

View File

@@ -446,5 +446,19 @@ describe('Layout', function() {
});
});
it('should layout empty node', function() {
testLayout({
style: {},
children: [
{style: {}}
]
}, {
width: 0, height: 0, top: 0, left: 0,
children: [
{width: 0, height: 0, top: 0, left: 0}
]
});
});
});