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/YGMinMaxDimensionTest.html
test("max_width", function () {
test("max_width", () => {
const config = Yoga.Config.create();
let root;
@@ -51,7 +51,7 @@ test("max_width", function () {
config.free();
}
});
test("max_height", function () {
test("max_height", () => {
const config = Yoga.Config.create();
let root;
@@ -96,7 +96,7 @@ test("max_height", function () {
config.free();
}
});
test("justify_content_min_max", function () {
test("justify_content_min_max", () => {
const config = Yoga.Config.create();
let root;
@@ -142,7 +142,7 @@ test("justify_content_min_max", function () {
config.free();
}
});
test("align_items_min_max", function () {
test("align_items_min_max", () => {
const config = Yoga.Config.create();
let root;
@@ -188,7 +188,7 @@ test("align_items_min_max", function () {
config.free();
}
});
test("justify_content_overflow_min_max", function () {
test("justify_content_overflow_min_max", () => {
const config = Yoga.Config.create();
let root;
@@ -263,7 +263,7 @@ test("justify_content_overflow_min_max", function () {
config.free();
}
});
test("flex_grow_to_min", function () {
test("flex_grow_to_min", () => {
const config = Yoga.Config.create();
let root;
@@ -322,7 +322,7 @@ test("flex_grow_to_min", function () {
config.free();
}
});
test("flex_grow_in_at_most_container", function () {
test("flex_grow_in_at_most_container", () => {
const config = Yoga.Config.create();
let root;
@@ -382,7 +382,7 @@ test("flex_grow_in_at_most_container", function () {
config.free();
}
});
test("flex_grow_child", function () {
test("flex_grow_child", () => {
const config = Yoga.Config.create();
let root;
@@ -426,7 +426,7 @@ test("flex_grow_child", function () {
config.free();
}
});
test("flex_grow_within_constrained_min_max_column", function () {
test("flex_grow_within_constrained_min_max_column", () => {
const config = Yoga.Config.create();
let root;
@@ -483,7 +483,7 @@ test("flex_grow_within_constrained_min_max_column", function () {
config.free();
}
});
test("flex_grow_within_max_width", function () {
test("flex_grow_within_max_width", () => {
const config = Yoga.Config.create();
let root;
@@ -542,7 +542,7 @@ test("flex_grow_within_max_width", function () {
config.free();
}
});
test("flex_grow_within_constrained_max_width", function () {
test("flex_grow_within_constrained_max_width", () => {
const config = Yoga.Config.create();
let root;
@@ -601,7 +601,7 @@ test("flex_grow_within_constrained_max_width", function () {
config.free();
}
});
test("flex_root_ignored", function () {
test("flex_root_ignored", () => {
const config = Yoga.Config.create();
let root;
@@ -661,7 +661,7 @@ test("flex_root_ignored", function () {
config.free();
}
});
test("flex_grow_root_minimized", function () {
test("flex_grow_root_minimized", () => {
const config = Yoga.Config.create();
let root;
@@ -736,7 +736,7 @@ test("flex_grow_root_minimized", function () {
config.free();
}
});
test("flex_grow_height_maximized", function () {
test("flex_grow_height_maximized", () => {
const config = Yoga.Config.create();
let root;
@@ -810,7 +810,7 @@ test("flex_grow_height_maximized", function () {
config.free();
}
});
test("flex_grow_within_constrained_min_row", function () {
test("flex_grow_within_constrained_min_row", () => {
const config = Yoga.Config.create();
let root;
@@ -868,7 +868,7 @@ test("flex_grow_within_constrained_min_row", function () {
config.free();
}
});
test("flex_grow_within_constrained_min_column", function () {
test("flex_grow_within_constrained_min_column", () => {
const config = Yoga.Config.create();
let root;
@@ -924,7 +924,7 @@ test("flex_grow_within_constrained_min_column", function () {
config.free();
}
});
test("flex_grow_within_constrained_max_row", function () {
test("flex_grow_within_constrained_max_row", () => {
const config = Yoga.Config.create();
let root;
@@ -997,7 +997,7 @@ test("flex_grow_within_constrained_max_row", function () {
config.free();
}
});
test("flex_grow_within_constrained_max_column", function () {
test("flex_grow_within_constrained_max_column", () => {
const config = Yoga.Config.create();
let root;
@@ -1055,7 +1055,7 @@ test("flex_grow_within_constrained_max_column", function () {
config.free();
}
});
test("child_min_max_width_flexing", function () {
test("child_min_max_width_flexing", () => {
const config = Yoga.Config.create();
let root;
@@ -1117,7 +1117,7 @@ test("child_min_max_width_flexing", function () {
config.free();
}
});
test("min_width_overrides_width", function () {
test("min_width_overrides_width", () => {
const config = Yoga.Config.create();
let root;
@@ -1146,7 +1146,7 @@ test("min_width_overrides_width", function () {
config.free();
}
});
test("max_width_overrides_width", function () {
test("max_width_overrides_width", () => {
const config = Yoga.Config.create();
let root;
@@ -1175,7 +1175,7 @@ test("max_width_overrides_width", function () {
config.free();
}
});
test("min_height_overrides_height", function () {
test("min_height_overrides_height", () => {
const config = Yoga.Config.create();
let root;
@@ -1204,7 +1204,7 @@ test("min_height_overrides_height", function () {
config.free();
}
});
test("max_height_overrides_height", function () {
test("max_height_overrides_height", () => {
const config = Yoga.Config.create();
let root;
@@ -1233,7 +1233,7 @@ test("max_height_overrides_height", function () {
config.free();
}
});
test("min_max_percent_no_width_height", function () {
test("min_max_percent_no_width_height", () => {
const config = Yoga.Config.create();
let root;