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/YGAlignItemsTest.html
test("align_items_stretch", function () {
test("align_items_stretch", () => {
const config = Yoga.Config.create();
let root;
@@ -50,7 +50,7 @@ test("align_items_stretch", function () {
config.free();
}
});
test("align_items_center", function () {
test("align_items_center", () => {
const config = Yoga.Config.create();
let root;
@@ -95,7 +95,7 @@ test("align_items_center", function () {
config.free();
}
});
test("align_items_flex_start", function () {
test("align_items_flex_start", () => {
const config = Yoga.Config.create();
let root;
@@ -140,7 +140,7 @@ test("align_items_flex_start", function () {
config.free();
}
});
test("align_items_flex_end", function () {
test("align_items_flex_end", () => {
const config = Yoga.Config.create();
let root;
@@ -185,7 +185,7 @@ test("align_items_flex_end", function () {
config.free();
}
});
test("align_baseline", function () {
test("align_baseline", () => {
const config = Yoga.Config.create();
let root;
@@ -246,7 +246,7 @@ test("align_baseline", function () {
config.free();
}
});
test("align_baseline_child", function () {
test("align_baseline_child", () => {
const config = Yoga.Config.create();
let root;
@@ -322,7 +322,7 @@ test("align_baseline_child", function () {
config.free();
}
});
test("align_baseline_child_multiline", function () {
test("align_baseline_child_multiline", () => {
const config = Yoga.Config.create();
let root;
@@ -445,7 +445,7 @@ test("align_baseline_child_multiline", function () {
config.free();
}
});
test("align_baseline_child_multiline_override", function () {
test("align_baseline_child_multiline_override", () => {
const config = Yoga.Config.create();
let root;
@@ -570,7 +570,7 @@ test("align_baseline_child_multiline_override", function () {
config.free();
}
});
test("align_baseline_child_multiline_no_override_on_secondline", function () {
test("align_baseline_child_multiline_no_override_on_secondline", () => {
const config = Yoga.Config.create();
let root;
@@ -694,7 +694,7 @@ test("align_baseline_child_multiline_no_override_on_secondline", function () {
config.free();
}
});
test("align_baseline_child_top", function () {
test("align_baseline_child_top", () => {
const config = Yoga.Config.create();
let root;
@@ -771,7 +771,7 @@ test("align_baseline_child_top", function () {
config.free();
}
});
test("align_baseline_child_top2", function () {
test("align_baseline_child_top2", () => {
const config = Yoga.Config.create();
let root;
@@ -848,7 +848,7 @@ test("align_baseline_child_top2", function () {
config.free();
}
});
test("align_baseline_double_nested_child", function () {
test("align_baseline_double_nested_child", () => {
const config = Yoga.Config.create();
let root;
@@ -939,7 +939,7 @@ test("align_baseline_double_nested_child", function () {
config.free();
}
});
test("align_baseline_column", function () {
test("align_baseline_column", () => {
const config = Yoga.Config.create();
let root;
@@ -999,7 +999,7 @@ test("align_baseline_column", function () {
config.free();
}
});
test("align_baseline_child_margin", function () {
test("align_baseline_child_margin", () => {
const config = Yoga.Config.create();
let root;
@@ -1083,7 +1083,7 @@ test("align_baseline_child_margin", function () {
config.free();
}
});
test("align_baseline_child_padding", function () {
test("align_baseline_child_padding", () => {
const config = Yoga.Config.create();
let root;
@@ -1167,7 +1167,7 @@ test("align_baseline_child_padding", function () {
config.free();
}
});
test("align_baseline_multiline", function () {
test("align_baseline_multiline", () => {
const config = Yoga.Config.create();
let root;
@@ -1289,7 +1289,7 @@ test("align_baseline_multiline", function () {
config.free();
}
});
test("align_baseline_multiline_column", function () {
test("align_baseline_multiline_column", () => {
const config = Yoga.Config.create();
let root;
@@ -1378,7 +1378,7 @@ test("align_baseline_multiline_column", function () {
expect(root_child0.getComputedWidth()).toBe(50);
expect(root_child0.getComputedHeight()).toBe(50);
expect(root_child1.getComputedLeft()).toBe(50);
expect(root_child1.getComputedLeft()).toBe(70);
expect(root_child1.getComputedTop()).toBe(50);
expect(root_child1.getComputedWidth()).toBe(30);
expect(root_child1.getComputedHeight()).toBe(50);
@@ -1388,7 +1388,7 @@ test("align_baseline_multiline_column", function () {
expect(root_child1_child0.getComputedWidth()).toBe(20);
expect(root_child1_child0.getComputedHeight()).toBe(20);
expect(root_child2.getComputedLeft()).toBe(0);
expect(root_child2.getComputedLeft()).toBe(10);
expect(root_child2.getComputedTop()).toBe(0);
expect(root_child2.getComputedWidth()).toBe(40);
expect(root_child2.getComputedHeight()).toBe(70);
@@ -1410,7 +1410,7 @@ test("align_baseline_multiline_column", function () {
config.free();
}
});
test("align_baseline_multiline_column2", function () {
test("align_baseline_multiline_column2", () => {
const config = Yoga.Config.create();
let root;
@@ -1499,7 +1499,7 @@ test("align_baseline_multiline_column2", function () {
expect(root_child0.getComputedWidth()).toBe(50);
expect(root_child0.getComputedHeight()).toBe(50);
expect(root_child1.getComputedLeft()).toBe(50);
expect(root_child1.getComputedLeft()).toBe(70);
expect(root_child1.getComputedTop()).toBe(50);
expect(root_child1.getComputedWidth()).toBe(30);
expect(root_child1.getComputedHeight()).toBe(50);
@@ -1509,7 +1509,7 @@ test("align_baseline_multiline_column2", function () {
expect(root_child1_child0.getComputedWidth()).toBe(20);
expect(root_child1_child0.getComputedHeight()).toBe(20);
expect(root_child2.getComputedLeft()).toBe(0);
expect(root_child2.getComputedLeft()).toBe(10);
expect(root_child2.getComputedTop()).toBe(0);
expect(root_child2.getComputedWidth()).toBe(40);
expect(root_child2.getComputedHeight()).toBe(70);
@@ -1531,7 +1531,7 @@ test("align_baseline_multiline_column2", function () {
config.free();
}
});
test("align_baseline_multiline_row_and_column", function () {
test("align_baseline_multiline_row_and_column", () => {
const config = Yoga.Config.create();
let root;
@@ -1653,7 +1653,7 @@ test("align_baseline_multiline_row_and_column", function () {
config.free();
}
});
test("align_items_center_child_with_margin_bigger_than_parent", function () {
test("align_items_center_child_with_margin_bigger_than_parent", () => {
const config = Yoga.Config.create();
let root;
@@ -1715,7 +1715,7 @@ test("align_items_center_child_with_margin_bigger_than_parent", function () {
config.free();
}
});
test("align_items_flex_end_child_with_margin_bigger_than_parent", function () {
test("align_items_flex_end_child_with_margin_bigger_than_parent", () => {
const config = Yoga.Config.create();
let root;
@@ -1777,7 +1777,7 @@ test("align_items_flex_end_child_with_margin_bigger_than_parent", function () {
config.free();
}
});
test("align_items_center_child_without_margin_bigger_than_parent", function () {
test("align_items_center_child_without_margin_bigger_than_parent", () => {
const config = Yoga.Config.create();
let root;
@@ -1837,7 +1837,7 @@ test("align_items_center_child_without_margin_bigger_than_parent", function () {
config.free();
}
});
test("align_items_flex_end_child_without_margin_bigger_than_parent", function () {
test("align_items_flex_end_child_without_margin_bigger_than_parent", () => {
const config = Yoga.Config.create();
let root;
@@ -1897,7 +1897,7 @@ test("align_items_flex_end_child_without_margin_bigger_than_parent", function ()
config.free();
}
});
test("align_center_should_size_based_on_content", function () {
test("align_center_should_size_based_on_content", () => {
const config = Yoga.Config.create();
let root;
@@ -1973,7 +1973,7 @@ test("align_center_should_size_based_on_content", function () {
config.free();
}
});
test("align_stretch_should_size_based_on_parent", function () {
test("align_stretch_should_size_based_on_parent", () => {
const config = Yoga.Config.create();
let root;
@@ -2048,7 +2048,7 @@ test("align_stretch_should_size_based_on_parent", function () {
config.free();
}
});
test("align_flex_start_with_shrinking_children", function () {
test("align_flex_start_with_shrinking_children", () => {
const config = Yoga.Config.create();
let root;
@@ -2121,7 +2121,7 @@ test("align_flex_start_with_shrinking_children", function () {
config.free();
}
});
test("align_flex_start_with_stretching_children", function () {
test("align_flex_start_with_stretching_children", () => {
const config = Yoga.Config.create();
let root;
@@ -2193,7 +2193,7 @@ test("align_flex_start_with_stretching_children", function () {
config.free();
}
});
test("align_flex_start_with_shrinking_children_with_stretch", function () {
test("align_flex_start_with_shrinking_children_with_stretch", () => {
const config = Yoga.Config.create();
let root;