Updated the public API to no-longer extract nodes

This commit is contained in:
Colin Eberhardt
2015-08-13 08:39:28 +01:00
parent 0de0186fbd
commit f9bb74aedf
9 changed files with 121 additions and 88 deletions

View File

@@ -31,20 +31,10 @@ describe('Javascript Only', function() {
]}
);
});
it('should pull out just the layout object from root', function() {
testExtractNodes(
{layout: {width: undefined, height: undefined, top: 0, left: 0}},
{width: undefined, height: undefined, top: 0, left: 0}
);
});
it('should pull out just the layout object from root and children', function() {
testExtractNodes(
{layout: {width: undefined, height: undefined, top: 0, left: 0}, children: [
{layout: {width: undefined, height: undefined, top: 0, left: 0}}
]},
{width: undefined, height: undefined, top: 0, left: 0, children: [
{width: undefined, height: undefined, top: 0, left: 0}
]}
it('should not replace user-provided layout information', function() {
testFillNodes(
{layout: {width: 200}},
{layout: {width: 200}, style: {}, children: []}
);
});
});