diff --git a/gentest/gentest.js b/gentest/gentest.js index e8fd15a9..ac1f720f 100755 --- a/gentest/gentest.js +++ b/gentest/gentest.js @@ -50,7 +50,7 @@ function printTest(rootNode, layoutTree) { })); for (var i = 0; i < layoutTree.length - 1; i++) { - lines.push('TEST(CSSLayoutTest, INSERT_NAME_HERE) {'); + lines.push('TEST(CSSLayoutTest, ' + layoutTree[i].name + ') {'); lines.push(' ' + setupTestTree(layoutTree[i], 'root', null).reduce(function(curr, prev) { return curr + '\n ' + prev; @@ -346,6 +346,7 @@ function calculateTree(root) { for (var i = 0; i < root.children.length; i++) { var child = root.children[i]; rootLayout.push({ + name: child.id !== '' ? child.id : 'INSERT_NAME_HERE', left: child.offsetLeft, top: child.offsetTop, width: child.offsetWidth, diff --git a/tests/CSSLayoutAbsolutePositionTest.cpp b/tests/CSSLayoutAbsolutePositionTest.cpp index aa104eee..ee27c93c 100644 --- a/tests/CSSLayoutAbsolutePositionTest.cpp +++ b/tests/CSSLayoutAbsolutePositionTest.cpp @@ -10,16 +10,16 @@ /** * @Generated by gentest/gentest.sh with the following input * - *