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/YGAbsolutePositionTest.html
test("absolute_layout_width_height_start_top", function () {
test("absolute_layout_width_height_start_top", () => {
const config = Yoga.Config.create();
let root;
@@ -54,7 +54,7 @@ test("absolute_layout_width_height_start_top", function () {
config.free();
}
});
test("absolute_layout_width_height_end_bottom", function () {
test("absolute_layout_width_height_end_bottom", () => {
const config = Yoga.Config.create();
let root;
@@ -101,7 +101,7 @@ test("absolute_layout_width_height_end_bottom", function () {
config.free();
}
});
test("absolute_layout_start_top_end_bottom", function () {
test("absolute_layout_start_top_end_bottom", () => {
const config = Yoga.Config.create();
let root;
@@ -148,7 +148,7 @@ test("absolute_layout_start_top_end_bottom", function () {
config.free();
}
});
test("absolute_layout_width_height_start_top_end_bottom", function () {
test("absolute_layout_width_height_start_top_end_bottom", () => {
const config = Yoga.Config.create();
let root;
@@ -197,7 +197,7 @@ test("absolute_layout_width_height_start_top_end_bottom", function () {
config.free();
}
});
test("do_not_clamp_height_of_absolute_node_to_height_of_its_overflow_hidden_parent", function () {
test("do_not_clamp_height_of_absolute_node_to_height_of_its_overflow_hidden_parent", () => {
const config = Yoga.Config.create();
let root;
@@ -259,7 +259,7 @@ test("do_not_clamp_height_of_absolute_node_to_height_of_its_overflow_hidden_pare
config.free();
}
});
test("absolute_layout_within_border", function () {
test("absolute_layout_within_border", () => {
const config = Yoga.Config.create();
let root;
@@ -380,7 +380,7 @@ test("absolute_layout_within_border", function () {
config.free();
}
});
test("absolute_layout_align_items_and_justify_content_center", function () {
test("absolute_layout_align_items_and_justify_content_center", () => {
const config = Yoga.Config.create();
let root;
@@ -428,7 +428,7 @@ test("absolute_layout_align_items_and_justify_content_center", function () {
config.free();
}
});
test("absolute_layout_align_items_and_justify_content_flex_end", function () {
test("absolute_layout_align_items_and_justify_content_flex_end", () => {
const config = Yoga.Config.create();
let root;
@@ -476,7 +476,7 @@ test("absolute_layout_align_items_and_justify_content_flex_end", function () {
config.free();
}
});
test("absolute_layout_justify_content_center", function () {
test("absolute_layout_justify_content_center", () => {
const config = Yoga.Config.create();
let root;
@@ -523,7 +523,7 @@ test("absolute_layout_justify_content_center", function () {
config.free();
}
});
test("absolute_layout_align_items_center", function () {
test("absolute_layout_align_items_center", () => {
const config = Yoga.Config.create();
let root;
@@ -570,7 +570,7 @@ test("absolute_layout_align_items_center", function () {
config.free();
}
});
test("absolute_layout_align_items_center_on_child_only", function () {
test("absolute_layout_align_items_center_on_child_only", () => {
const config = Yoga.Config.create();
let root;
@@ -617,7 +617,7 @@ test("absolute_layout_align_items_center_on_child_only", function () {
config.free();
}
});
test("absolute_layout_align_items_and_justify_content_center_and_top_position", function () {
test("absolute_layout_align_items_and_justify_content_center_and_top_position", () => {
const config = Yoga.Config.create();
let root;
@@ -666,7 +666,7 @@ test("absolute_layout_align_items_and_justify_content_center_and_top_position",
config.free();
}
});
test("absolute_layout_align_items_and_justify_content_center_and_bottom_position", function () {
test("absolute_layout_align_items_and_justify_content_center_and_bottom_position", () => {
const config = Yoga.Config.create();
let root;
@@ -715,7 +715,7 @@ test("absolute_layout_align_items_and_justify_content_center_and_bottom_position
config.free();
}
});
test("absolute_layout_align_items_and_justify_content_center_and_left_position", function () {
test("absolute_layout_align_items_and_justify_content_center_and_left_position", () => {
const config = Yoga.Config.create();
let root;
@@ -764,7 +764,7 @@ test("absolute_layout_align_items_and_justify_content_center_and_left_position",
config.free();
}
});
test("absolute_layout_align_items_and_justify_content_center_and_right_position", function () {
test("absolute_layout_align_items_and_justify_content_center_and_right_position", () => {
const config = Yoga.Config.create();
let root;
@@ -813,7 +813,7 @@ test("absolute_layout_align_items_and_justify_content_center_and_right_position"
config.free();
}
});
test("position_root_with_rtl_should_position_withoutdirection", function () {
test("position_root_with_rtl_should_position_withoutdirection", () => {
const config = Yoga.Config.create();
let root;
@@ -843,7 +843,7 @@ test("position_root_with_rtl_should_position_withoutdirection", function () {
config.free();
}
});
test("absolute_layout_percentage_bottom_based_on_parent_height", function () {
test("absolute_layout_percentage_bottom_based_on_parent_height", () => {
const config = Yoga.Config.create();
let root;
@@ -923,7 +923,7 @@ test("absolute_layout_percentage_bottom_based_on_parent_height", function () {
config.free();
}
});
test("absolute_layout_in_wrap_reverse_column_container", function () {
test("absolute_layout_in_wrap_reverse_column_container", () => {
const config = Yoga.Config.create();
let root;
@@ -969,7 +969,7 @@ test("absolute_layout_in_wrap_reverse_column_container", function () {
config.free();
}
});
test("absolute_layout_in_wrap_reverse_row_container", function () {
test("absolute_layout_in_wrap_reverse_row_container", () => {
const config = Yoga.Config.create();
let root;
@@ -1016,7 +1016,7 @@ test("absolute_layout_in_wrap_reverse_row_container", function () {
config.free();
}
});
test("absolute_layout_in_wrap_reverse_column_container_flex_end", function () {
test("absolute_layout_in_wrap_reverse_column_container_flex_end", () => {
const config = Yoga.Config.create();
let root;
@@ -1063,7 +1063,7 @@ test("absolute_layout_in_wrap_reverse_column_container_flex_end", function () {
config.free();
}
});
test("absolute_layout_in_wrap_reverse_row_container_flex_end", function () {
test("absolute_layout_in_wrap_reverse_row_container_flex_end", () => {
const config = Yoga.Config.create();
let root;