Modernize generated JS tests
This commit is contained in:
@@ -6,34 +6,34 @@
|
||||
*/
|
||||
|
||||
it("align_baseline_parent_using_child_in_column_as_reference", function () {
|
||||
var config = Yoga.Config.create();
|
||||
const config = Yoga.Config.create();
|
||||
|
||||
try {
|
||||
var root = Yoga.Node.create(config);
|
||||
const root = Yoga.Node.create(config);
|
||||
root.setFlexDirection(Yoga.FLEX_DIRECTION_ROW);
|
||||
root.setWidth(1000);
|
||||
root.setHeight(1000);
|
||||
root.setAlignItems(Yoga.ALIGN_BASELINE);
|
||||
|
||||
var root_child0 = Yoga.Node.create(config);
|
||||
const root_child0 = Yoga.Node.create(config);
|
||||
root_child0.setFlexDirection(Yoga.FLEX_DIRECTION_COLUMN);
|
||||
root_child0.setWidth(500);
|
||||
root_child0.setHeight(600);
|
||||
root.insertChild(root_child0, 0);
|
||||
|
||||
var root_child1 = Yoga.Node.create(config);
|
||||
const root_child1 = Yoga.Node.create(config);
|
||||
root_child1.setFlexDirection(Yoga.FLEX_DIRECTION_COLUMN);
|
||||
root_child1.setWidth(500);
|
||||
root_child1.setHeight(800);
|
||||
root.insertChild(root_child1, 1);
|
||||
|
||||
var root_child1_child0 = Yoga.Node.create(config);
|
||||
const root_child1_child0 = Yoga.Node.create(config);
|
||||
root_child1_child0.setFlexDirection(Yoga.FLEX_DIRECTION_COLUMN);
|
||||
root_child1_child0.setWidth(500);
|
||||
root_child1_child0.setHeight(300);
|
||||
root_child1.insertChild(root_child1_child0, 0);
|
||||
|
||||
var root_child1_child1 = Yoga.Node.create(config);
|
||||
const root_child1_child1 = Yoga.Node.create(config);
|
||||
root_child1_child1.setFlexDirection(Yoga.FLEX_DIRECTION_COLUMN);
|
||||
root_child1_child1.setWidth(500);
|
||||
root_child1_child1.setHeight(400);
|
||||
@@ -80,34 +80,34 @@ it("align_baseline_parent_using_child_in_column_as_reference", function () {
|
||||
});
|
||||
|
||||
it("align_baseline_parent_using_child_in_row_as_reference", function () {
|
||||
var config = Yoga.Config.create();
|
||||
const config = Yoga.Config.create();
|
||||
|
||||
try {
|
||||
var root = Yoga.Node.create(config);
|
||||
const root = Yoga.Node.create(config);
|
||||
root.setFlexDirection(Yoga.FLEX_DIRECTION_ROW);
|
||||
root.setWidth(1000);
|
||||
root.setHeight(1000);
|
||||
root.setAlignItems(Yoga.ALIGN_BASELINE);
|
||||
|
||||
var root_child0 = Yoga.Node.create(config);
|
||||
const root_child0 = Yoga.Node.create(config);
|
||||
root_child0.setFlexDirection(Yoga.FLEX_DIRECTION_COLUMN);
|
||||
root_child0.setWidth(500);
|
||||
root_child0.setHeight(600);
|
||||
root.insertChild(root_child0, 0);
|
||||
|
||||
var root_child1 = Yoga.Node.create(config);
|
||||
const root_child1 = Yoga.Node.create(config);
|
||||
root_child1.setFlexDirection(Yoga.FLEX_DIRECTION_ROW);
|
||||
root_child1.setWidth(500);
|
||||
root_child1.setHeight(800);
|
||||
root.insertChild(root_child1, 1);
|
||||
|
||||
var root_child1_child0 = Yoga.Node.create(config);
|
||||
const root_child1_child0 = Yoga.Node.create(config);
|
||||
root_child1_child0.setFlexDirection(Yoga.FLEX_DIRECTION_COLUMN);
|
||||
root_child1_child0.setWidth(500);
|
||||
root_child1_child0.setHeight(500);
|
||||
root_child1.insertChild(root_child1_child0, 0);
|
||||
|
||||
var root_child1_child1 = Yoga.Node.create(config);
|
||||
const root_child1_child1 = Yoga.Node.create(config);
|
||||
root_child1_child1.setFlexDirection(Yoga.FLEX_DIRECTION_COLUMN);
|
||||
root_child1_child1.setWidth(500);
|
||||
root_child1_child1.setHeight(400);
|
||||
|
Reference in New Issue
Block a user