modernize JS

This commit is contained in:
Nick Gerleman
2022-12-24 02:17:10 -08:00
parent c4fe4823a7
commit bf81d8e180
33 changed files with 371 additions and 369 deletions

View File

@@ -7,7 +7,7 @@
// @generated by gentest/gentest.rb from gentest/fixtures/YGMarginTest.html
test("margin_start", function () {
test("margin_start", () => {
const config = Yoga.Config.create();
let root;
@@ -52,7 +52,7 @@ test("margin_start", function () {
config.free();
}
});
test("margin_top", function () {
test("margin_top", () => {
const config = Yoga.Config.create();
let root;
@@ -96,7 +96,7 @@ test("margin_top", function () {
config.free();
}
});
test("margin_end", function () {
test("margin_end", () => {
const config = Yoga.Config.create();
let root;
@@ -142,7 +142,7 @@ test("margin_end", function () {
config.free();
}
});
test("margin_bottom", function () {
test("margin_bottom", () => {
const config = Yoga.Config.create();
let root;
@@ -187,7 +187,7 @@ test("margin_bottom", function () {
config.free();
}
});
test("margin_and_flex_row", function () {
test("margin_and_flex_row", () => {
const config = Yoga.Config.create();
let root;
@@ -233,7 +233,7 @@ test("margin_and_flex_row", function () {
config.free();
}
});
test("margin_and_flex_column", function () {
test("margin_and_flex_column", () => {
const config = Yoga.Config.create();
let root;
@@ -278,7 +278,7 @@ test("margin_and_flex_column", function () {
config.free();
}
});
test("margin_and_stretch_row", function () {
test("margin_and_stretch_row", () => {
const config = Yoga.Config.create();
let root;
@@ -324,7 +324,7 @@ test("margin_and_stretch_row", function () {
config.free();
}
});
test("margin_and_stretch_column", function () {
test("margin_and_stretch_column", () => {
const config = Yoga.Config.create();
let root;
@@ -369,7 +369,7 @@ test("margin_and_stretch_column", function () {
config.free();
}
});
test("margin_with_sibling_row", function () {
test("margin_with_sibling_row", () => {
const config = Yoga.Config.create();
let root;
@@ -428,7 +428,7 @@ test("margin_with_sibling_row", function () {
config.free();
}
});
test("margin_with_sibling_column", function () {
test("margin_with_sibling_column", () => {
const config = Yoga.Config.create();
let root;
@@ -486,7 +486,7 @@ test("margin_with_sibling_column", function () {
config.free();
}
});
test("margin_auto_bottom", function () {
test("margin_auto_bottom", () => {
const config = Yoga.Config.create();
let root;
@@ -547,7 +547,7 @@ test("margin_auto_bottom", function () {
config.free();
}
});
test("margin_auto_top", function () {
test("margin_auto_top", () => {
const config = Yoga.Config.create();
let root;
@@ -608,7 +608,7 @@ test("margin_auto_top", function () {
config.free();
}
});
test("margin_auto_bottom_and_top", function () {
test("margin_auto_bottom_and_top", () => {
const config = Yoga.Config.create();
let root;
@@ -670,7 +670,7 @@ test("margin_auto_bottom_and_top", function () {
config.free();
}
});
test("margin_auto_bottom_and_top_justify_center", function () {
test("margin_auto_bottom_and_top_justify_center", () => {
const config = Yoga.Config.create();
let root;
@@ -732,7 +732,7 @@ test("margin_auto_bottom_and_top_justify_center", function () {
config.free();
}
});
test("margin_auto_mutiple_children_column", function () {
test("margin_auto_mutiple_children_column", () => {
const config = Yoga.Config.create();
let root;
@@ -809,7 +809,7 @@ test("margin_auto_mutiple_children_column", function () {
config.free();
}
});
test("margin_auto_mutiple_children_row", function () {
test("margin_auto_mutiple_children_row", () => {
const config = Yoga.Config.create();
let root;
@@ -887,7 +887,7 @@ test("margin_auto_mutiple_children_row", function () {
config.free();
}
});
test("margin_auto_left_and_right_column", function () {
test("margin_auto_left_and_right_column", () => {
const config = Yoga.Config.create();
let root;
@@ -950,7 +950,7 @@ test("margin_auto_left_and_right_column", function () {
config.free();
}
});
test("margin_auto_left_and_right", function () {
test("margin_auto_left_and_right", () => {
const config = Yoga.Config.create();
let root;
@@ -1011,7 +1011,7 @@ test("margin_auto_left_and_right", function () {
config.free();
}
});
test("margin_auto_start_and_end_column", function () {
test("margin_auto_start_and_end_column", () => {
const config = Yoga.Config.create();
let root;
@@ -1074,7 +1074,7 @@ test("margin_auto_start_and_end_column", function () {
config.free();
}
});
test("margin_auto_start_and_end", function () {
test("margin_auto_start_and_end", () => {
const config = Yoga.Config.create();
let root;
@@ -1135,7 +1135,7 @@ test("margin_auto_start_and_end", function () {
config.free();
}
});
test("margin_auto_left_and_right_column_and_center", function () {
test("margin_auto_left_and_right_column_and_center", () => {
const config = Yoga.Config.create();
let root;
@@ -1197,7 +1197,7 @@ test("margin_auto_left_and_right_column_and_center", function () {
config.free();
}
});
test("margin_auto_left", function () {
test("margin_auto_left", () => {
const config = Yoga.Config.create();
let root;
@@ -1258,7 +1258,7 @@ test("margin_auto_left", function () {
config.free();
}
});
test("margin_auto_right", function () {
test("margin_auto_right", () => {
const config = Yoga.Config.create();
let root;
@@ -1319,7 +1319,7 @@ test("margin_auto_right", function () {
config.free();
}
});
test("margin_auto_left_and_right_stretch", function () {
test("margin_auto_left_and_right_stretch", () => {
const config = Yoga.Config.create();
let root;
@@ -1381,7 +1381,7 @@ test("margin_auto_left_and_right_stretch", function () {
config.free();
}
});
test("margin_auto_top_and_bottom_stretch", function () {
test("margin_auto_top_and_bottom_stretch", () => {
const config = Yoga.Config.create();
let root;
@@ -1442,7 +1442,7 @@ test("margin_auto_top_and_bottom_stretch", function () {
config.free();
}
});
test("margin_should_not_be_part_of_max_height", function () {
test("margin_should_not_be_part_of_max_height", () => {
const config = Yoga.Config.create();
let root;
@@ -1488,7 +1488,7 @@ test("margin_should_not_be_part_of_max_height", function () {
config.free();
}
});
test("margin_should_not_be_part_of_max_width", function () {
test("margin_should_not_be_part_of_max_width", () => {
const config = Yoga.Config.create();
let root;
@@ -1534,7 +1534,7 @@ test("margin_should_not_be_part_of_max_width", function () {
config.free();
}
});
test("margin_auto_left_right_child_bigger_than_parent", function () {
test("margin_auto_left_right_child_bigger_than_parent", () => {
const config = Yoga.Config.create();
let root;
@@ -1581,7 +1581,7 @@ test("margin_auto_left_right_child_bigger_than_parent", function () {
config.free();
}
});
test("margin_auto_left_child_bigger_than_parent", function () {
test("margin_auto_left_child_bigger_than_parent", () => {
const config = Yoga.Config.create();
let root;
@@ -1627,7 +1627,7 @@ test("margin_auto_left_child_bigger_than_parent", function () {
config.free();
}
});
test("margin_fix_left_auto_right_child_bigger_than_parent", function () {
test("margin_fix_left_auto_right_child_bigger_than_parent", () => {
const config = Yoga.Config.create();
let root;
@@ -1674,7 +1674,7 @@ test("margin_fix_left_auto_right_child_bigger_than_parent", function () {
config.free();
}
});
test("margin_auto_left_fix_right_child_bigger_than_parent", function () {
test("margin_auto_left_fix_right_child_bigger_than_parent", () => {
const config = Yoga.Config.create();
let root;
@@ -1721,7 +1721,7 @@ test("margin_auto_left_fix_right_child_bigger_than_parent", function () {
config.free();
}
});
test("margin_auto_top_stretching_child", function () {
test("margin_auto_top_stretching_child", () => {
const config = Yoga.Config.create();
let root;
@@ -1783,7 +1783,7 @@ test("margin_auto_top_stretching_child", function () {
config.free();
}
});
test("margin_auto_left_stretching_child", function () {
test("margin_auto_left_stretching_child", () => {
const config = Yoga.Config.create();
let root;