Update font constants
This commit is contained in:
@@ -2685,7 +2685,7 @@ public class LayoutEngineTest {
|
||||
node_0.layout.y = 0;
|
||||
node_0.layout.x = 0;
|
||||
node_0.layout.width = 34.671875f;
|
||||
node_0.layout.height = 18;
|
||||
node_0.layout.height = 16;
|
||||
}
|
||||
|
||||
test("should layout node with just text", root_node, root_layout);
|
||||
@@ -2708,7 +2708,7 @@ public class LayoutEngineTest {
|
||||
node_0.layout.y = 0;
|
||||
node_0.layout.x = 0;
|
||||
node_0.layout.width = 10;
|
||||
node_0.layout.height = 18;
|
||||
node_0.layout.height = 16;
|
||||
}
|
||||
|
||||
test("should layout node with text and width", root_node, root_layout);
|
||||
@@ -2730,7 +2730,7 @@ public class LayoutEngineTest {
|
||||
node_0.layout.y = 0;
|
||||
node_0.layout.x = 0;
|
||||
node_0.layout.width = 172.421875f;
|
||||
node_0.layout.height = 18;
|
||||
node_0.layout.height = 16;
|
||||
}
|
||||
|
||||
test("should layout node with text, padding and margin", root_node, root_layout);
|
||||
@@ -2816,7 +2816,7 @@ public class LayoutEngineTest {
|
||||
node_0.layout.y = 0;
|
||||
node_0.layout.x = 0;
|
||||
node_0.layout.width = 500;
|
||||
node_0.layout.height = 18;
|
||||
node_0.layout.height = 16;
|
||||
addChildren(node_0, 1);
|
||||
{
|
||||
TestCSSNode node_1;
|
||||
@@ -2824,7 +2824,7 @@ public class LayoutEngineTest {
|
||||
node_1.layout.y = 0;
|
||||
node_1.layout.x = 0;
|
||||
node_1.layout.width = 500;
|
||||
node_1.layout.height = 18;
|
||||
node_1.layout.height = 16;
|
||||
addChildren(node_1, 1);
|
||||
{
|
||||
TestCSSNode node_2;
|
||||
@@ -2832,7 +2832,7 @@ public class LayoutEngineTest {
|
||||
node_2.layout.y = 0;
|
||||
node_2.layout.x = 0;
|
||||
node_2.layout.width = 500;
|
||||
node_2.layout.height = 18;
|
||||
node_2.layout.height = 16;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2869,7 +2869,7 @@ public class LayoutEngineTest {
|
||||
node_0.layout.y = 0;
|
||||
node_0.layout.x = 0;
|
||||
node_0.layout.width = 130;
|
||||
node_0.layout.height = 36;
|
||||
node_0.layout.height = 32;
|
||||
addChildren(node_0, 1);
|
||||
{
|
||||
TestCSSNode node_1;
|
||||
@@ -2877,7 +2877,7 @@ public class LayoutEngineTest {
|
||||
node_1.layout.y = 0;
|
||||
node_1.layout.x = 0;
|
||||
node_1.layout.width = 130;
|
||||
node_1.layout.height = 36;
|
||||
node_1.layout.height = 32;
|
||||
addChildren(node_1, 1);
|
||||
{
|
||||
TestCSSNode node_2;
|
||||
@@ -2885,7 +2885,7 @@ public class LayoutEngineTest {
|
||||
node_2.layout.y = 0;
|
||||
node_2.layout.x = 0;
|
||||
node_2.layout.width = 130;
|
||||
node_2.layout.height = 36;
|
||||
node_2.layout.height = 32;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2923,7 +2923,7 @@ public class LayoutEngineTest {
|
||||
node_0.layout.y = 0;
|
||||
node_0.layout.x = 0;
|
||||
node_0.layout.width = 200;
|
||||
node_0.layout.height = 36;
|
||||
node_0.layout.height = 32;
|
||||
addChildren(node_0, 1);
|
||||
{
|
||||
TestCSSNode node_1;
|
||||
@@ -2931,7 +2931,7 @@ public class LayoutEngineTest {
|
||||
node_1.layout.y = 0;
|
||||
node_1.layout.x = 0;
|
||||
node_1.layout.width = 200;
|
||||
node_1.layout.height = 36;
|
||||
node_1.layout.height = 32;
|
||||
addChildren(node_1, 1);
|
||||
{
|
||||
TestCSSNode node_2;
|
||||
@@ -2939,7 +2939,7 @@ public class LayoutEngineTest {
|
||||
node_2.layout.y = 0;
|
||||
node_2.layout.x = 0;
|
||||
node_2.layout.width = 130;
|
||||
node_2.layout.height = 36;
|
||||
node_2.layout.height = 32;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2971,7 +2971,7 @@ public class LayoutEngineTest {
|
||||
node_0.layout.y = 0;
|
||||
node_0.layout.x = 0;
|
||||
node_0.layout.width = 100;
|
||||
node_0.layout.height = 36;
|
||||
node_0.layout.height = 32;
|
||||
addChildren(node_0, 1);
|
||||
{
|
||||
TestCSSNode node_1;
|
||||
@@ -2979,7 +2979,7 @@ public class LayoutEngineTest {
|
||||
node_1.layout.y = 0;
|
||||
node_1.layout.x = 0;
|
||||
node_1.layout.width = 100.453125f;
|
||||
node_1.layout.height = 36;
|
||||
node_1.layout.height = 32;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3023,7 +3023,7 @@ public class LayoutEngineTest {
|
||||
node_0.layout.y = 0;
|
||||
node_0.layout.x = 0;
|
||||
node_0.layout.width = 100;
|
||||
node_0.layout.height = 76;
|
||||
node_0.layout.height = 72;
|
||||
addChildren(node_0, 1);
|
||||
{
|
||||
TestCSSNode node_1;
|
||||
@@ -3031,7 +3031,7 @@ public class LayoutEngineTest {
|
||||
node_1.layout.y = 20;
|
||||
node_1.layout.x = 20;
|
||||
node_1.layout.width = 100.453125f;
|
||||
node_1.layout.height = 36;
|
||||
node_1.layout.height = 32;
|
||||
addChildren(node_1, 1);
|
||||
{
|
||||
TestCSSNode node_2;
|
||||
@@ -3039,7 +3039,7 @@ public class LayoutEngineTest {
|
||||
node_2.layout.y = 0;
|
||||
node_2.layout.x = 0;
|
||||
node_2.layout.width = 100.453125f;
|
||||
node_2.layout.height = 36;
|
||||
node_2.layout.height = 32;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3160,7 +3160,7 @@ public class LayoutEngineTest {
|
||||
node_0.layout.y = 0;
|
||||
node_0.layout.x = 0;
|
||||
node_0.layout.width = 200;
|
||||
node_0.layout.height = 58;
|
||||
node_0.layout.height = 56;
|
||||
addChildren(node_0, 1);
|
||||
{
|
||||
TestCSSNode node_1;
|
||||
@@ -3168,7 +3168,7 @@ public class LayoutEngineTest {
|
||||
node_1.layout.y = 0;
|
||||
node_1.layout.x = 0;
|
||||
node_1.layout.width = 200;
|
||||
node_1.layout.height = 58;
|
||||
node_1.layout.height = 56;
|
||||
addChildren(node_1, 1);
|
||||
{
|
||||
TestCSSNode node_2;
|
||||
@@ -3176,7 +3176,7 @@ public class LayoutEngineTest {
|
||||
node_2.layout.y = 20;
|
||||
node_2.layout.x = 20;
|
||||
node_2.layout.width = 172.421875f;
|
||||
node_2.layout.height = 18;
|
||||
node_2.layout.height = 16;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3215,7 +3215,7 @@ public class LayoutEngineTest {
|
||||
node_0.layout.y = 0;
|
||||
node_0.layout.x = 0;
|
||||
node_0.layout.width = 200;
|
||||
node_0.layout.height = 76;
|
||||
node_0.layout.height = 72;
|
||||
addChildren(node_0, 1);
|
||||
{
|
||||
TestCSSNode node_1;
|
||||
@@ -3223,7 +3223,7 @@ public class LayoutEngineTest {
|
||||
node_1.layout.y = 0;
|
||||
node_1.layout.x = 0;
|
||||
node_1.layout.width = 200;
|
||||
node_1.layout.height = 76;
|
||||
node_1.layout.height = 72;
|
||||
addChildren(node_1, 1);
|
||||
{
|
||||
TestCSSNode node_2;
|
||||
@@ -3231,7 +3231,7 @@ public class LayoutEngineTest {
|
||||
node_2.layout.y = 20;
|
||||
node_2.layout.x = 20;
|
||||
node_2.layout.width = 160;
|
||||
node_2.layout.height = 36;
|
||||
node_2.layout.height = 32;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -15,9 +15,9 @@ public class TestConstants {
|
||||
|
||||
/** START_GENERATED **/
|
||||
public static final float SMALL_WIDTH = 34.671875f;
|
||||
public static final float SMALL_HEIGHT = 18f;
|
||||
public static final float SMALL_HEIGHT = 16f;
|
||||
public static final float BIG_WIDTH = 172.421875f;
|
||||
public static final float BIG_HEIGHT = 36f;
|
||||
public static final float BIG_HEIGHT = 32f;
|
||||
public static final float BIG_MIN_WIDTH = 100.453125f;
|
||||
public static final String SMALL_TEXT = "small";
|
||||
public static final String LONG_TEXT = "loooooooooong with space";
|
||||
|
Reference in New Issue
Block a user