diff --git a/.github/actions/setup-js/action.yml b/.github/actions/setup-js/action.yml
index a248ff6629..341934861a 100644
--- a/.github/actions/setup-js/action.yml
+++ b/.github/actions/setup-js/action.yml
@@ -6,7 +6,7 @@ runs:
- name: Setup Node environment
uses: actions/setup-node@v3
with:
- node-version: 18.x
+ node-version: 20.x
cache: yarn
cache-dependency-path: yarn.lock
env:
diff --git a/.github/workflows/validate-tests.yml b/.github/workflows/validate-tests.yml
index 16b4be49a7..2ca0c39894 100644
--- a/.github/workflows/validate-tests.yml
+++ b/.github/workflows/validate-tests.yml
@@ -5,7 +5,6 @@ on:
push:
branches:
- main
- - 'release-*'
workflow_dispatch:
jobs:
diff --git a/gentest/fixtures/YGAbsolutePositionTest.html b/gentest/fixtures/YGAbsolutePositionTest.html
index fb05160794..673d257b8a 100644
--- a/gentest/fixtures/YGAbsolutePositionTest.html
+++ b/gentest/fixtures/YGAbsolutePositionTest.html
@@ -132,6 +132,22 @@
+
+
+
+
+
+
diff --git a/gentest/fixtures/YGGapTest.html b/gentest/fixtures/YGGapTest.html
index e714265953..9f18bbc1b7 100644
--- a/gentest/fixtures/YGGapTest.html
+++ b/gentest/fixtures/YGGapTest.html
@@ -171,3 +171,72 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/gentest/fixtures/YGIntrinsicSizeTest.html b/gentest/fixtures/YGIntrinsicSizeTest.html
new file mode 100644
index 0000000000..962b24173f
--- /dev/null
+++ b/gentest/fixtures/YGIntrinsicSizeTest.html
@@ -0,0 +1,221 @@
+
+
+ LoremipsumdolorsitametconsecteturadipiscingelitSedeleifasdfettortoracauctorFuscerhoncusipsumtemporerosaliquamconsequatPraesentsoda
+
+
+
+
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at
+ volutpat
+ libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus
+ fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus
+ vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor,
+ vitae
+ finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet
+ consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo
+ tincidunt
+ finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam
+ vulputate eleifasd lectus vel varius.
+ Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis
+ in
+ faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel
+ venenatis
+ turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed
+ nunc
+ malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor
+ lobortis.
+ Sed at consectetur ipsum.
+
+
+
+
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at
+ volutpat
+ libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus
+ fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus
+ vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor,
+ vitae
+ finibus
+ loremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumlorem
+ Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet
+ consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo
+ tincidunt
+ finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam
+ vulputate eleifasd lectus vel varius.
+ Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis
+ in
+ faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel
+ venenatis
+ turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed
+ nunc
+ malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor
+ lobortis.
+ Sed at consectetur ipsum.
+
+
+
+
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at
+ volutpat
+ libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus
+ fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus
+ vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor,
+ vitae
+ finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet
+ consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo
+ tincidunt
+ finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam
+ vulputate eleifasd lectus vel varius.
+ Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis
+ in
+ faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel
+ venenatis
+ turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed
+ nunc
+ malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor
+ lobortis.
+ Sed at consectetur ipsum.
+
+
+
+
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at
+ volutpat
+ libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus
+ fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus
+ vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor,
+ vitae
+ finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet
+ consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo
+ tincidunt
+ finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam
+ vulputate eleifasd lectus vel varius.
+ Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis
+ in
+ faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel
+ venenatis
+ turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed
+ nunc
+ malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor
+ lobortis.
+ Sed at consectetur ipsum.
+
+
+
+
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at
+ volutpat
+ libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus
+ fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus
+ vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor,
+ vitae
+ finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet
+ consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo
+ tincidunt
+ finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam
+ vulputate eleifasd lectus vel varius.
+ Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis
+ in
+ faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel
+ venenatis
+ turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed
+ nunc
+ malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor
+ lobortis.
+ Sed at consectetur ipsum.
+
+
+
+
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at
+ volutpat
+ libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus
+ fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus
+ vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor,
+ vitae
+ finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet
+ consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo
+ tincidunt
+ finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam
+ vulputate eleifasd lectus vel varius.
+ Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis
+ in
+ faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel
+ venenatis
+ turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed
+ nunc
+ malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor
+ lobortis.
+ Sed at consectetur ipsum.
+
+
+
+
+
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at
+ volutpat
+ libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus
+ fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus
+ vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor,
+ vitae
+ finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet
+ consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo
+ tincidunt
+ finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam
+ vulputate eleifasd lectus vel varius.
+ Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis
+ in
+ faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel
+ venenatis
+ turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed
+ nunc
+ malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor
+ lobortis.
+ Sed at consectetur ipsum.
+
+
+
+
+
+
+
+
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at
+ volutpat
+ libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus
+ fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus
+ vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor,
+ vitae
+ finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet
+ consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo
+ tincidunt
+ finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam
+ vulputate eleifasd lectus vel varius.
+ Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis
+ in
+ faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel
+ venenatis
+ turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed
+ nunc
+ malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor
+ lobortis.
+ Sed at consectetur ipsum.
+
+
diff --git a/gentest/fixtures/YGJustifyContentTest.html b/gentest/fixtures/YGJustifyContentTest.html
index 9cb9d2a4b4..13e9987cfa 100644
--- a/gentest/fixtures/YGJustifyContentTest.html
+++ b/gentest/fixtures/YGJustifyContentTest.html
@@ -120,3 +120,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/gentest/fixtures/YGMarginTest.html b/gentest/fixtures/YGMarginTest.html
index d95a058d7b..01a13afe79 100644
--- a/gentest/fixtures/YGMarginTest.html
+++ b/gentest/fixtures/YGMarginTest.html
@@ -150,3 +150,8 @@
+
+
diff --git a/gentest/fixtures/YGPaddingTest.html b/gentest/fixtures/YGPaddingTest.html
index f1616fe408..ef5b553992 100644
--- a/gentest/fixtures/YGPaddingTest.html
+++ b/gentest/fixtures/YGPaddingTest.html
@@ -13,10 +13,17 @@
-
+
-
+
+
+
diff --git a/gentest/fonts/Ahem.ttf b/gentest/fonts/Ahem.ttf
new file mode 100644
index 0000000000..ac81cb0316
Binary files /dev/null and b/gentest/fonts/Ahem.ttf differ
diff --git a/gentest/gentest-cpp.js b/gentest/gentest-cpp.js
index 02e5c07056..8feecac988 100644
--- a/gentest/gentest-cpp.js
+++ b/gentest/gentest-cpp.js
@@ -30,7 +30,12 @@ CPPEmitter.prototype = Object.create(Emitter.prototype, {
emitPrologue: {
value: function () {
- this.push(['#include
', '#include ', '']);
+ this.push([
+ '#include ',
+ '#include ',
+ '#include "../util/TestUtil.h"',
+ '',
+ ]);
},
},
@@ -44,7 +49,7 @@ CPPEmitter.prototype = Object.create(Emitter.prototype, {
this.push('');
}
- this.push('const YGConfigRef config = YGConfigNew();');
+ this.push('YGConfigRef config = YGConfigNew();');
for (const i in experiments) {
this.push(
'YGConfigSetExperimentalFeatureEnabled(config, YGExperimentalFeature' +
@@ -58,9 +63,7 @@ CPPEmitter.prototype = Object.create(Emitter.prototype, {
emitTestTreePrologue: {
value: function (nodeName) {
- this.push(
- 'const YGNodeRef ' + nodeName + ' = YGNodeNewWithConfig(config);',
- );
+ this.push('YGNodeRef ' + nodeName + ' = YGNodeNewWithConfig(config);');
},
},
@@ -503,4 +506,13 @@ CPPEmitter.prototype = Object.create(Emitter.prototype, {
);
},
},
+
+ YGNodeSetMeasureFunc: {
+ value: function (nodeName, innerText) {
+ this.push(`YGNodeSetContext(${nodeName}, (void*)"${innerText}");`);
+ this.push(
+ `YGNodeSetMeasureFunc(${nodeName}, &facebook::yoga::test::IntrinsicSizeMeasure);`,
+ );
+ },
+ },
});
diff --git a/gentest/gentest-driver.ts b/gentest/gentest-driver.ts
index 0dc5dc01ce..d31c783c7b 100644
--- a/gentest/gentest-driver.ts
+++ b/gentest/gentest-driver.ts
@@ -106,7 +106,7 @@ for (const fileName of fixtures) {
);
await fs.writeFile(
- `${yogaDir}/java/tests/com/facebook/yoga/${fileNameNoExtension}.java`,
+ `${yogaDir}/java/tests/generated/com/facebook/yoga/${fileNameNoExtension}.java`,
addSignatureToSourceCode(
JSON.parse(logs[1].message.replace(/^[^"]*/, '')).replace(
'YogaTest',
diff --git a/gentest/gentest-java.js b/gentest/gentest-java.js
index 6f131a1aed..584a22e310 100644
--- a/gentest/gentest-java.js
+++ b/gentest/gentest-java.js
@@ -55,6 +55,7 @@ JavaEmitter.prototype = Object.create(Emitter.prototype, {
'import org.junit.Test;',
'import org.junit.runner.RunWith;',
'import org.junit.runners.Parameterized;',
+ 'import com.facebook.yoga.utils.TestUtils;',
'',
'@RunWith(Parameterized.class)',
'public class YogaTest {',
@@ -465,4 +466,13 @@ JavaEmitter.prototype = Object.create(Emitter.prototype, {
);
},
},
+
+ YGNodeSetMeasureFunc: {
+ value: function (nodeName, innerText) {
+ this.push(`${nodeName}.setData("${innerText}");`);
+ this.push(
+ `${nodeName}.setMeasureFunction(new TestUtils.intrinsicMeasureFunction());`,
+ );
+ },
+ },
});
diff --git a/gentest/gentest-javascript.js b/gentest/gentest-javascript.js
index ca095268a0..418443daa9 100644
--- a/gentest/gentest-javascript.js
+++ b/gentest/gentest-javascript.js
@@ -23,6 +23,9 @@ JavascriptEmitter.prototype = Object.create(Emitter.prototype, {
emitPrologue: {
value: function () {
+ this.push(
+ "import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'",
+ );
this.push("import Yoga from 'yoga-layout';");
this.push('import {');
this.pushIndent();
@@ -398,4 +401,12 @@ JavascriptEmitter.prototype = Object.create(Emitter.prototype, {
);
},
},
+
+ YGNodeSetMeasureFunc: {
+ value: function (nodeName, innerText) {
+ this.push(
+ `${nodeName}.setMeasureFunc(instrinsicSizeMeasureFunc.bind("${innerText}"));`,
+ );
+ },
+ },
});
diff --git a/gentest/gentest-validate.ts b/gentest/gentest-validate.ts
index 9f69f1c821..406c9c4ed9 100644
--- a/gentest/gentest-validate.ts
+++ b/gentest/gentest-validate.ts
@@ -11,30 +11,33 @@ import * as fs from 'node:fs/promises';
import {dirname} from 'path';
import {fileURLToPath} from 'url';
import signedsource from 'signedsource';
+import {glob} from 'glob';
-const yogaDir = dirname(dirname(fileURLToPath(import.meta.url)));
-const cppTestDir = `${yogaDir}/tests/generated`;
-const jsTestDir = `${yogaDir}/javascript/tests/generated`;
-const javaTestDir = `${yogaDir}/java/tests/com/facebook/yoga`;
-const testDirs = [cppTestDir, jsTestDir, javaTestDir];
+const yogaRootDir = dirname(dirname(fileURLToPath(import.meta.url)));
-for (const testDir of testDirs) {
- const tests = await fs.readdir(testDir);
+const filesToValidate = await glob(
+ [
+ 'tests/generated/**/*.{h,cpp}',
+ 'javascript/tests/generated/**/*.test.ts',
+ 'java/tests/generated/com/facebook/yoga/**/*.java',
+ ],
+ {
+ cwd: yogaRootDir,
+ },
+);
- for (const test of tests) {
- const testData = await fs.readFile(`${testDir}/${test}`, 'utf8');
- try {
- const validSignature = signedsource.verifySignature(testData);
- if (!validSignature) {
- console.error(`Invalid signature for ${test}`);
- process.exitCode = 1;
- }
- } catch (e) {
- // Java test dir does not separate generated tests from non-generated ones
- if (testDir != javaTestDir) {
- console.error(`${test}: ${e}`);
- process.exitCode = 1;
- }
+console.log(`Found ${filesToValidate.length} files to validate`);
+
+for (const file of filesToValidate) {
+ const content = await fs.readFile(`${yogaRootDir}/${file}`, 'utf8');
+ if (signedsource.isSigned(content)) {
+ console.log(`Checking ${file}`);
+ const validSignature = signedsource.verifySignature(content);
+ if (!validSignature) {
+ console.error(`Invalid signature "${file}"`);
+ process.exitCode = 1;
}
+ } else {
+ console.log(`Skipped ${file}`);
}
}
diff --git a/gentest/gentest.js b/gentest/gentest.js
index 8223a0efe1..39408b6af0 100755
--- a/gentest/gentest.js
+++ b/gentest/gentest.js
@@ -528,6 +528,10 @@ function setupTestTree(
e.YGNodeInsertChild(parentName, nodeName, index);
}
+ if (node.innerText && node.children.length === 0) {
+ e.YGNodeSetMeasureFunc(nodeName, node.innerText);
+ }
+
for (let i = 0; i < node.children.length; i++) {
e.push('');
const childName = nodeName + '_child' + i;
@@ -723,6 +727,7 @@ function calculateTree(root, parentOffsetLeft, parentOffsetTop) {
? child.dataset.experiments.split(' ')
: [],
disabled: child.dataset.disabled === 'true',
+ innerText: child.innerText,
};
const size = getRoundedSize(child);
diff --git a/gentest/package.json b/gentest/package.json
index 7f6e7b05c3..4211fb0fb4 100644
--- a/gentest/package.json
+++ b/gentest/package.json
@@ -3,8 +3,8 @@
"version": "0.0.0",
"private": true,
"scripts": {
- "gentest": "node --loader=babel-register-esm ./gentest-driver.ts",
- "gentest-validate": "node --loader=babel-register-esm ./gentest-validate.ts"
+ "gentest": "node --disable-warning=ExperimentalWarning --loader=babel-register-esm ./gentest-driver.ts",
+ "gentest-validate": "node --disable-warning=ExperimentalWarning --loader=babel-register-esm ./gentest-validate.ts"
},
"type": "module",
"dependencies": {
@@ -19,6 +19,7 @@
"@types/minimist": "^1.2.5",
"@types/node": "^20.10.3",
"@types/selenium-webdriver": "^4.1.21",
- "babel-register-esm": "^1.2.5"
+ "babel-register-esm": "^1.2.5",
+ "glob": "^10.4.2"
}
}
diff --git a/gentest/test-template.html b/gentest/test-template.html
index cab620beb2..079eb4df3d 100644
--- a/gentest/test-template.html
+++ b/gentest/test-template.html
@@ -1,70 +1,78 @@
-
-
- %s
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- %s
-
-
-
+
+
+
+ %s
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ %s
+
+
+
+
diff --git a/java/com/facebook/yoga/YogaNative.java b/java/com/facebook/yoga/YogaNative.java
index 9be9edcf87..363e85f584 100644
--- a/java/com/facebook/yoga/YogaNative.java
+++ b/java/com/facebook/yoga/YogaNative.java
@@ -108,6 +108,7 @@ public class YogaNative {
static native void jni_YGNodeStyleSetAspectRatioJNI(long nativePointer, float aspectRatio);
static native float jni_YGNodeStyleGetGapJNI(long nativePointer, int gutter);
static native void jni_YGNodeStyleSetGapJNI(long nativePointer, int gutter, float gapLength);
+ static native void jni_YGNodeStyleSetGapPercentJNI(long nativePointer, int gutter, float gapLength);
static native void jni_YGNodeSetHasMeasureFuncJNI(long nativePointer, boolean hasMeasureFunc);
static native void jni_YGNodeSetHasBaselineFuncJNI(long nativePointer, boolean hasMeasureFunc);
static native void jni_YGNodeSetStyleInputsJNI(long nativePointer, float[] styleInputsArray, int size);
diff --git a/java/com/facebook/yoga/YogaNode.java b/java/com/facebook/yoga/YogaNode.java
index 4875ac3e8c..97ad8ac2c2 100644
--- a/java/com/facebook/yoga/YogaNode.java
+++ b/java/com/facebook/yoga/YogaNode.java
@@ -192,6 +192,8 @@ public interface Inputs {
public abstract void setGap(YogaGutter gutter, float gapLength);
+ public abstract void setGapPercent(YogaGutter gutter, float gapLength);
+
public abstract float getLayoutX();
public abstract float getLayoutY();
diff --git a/java/com/facebook/yoga/YogaNodeJNIBase.java b/java/com/facebook/yoga/YogaNodeJNIBase.java
index df958df166..2f3c446c34 100644
--- a/java/com/facebook/yoga/YogaNodeJNIBase.java
+++ b/java/com/facebook/yoga/YogaNodeJNIBase.java
@@ -721,4 +721,9 @@ public float getGap(YogaGutter gutter) {
public void setGap(YogaGutter gutter, float gapLength) {
YogaNative.jni_YGNodeStyleSetGapJNI(mNativePointer, gutter.intValue(), gapLength);
}
+
+ @Override
+ public void setGapPercent(YogaGutter gutter, float gapLength) {
+ YogaNative.jni_YGNodeStyleSetGapPercentJNI(mNativePointer, gutter.intValue(), gapLength);
+ }
}
diff --git a/java/jni/YGJNIVanilla.cpp b/java/jni/YGJNIVanilla.cpp
index 82e0dc17b1..4d017037b4 100644
--- a/java/jni/YGJNIVanilla.cpp
+++ b/java/jni/YGJNIVanilla.cpp
@@ -715,6 +715,18 @@ static void jni_YGNodeStyleSetGapJNI(
static_cast(gapLength));
}
+static void jni_YGNodeStyleSetGapPercentJNI(
+ JNIEnv* /*env*/,
+ jobject /*obj*/,
+ jlong nativePointer,
+ jint gutter,
+ jfloat gapLength) {
+ YGNodeStyleSetGapPercent(
+ _jlong2YGNodeRef(nativePointer),
+ static_cast(gutter),
+ static_cast(gapLength));
+}
+
// Yoga specific properties, not compatible with flexbox specification
YG_NODE_JNI_STYLE_PROP(jfloat, float, AspectRatio);
@@ -944,6 +956,9 @@ static JNINativeMethod methods[] = {
(void*)jni_YGNodeSetHasMeasureFuncJNI},
{"jni_YGNodeStyleGetGapJNI", "(JI)F", (void*)jni_YGNodeStyleGetGapJNI},
{"jni_YGNodeStyleSetGapJNI", "(JIF)V", (void*)jni_YGNodeStyleSetGapJNI},
+ {"jni_YGNodeStyleSetGapPercentJNI",
+ "(JIF)V",
+ (void*)jni_YGNodeStyleSetGapPercentJNI},
{"jni_YGNodeSetHasBaselineFuncJNI",
"(JZ)V",
(void*)jni_YGNodeSetHasBaselineFuncJNI},
diff --git a/java/tests/com/facebook/yoga/utils/TestUtils.java b/java/tests/com/facebook/yoga/utils/TestUtils.java
new file mode 100644
index 0000000000..d51f9f0298
--- /dev/null
+++ b/java/tests/com/facebook/yoga/utils/TestUtils.java
@@ -0,0 +1,92 @@
+/*
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+package com.facebook.yoga.utils;
+
+import com.facebook.yoga.YogaMeasureMode;
+import com.facebook.yoga.YogaMeasureOutput;
+import com.facebook.yoga.YogaMeasureFunction;
+import com.facebook.yoga.YogaNode;
+
+public class TestUtils {
+
+ public static class intrinsicMeasureFunction implements YogaMeasureFunction {
+
+ private static float widthPerChar = 10;
+ private static float heightPerChar = 10;
+
+ @Override
+ public long measure(
+ YogaNode node,
+ float width,
+ YogaMeasureMode widthMode,
+ float height,
+ YogaMeasureMode heightMode) {
+ String text = (String) node.getData();
+ float measuredWidth;
+ float measuredHeight;
+
+ if (widthMode == YogaMeasureMode.EXACTLY) {
+ measuredWidth = width;
+ } else if (widthMode == YogaMeasureMode.AT_MOST) {
+ measuredWidth = Math.min(text.length() * widthPerChar, width);
+ } else {
+ measuredWidth = text.length() * widthPerChar;
+ }
+
+ if (heightMode == YogaMeasureMode.EXACTLY) {
+ measuredHeight = height;
+ } else if (heightMode == YogaMeasureMode.AT_MOST) {
+ measuredHeight =
+ Math.min(
+ caclulateHeight(text, Math.max(measuredWidth, getWidestWordWidth(text))), height);
+ } else {
+ measuredHeight = caclulateHeight(text, Math.max(measuredWidth, getWidestWordWidth(text)));
+ }
+
+ return YogaMeasureOutput.make(measuredWidth, measuredHeight);
+ }
+
+ static float getWidestWordWidth(String text) {
+ int widestWordLength = 0;
+ String[] words = text.split(" ");
+ for (String word : words) {
+ int wordLength = word.length();
+ if (widestWordLength < wordLength) {
+ widestWordLength = wordLength;
+ }
+ }
+ return (float) widestWordLength * widthPerChar;
+ }
+
+ static float caclulateHeight(String text, float measuredWidth) {
+ if (text.length() * widthPerChar <= measuredWidth) {
+ return heightPerChar;
+ }
+
+ String[] words = text.split(" ");
+ float lines = 1;
+ float currentLineLength = 0;
+ for (String word : words) {
+ float wordWidth = word.length() * widthPerChar;
+ if (wordWidth > measuredWidth) {
+ if (currentLineLength > 0) {
+ lines++;
+ }
+ lines++;
+ currentLineLength = 0;
+ } else if (currentLineLength + wordWidth <= measuredWidth) {
+ currentLineLength += wordWidth + widthPerChar;
+ } else {
+ lines++;
+ currentLineLength = wordWidth + widthPerChar;
+ }
+ }
+ return (currentLineLength == 0 ? lines - 1 : lines) * heightPerChar;
+ }
+ }
+}
diff --git a/java/tests/com/facebook/yoga/YGAbsolutePositionTest.java b/java/tests/generated/com/facebook/yoga/YGAbsolutePositionTest.java
similarity index 88%
rename from java/tests/com/facebook/yoga/YGAbsolutePositionTest.java
rename to java/tests/generated/com/facebook/yoga/YGAbsolutePositionTest.java
index b432b7f57b..38a269e8a7 100644
--- a/java/tests/com/facebook/yoga/YGAbsolutePositionTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGAbsolutePositionTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<<30a9046ab7f9c7bda2d4f3b2ae12afcd>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAbsolutePositionTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGAbsolutePositionTest {
@@ -1357,6 +1358,162 @@ public void test_absolute_layout_padding_bottom() {
assertEquals(50f, root_child0.getLayoutHeight(), 0.0f);
}
+ @Test
+ public void test_absolute_layout_padding() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setMargin(YogaEdge.LEFT, 10f);
+ root_child0.setMargin(YogaEdge.TOP, 10f);
+ root_child0.setMargin(YogaEdge.RIGHT, 10f);
+ root_child0.setMargin(YogaEdge.BOTTOM, 10f);
+ root_child0.setWidth(200f);
+ root_child0.setHeight(200f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child0_child0 = createNode(config);
+ root_child0_child0.setPositionType(YogaPositionType.STATIC);
+ root_child0_child0.setPadding(YogaEdge.LEFT, 50);
+ root_child0_child0.setPadding(YogaEdge.TOP, 50);
+ root_child0_child0.setPadding(YogaEdge.RIGHT, 50);
+ root_child0_child0.setPadding(YogaEdge.BOTTOM, 50);
+ root_child0_child0.setWidth(200f);
+ root_child0_child0.setHeight(200f);
+ root_child0.addChildAt(root_child0_child0, 0);
+
+ final YogaNode root_child0_child0_child0 = createNode(config);
+ root_child0_child0_child0.setPositionType(YogaPositionType.ABSOLUTE);
+ root_child0_child0_child0.setWidth(50f);
+ root_child0_child0_child0.setHeight(50f);
+ root_child0_child0.addChildAt(root_child0_child0_child0, 0);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(220f, root.getLayoutWidth(), 0.0f);
+ assertEquals(220f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(10f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(200f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(200f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0_child0.getLayoutY(), 0.0f);
+ assertEquals(200f, root_child0_child0.getLayoutWidth(), 0.0f);
+ assertEquals(200f, root_child0_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(50f, root_child0_child0_child0.getLayoutX(), 0.0f);
+ assertEquals(50f, root_child0_child0_child0.getLayoutY(), 0.0f);
+ assertEquals(50f, root_child0_child0_child0.getLayoutWidth(), 0.0f);
+ assertEquals(50f, root_child0_child0_child0.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(220f, root.getLayoutWidth(), 0.0f);
+ assertEquals(220f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(10f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(200f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(200f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0_child0.getLayoutY(), 0.0f);
+ assertEquals(200f, root_child0_child0.getLayoutWidth(), 0.0f);
+ assertEquals(200f, root_child0_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(100f, root_child0_child0_child0.getLayoutX(), 0.0f);
+ assertEquals(50f, root_child0_child0_child0.getLayoutY(), 0.0f);
+ assertEquals(50f, root_child0_child0_child0.getLayoutWidth(), 0.0f);
+ assertEquals(50f, root_child0_child0_child0.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_absolute_layout_border() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setMargin(YogaEdge.LEFT, 10f);
+ root_child0.setMargin(YogaEdge.TOP, 10f);
+ root_child0.setMargin(YogaEdge.RIGHT, 10f);
+ root_child0.setMargin(YogaEdge.BOTTOM, 10f);
+ root_child0.setWidth(200f);
+ root_child0.setHeight(200f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child0_child0 = createNode(config);
+ root_child0_child0.setPositionType(YogaPositionType.STATIC);
+ root_child0_child0.setBorder(YogaEdge.LEFT, 10f);
+ root_child0_child0.setBorder(YogaEdge.TOP, 10f);
+ root_child0_child0.setBorder(YogaEdge.RIGHT, 10f);
+ root_child0_child0.setBorder(YogaEdge.BOTTOM, 10f);
+ root_child0_child0.setWidth(200f);
+ root_child0_child0.setHeight(200f);
+ root_child0.addChildAt(root_child0_child0, 0);
+
+ final YogaNode root_child0_child0_child0 = createNode(config);
+ root_child0_child0_child0.setPositionType(YogaPositionType.ABSOLUTE);
+ root_child0_child0_child0.setWidth(50f);
+ root_child0_child0_child0.setHeight(50f);
+ root_child0_child0.addChildAt(root_child0_child0_child0, 0);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(220f, root.getLayoutWidth(), 0.0f);
+ assertEquals(220f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(10f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(200f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(200f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0_child0.getLayoutY(), 0.0f);
+ assertEquals(200f, root_child0_child0.getLayoutWidth(), 0.0f);
+ assertEquals(200f, root_child0_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(10f, root_child0_child0_child0.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child0_child0_child0.getLayoutY(), 0.0f);
+ assertEquals(50f, root_child0_child0_child0.getLayoutWidth(), 0.0f);
+ assertEquals(50f, root_child0_child0_child0.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(220f, root.getLayoutWidth(), 0.0f);
+ assertEquals(220f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(10f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(200f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(200f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0_child0.getLayoutY(), 0.0f);
+ assertEquals(200f, root_child0_child0.getLayoutWidth(), 0.0f);
+ assertEquals(200f, root_child0_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(140f, root_child0_child0_child0.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child0_child0_child0.getLayoutY(), 0.0f);
+ assertEquals(50f, root_child0_child0_child0.getLayoutWidth(), 0.0f);
+ assertEquals(50f, root_child0_child0_child0.getLayoutHeight(), 0.0f);
+ }
+
@Test
public void test_absolute_layout_column_reverse_margin_border() {
YogaConfig config = YogaConfigFactory.create();
diff --git a/java/tests/com/facebook/yoga/YGAlignContentTest.java b/java/tests/generated/com/facebook/yoga/YGAlignContentTest.java
similarity index 99%
rename from java/tests/com/facebook/yoga/YGAlignContentTest.java
rename to java/tests/generated/com/facebook/yoga/YGAlignContentTest.java
index 256d685a6c..ae761092fe 100644
--- a/java/tests/com/facebook/yoga/YGAlignContentTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGAlignContentTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAlignContentTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGAlignContentTest {
diff --git a/java/tests/com/facebook/yoga/YGAlignItemsTest.java b/java/tests/generated/com/facebook/yoga/YGAlignItemsTest.java
similarity index 99%
rename from java/tests/com/facebook/yoga/YGAlignItemsTest.java
rename to java/tests/generated/com/facebook/yoga/YGAlignItemsTest.java
index e8dd351701..a5be942b69 100644
--- a/java/tests/com/facebook/yoga/YGAlignItemsTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGAlignItemsTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<17eb6adbebe0409ff047a82dc3257d91>>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAlignItemsTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGAlignItemsTest {
diff --git a/java/tests/com/facebook/yoga/YGAlignSelfTest.java b/java/tests/generated/com/facebook/yoga/YGAlignSelfTest.java
similarity index 98%
rename from java/tests/com/facebook/yoga/YGAlignSelfTest.java
rename to java/tests/generated/com/facebook/yoga/YGAlignSelfTest.java
index 0750ec045b..923d7f36f2 100644
--- a/java/tests/com/facebook/yoga/YGAlignSelfTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGAlignSelfTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<473604215dcf5ee686799fe2c2dc2004>>
+ * @generated SignedSource<<90c29809153285d8773124e93961ba55>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAlignSelfTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGAlignSelfTest {
diff --git a/java/tests/com/facebook/yoga/YGAndroidNewsFeed.java b/java/tests/generated/com/facebook/yoga/YGAndroidNewsFeed.java
similarity index 99%
rename from java/tests/com/facebook/yoga/YGAndroidNewsFeed.java
rename to java/tests/generated/com/facebook/yoga/YGAndroidNewsFeed.java
index a779f2ddc6..5ce2cd3614 100644
--- a/java/tests/com/facebook/yoga/YGAndroidNewsFeed.java
+++ b/java/tests/generated/com/facebook/yoga/YGAndroidNewsFeed.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<<245b1ad71f126cebcb48b66239bbc759>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAndroidNewsFeed.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGAndroidNewsFeed {
diff --git a/java/tests/com/facebook/yoga/YGAspectRatioTest.java b/java/tests/generated/com/facebook/yoga/YGAspectRatioTest.java
similarity index 98%
rename from java/tests/com/facebook/yoga/YGAspectRatioTest.java
rename to java/tests/generated/com/facebook/yoga/YGAspectRatioTest.java
index 0582ceb1a0..d2b0e4faf2 100644
--- a/java/tests/com/facebook/yoga/YGAspectRatioTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGAspectRatioTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<474f52d92a8fc32c66d5b5c1cc446124>>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAspectRatioTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGAspectRatioTest {
diff --git a/java/tests/com/facebook/yoga/YGBorderTest.java b/java/tests/generated/com/facebook/yoga/YGBorderTest.java
similarity index 98%
rename from java/tests/com/facebook/yoga/YGBorderTest.java
rename to java/tests/generated/com/facebook/yoga/YGBorderTest.java
index 90703746b6..dc8ba2c274 100644
--- a/java/tests/com/facebook/yoga/YGBorderTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGBorderTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGBorderTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGBorderTest {
diff --git a/java/tests/com/facebook/yoga/YGDimensionTest.java b/java/tests/generated/com/facebook/yoga/YGDimensionTest.java
similarity index 97%
rename from java/tests/com/facebook/yoga/YGDimensionTest.java
rename to java/tests/generated/com/facebook/yoga/YGDimensionTest.java
index 2d71ff7cc6..407096b4cb 100644
--- a/java/tests/com/facebook/yoga/YGDimensionTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGDimensionTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<0f79d7debf11777b10de09656cb38147>>
+ * @generated SignedSource<<6a430747c0b764e9fb683f023b45391a>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGDimensionTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGDimensionTest {
diff --git a/java/tests/com/facebook/yoga/YGDisplayTest.java b/java/tests/generated/com/facebook/yoga/YGDisplayTest.java
similarity index 99%
rename from java/tests/com/facebook/yoga/YGDisplayTest.java
rename to java/tests/generated/com/facebook/yoga/YGDisplayTest.java
index 8492950cbb..4f1dbfc5c0 100644
--- a/java/tests/com/facebook/yoga/YGDisplayTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGDisplayTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<<8db61c1e5703262c1afcf489be4d6abf>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGDisplayTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGDisplayTest {
diff --git a/java/tests/com/facebook/yoga/YGFlexDirectionTest.java b/java/tests/generated/com/facebook/yoga/YGFlexDirectionTest.java
similarity index 98%
rename from java/tests/com/facebook/yoga/YGFlexDirectionTest.java
rename to java/tests/generated/com/facebook/yoga/YGFlexDirectionTest.java
index 2e8561ee25..aeabc4ee72 100644
--- a/java/tests/com/facebook/yoga/YGFlexDirectionTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGFlexDirectionTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<4007f83eb3e84f3ee3fcf46d6d7be3bc>>
+ * @generated SignedSource<<5e698842feb033db77ff508df3f33b4a>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGFlexDirectionTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGFlexDirectionTest {
@@ -4242,6 +4243,49 @@ public void test_flex_direction_row_reverse_inner_padding_end() {
assertEquals(100f, root_child0_child2.getLayoutHeight(), 0.0f);
}
+ @Test
+ public void test_flex_direction_alternating_with_percent() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(200f);
+ root.setHeight(300f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setFlexDirection(YogaFlexDirection.ROW);
+ root_child0.setPositionPercent(YogaEdge.LEFT, 10f);
+ root_child0.setPositionPercent(YogaEdge.TOP, 10f);
+ root_child0.setWidthPercent(50f);
+ root_child0.setHeightPercent(50f);
+ root.addChildAt(root_child0, 0);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(200f, root.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(20f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(30f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(150f, root_child0.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(200f, root.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(120f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(30f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(150f, root_child0.getLayoutHeight(), 0.0f);
+ }
+
private YogaNode createNode(YogaConfig config) {
return mNodeFactory.create(config);
}
diff --git a/java/tests/com/facebook/yoga/YGFlexTest.java b/java/tests/generated/com/facebook/yoga/YGFlexTest.java
similarity index 99%
rename from java/tests/com/facebook/yoga/YGFlexTest.java
rename to java/tests/generated/com/facebook/yoga/YGFlexTest.java
index 45d518bef3..8865140cfe 100644
--- a/java/tests/com/facebook/yoga/YGFlexTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGFlexTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<744d504e2ab572337ace7a2589bc3570>>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGFlexTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGFlexTest {
diff --git a/java/tests/com/facebook/yoga/YGFlexWrapTest.java b/java/tests/generated/com/facebook/yoga/YGFlexWrapTest.java
similarity index 99%
rename from java/tests/com/facebook/yoga/YGFlexWrapTest.java
rename to java/tests/generated/com/facebook/yoga/YGFlexWrapTest.java
index 6b7866503c..31f73fc176 100644
--- a/java/tests/com/facebook/yoga/YGFlexWrapTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGFlexWrapTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGFlexWrapTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGFlexWrapTest {
diff --git a/java/tests/com/facebook/yoga/YGGapTest.java b/java/tests/generated/com/facebook/yoga/YGGapTest.java
similarity index 70%
rename from java/tests/com/facebook/yoga/YGGapTest.java
rename to java/tests/generated/com/facebook/yoga/YGGapTest.java
index 17e7ae079f..2a899b6450 100644
--- a/java/tests/com/facebook/yoga/YGGapTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGGapTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGGapTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGGapTest {
@@ -2216,6 +2217,925 @@ public void test_row_gap_determines_parent_height() {
assertEquals(30f, root_child2.getLayoutHeight(), 0.0f);
}
+ @Test
+ public void test_row_gap_percent_wrapping() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWrap(YogaWrap.WRAP);
+ root.setPadding(YogaEdge.LEFT, 10);
+ root.setPadding(YogaEdge.TOP, 10);
+ root.setPadding(YogaEdge.RIGHT, 10);
+ root.setPadding(YogaEdge.BOTTOM, 10);
+ root.setWidth(300f);
+ root.setHeight(700f);
+ root.setGapPercent(YogaGutter.COLUMN, 10f);
+ root.setGapPercent(YogaGutter.ROW, 10f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setWidth(100f);
+ root_child0.setHeight(100f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setWidth(100f);
+ root_child1.setHeight(100f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setWidth(100f);
+ root_child2.setHeight(100f);
+ root.addChildAt(root_child2, 2);
+
+ final YogaNode root_child3 = createNode(config);
+ root_child3.setWidth(100f);
+ root_child3.setHeight(100f);
+ root.addChildAt(root_child3, 3);
+
+ final YogaNode root_child4 = createNode(config);
+ root_child4.setWidth(100f);
+ root_child4.setHeight(100f);
+ root.addChildAt(root_child4, 4);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(700f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(10f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(138f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(10f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(178f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutHeight(), 0.0f);
+
+ assertEquals(138f, root_child3.getLayoutX(), 0.0f);
+ assertEquals(178f, root_child3.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutHeight(), 0.0f);
+
+ assertEquals(10f, root_child4.getLayoutX(), 0.0f);
+ assertEquals(346f, root_child4.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(700f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(190f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(62f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(190f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(178f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutHeight(), 0.0f);
+
+ assertEquals(62f, root_child3.getLayoutX(), 0.0f);
+ assertEquals(178f, root_child3.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutHeight(), 0.0f);
+
+ assertEquals(190f, root_child4.getLayoutX(), 0.0f);
+ assertEquals(346f, root_child4.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_row_gap_percent_determines_parent_height() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWrap(YogaWrap.WRAP);
+ root.setWidth(300f);
+ root.setGapPercent(YogaGutter.COLUMN, 10f);
+ root.setGapPercent(YogaGutter.ROW, 10f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setWidth(100f);
+ root_child0.setHeight(100f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setWidth(100f);
+ root_child1.setHeight(100f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setWidth(100f);
+ root_child2.setHeight(100f);
+ root.addChildAt(root_child2, 2);
+
+ final YogaNode root_child3 = createNode(config);
+ root_child3.setWidth(100f);
+ root_child3.setHeight(100f);
+ root.addChildAt(root_child3, 3);
+
+ final YogaNode root_child4 = createNode(config);
+ root_child4.setWidth(100f);
+ root_child4.setHeight(100f);
+ root.addChildAt(root_child4, 4);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(130f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutHeight(), 0.0f);
+
+ assertEquals(130f, root_child3.getLayoutX(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child4.getLayoutX(), 0.0f);
+ assertEquals(200f, root_child4.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(200f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(70f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(200f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutHeight(), 0.0f);
+
+ assertEquals(70f, root_child3.getLayoutX(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutHeight(), 0.0f);
+
+ assertEquals(200f, root_child4.getLayoutX(), 0.0f);
+ assertEquals(200f, root_child4.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_row_gap_percent_wrapping_with_both_content_padding_and_item_padding() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWrap(YogaWrap.WRAP);
+ root.setPadding(YogaEdge.LEFT, 10);
+ root.setPadding(YogaEdge.TOP, 10);
+ root.setPadding(YogaEdge.RIGHT, 10);
+ root.setPadding(YogaEdge.BOTTOM, 10);
+ root.setWidth(300f);
+ root.setHeight(700f);
+ root.setGapPercent(YogaGutter.COLUMN, 10f);
+ root.setGapPercent(YogaGutter.ROW, 10f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setPadding(YogaEdge.LEFT, 10);
+ root_child0.setPadding(YogaEdge.TOP, 10);
+ root_child0.setPadding(YogaEdge.RIGHT, 10);
+ root_child0.setPadding(YogaEdge.BOTTOM, 10);
+ root_child0.setWidth(100f);
+ root_child0.setHeight(100f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setPadding(YogaEdge.LEFT, 10);
+ root_child1.setPadding(YogaEdge.TOP, 10);
+ root_child1.setPadding(YogaEdge.RIGHT, 10);
+ root_child1.setPadding(YogaEdge.BOTTOM, 10);
+ root_child1.setWidth(100f);
+ root_child1.setHeight(100f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setPadding(YogaEdge.LEFT, 10);
+ root_child2.setPadding(YogaEdge.TOP, 10);
+ root_child2.setPadding(YogaEdge.RIGHT, 10);
+ root_child2.setPadding(YogaEdge.BOTTOM, 10);
+ root_child2.setWidth(100f);
+ root_child2.setHeight(100f);
+ root.addChildAt(root_child2, 2);
+
+ final YogaNode root_child3 = createNode(config);
+ root_child3.setPadding(YogaEdge.LEFT, 10);
+ root_child3.setPadding(YogaEdge.TOP, 10);
+ root_child3.setPadding(YogaEdge.RIGHT, 10);
+ root_child3.setPadding(YogaEdge.BOTTOM, 10);
+ root_child3.setWidth(100f);
+ root_child3.setHeight(100f);
+ root.addChildAt(root_child3, 3);
+
+ final YogaNode root_child4 = createNode(config);
+ root_child4.setPadding(YogaEdge.LEFT, 10);
+ root_child4.setPadding(YogaEdge.TOP, 10);
+ root_child4.setPadding(YogaEdge.RIGHT, 10);
+ root_child4.setPadding(YogaEdge.BOTTOM, 10);
+ root_child4.setWidth(100f);
+ root_child4.setHeight(100f);
+ root.addChildAt(root_child4, 4);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(700f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(10f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(138f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(10f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(178f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutHeight(), 0.0f);
+
+ assertEquals(138f, root_child3.getLayoutX(), 0.0f);
+ assertEquals(178f, root_child3.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutHeight(), 0.0f);
+
+ assertEquals(10f, root_child4.getLayoutX(), 0.0f);
+ assertEquals(346f, root_child4.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(700f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(190f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(62f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(190f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(178f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutHeight(), 0.0f);
+
+ assertEquals(62f, root_child3.getLayoutX(), 0.0f);
+ assertEquals(178f, root_child3.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutHeight(), 0.0f);
+
+ assertEquals(190f, root_child4.getLayoutX(), 0.0f);
+ assertEquals(346f, root_child4.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_row_gap_percent_wrapping_with_both_content_padding() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWrap(YogaWrap.WRAP);
+ root.setPadding(YogaEdge.LEFT, 10);
+ root.setPadding(YogaEdge.TOP, 10);
+ root.setPadding(YogaEdge.RIGHT, 10);
+ root.setPadding(YogaEdge.BOTTOM, 10);
+ root.setWidth(300f);
+ root.setHeight(700f);
+ root.setGapPercent(YogaGutter.COLUMN, 10f);
+ root.setGapPercent(YogaGutter.ROW, 10f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setWidth(100f);
+ root_child0.setHeight(100f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setWidth(100f);
+ root_child1.setHeight(100f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setWidth(100f);
+ root_child2.setHeight(100f);
+ root.addChildAt(root_child2, 2);
+
+ final YogaNode root_child3 = createNode(config);
+ root_child3.setWidth(100f);
+ root_child3.setHeight(100f);
+ root.addChildAt(root_child3, 3);
+
+ final YogaNode root_child4 = createNode(config);
+ root_child4.setWidth(100f);
+ root_child4.setHeight(100f);
+ root.addChildAt(root_child4, 4);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(700f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(10f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(138f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(10f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(178f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutHeight(), 0.0f);
+
+ assertEquals(138f, root_child3.getLayoutX(), 0.0f);
+ assertEquals(178f, root_child3.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutHeight(), 0.0f);
+
+ assertEquals(10f, root_child4.getLayoutX(), 0.0f);
+ assertEquals(346f, root_child4.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(700f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(190f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(62f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(190f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(178f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutHeight(), 0.0f);
+
+ assertEquals(62f, root_child3.getLayoutX(), 0.0f);
+ assertEquals(178f, root_child3.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutHeight(), 0.0f);
+
+ assertEquals(190f, root_child4.getLayoutX(), 0.0f);
+ assertEquals(346f, root_child4.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_row_gap_percent_wrapping_with_content_margin() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWrap(YogaWrap.WRAP);
+ root.setMargin(YogaEdge.LEFT, 10f);
+ root.setMargin(YogaEdge.TOP, 10f);
+ root.setMargin(YogaEdge.RIGHT, 10f);
+ root.setMargin(YogaEdge.BOTTOM, 10f);
+ root.setWidth(300f);
+ root.setHeight(700f);
+ root.setGapPercent(YogaGutter.COLUMN, 10f);
+ root.setGapPercent(YogaGutter.ROW, 10f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setWidth(100f);
+ root_child0.setHeight(100f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setWidth(100f);
+ root_child1.setHeight(100f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setWidth(100f);
+ root_child2.setHeight(100f);
+ root.addChildAt(root_child2, 2);
+
+ final YogaNode root_child3 = createNode(config);
+ root_child3.setWidth(100f);
+ root_child3.setHeight(100f);
+ root.addChildAt(root_child3, 3);
+
+ final YogaNode root_child4 = createNode(config);
+ root_child4.setWidth(100f);
+ root_child4.setHeight(100f);
+ root.addChildAt(root_child4, 4);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(10f, root.getLayoutX(), 0.0f);
+ assertEquals(10f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(700f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(130f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(170f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutHeight(), 0.0f);
+
+ assertEquals(130f, root_child3.getLayoutX(), 0.0f);
+ assertEquals(170f, root_child3.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child4.getLayoutX(), 0.0f);
+ assertEquals(340f, root_child4.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(10f, root.getLayoutX(), 0.0f);
+ assertEquals(10f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(700f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(200f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(70f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(200f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(170f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutHeight(), 0.0f);
+
+ assertEquals(70f, root_child3.getLayoutX(), 0.0f);
+ assertEquals(170f, root_child3.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutHeight(), 0.0f);
+
+ assertEquals(200f, root_child4.getLayoutX(), 0.0f);
+ assertEquals(340f, root_child4.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_row_gap_percent_wrapping_with_content_margin_and_padding() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWrap(YogaWrap.WRAP);
+ root.setMargin(YogaEdge.LEFT, 10f);
+ root.setMargin(YogaEdge.TOP, 10f);
+ root.setMargin(YogaEdge.RIGHT, 10f);
+ root.setMargin(YogaEdge.BOTTOM, 10f);
+ root.setPadding(YogaEdge.LEFT, 10);
+ root.setPadding(YogaEdge.TOP, 10);
+ root.setPadding(YogaEdge.RIGHT, 10);
+ root.setPadding(YogaEdge.BOTTOM, 10);
+ root.setWidth(300f);
+ root.setHeight(700f);
+ root.setGapPercent(YogaGutter.COLUMN, 10f);
+ root.setGapPercent(YogaGutter.ROW, 10f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setWidth(100f);
+ root_child0.setHeight(100f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setWidth(100f);
+ root_child1.setHeight(100f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setWidth(100f);
+ root_child2.setHeight(100f);
+ root.addChildAt(root_child2, 2);
+
+ final YogaNode root_child3 = createNode(config);
+ root_child3.setWidth(100f);
+ root_child3.setHeight(100f);
+ root.addChildAt(root_child3, 3);
+
+ final YogaNode root_child4 = createNode(config);
+ root_child4.setWidth(100f);
+ root_child4.setHeight(100f);
+ root.addChildAt(root_child4, 4);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(10f, root.getLayoutX(), 0.0f);
+ assertEquals(10f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(700f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(10f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(138f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(10f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(178f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutHeight(), 0.0f);
+
+ assertEquals(138f, root_child3.getLayoutX(), 0.0f);
+ assertEquals(178f, root_child3.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutHeight(), 0.0f);
+
+ assertEquals(10f, root_child4.getLayoutX(), 0.0f);
+ assertEquals(346f, root_child4.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(10f, root.getLayoutX(), 0.0f);
+ assertEquals(10f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(700f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(190f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(62f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(10f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(190f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(178f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutHeight(), 0.0f);
+
+ assertEquals(62f, root_child3.getLayoutX(), 0.0f);
+ assertEquals(178f, root_child3.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutHeight(), 0.0f);
+
+ assertEquals(190f, root_child4.getLayoutX(), 0.0f);
+ assertEquals(346f, root_child4.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_row_gap_percent_wrapping_with_flexible_content() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(300f);
+ root.setHeight(300f);
+ root.setGapPercent(YogaGutter.COLUMN, 10f);
+ root.setGapPercent(YogaGutter.ROW, 10f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setFlexGrow(1f);
+ root_child0.setFlexShrink(1f);
+ root_child0.setFlexBasisPercent(0f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setFlexGrow(1f);
+ root_child1.setFlexShrink(1f);
+ root_child1.setFlexBasisPercent(0f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setFlexGrow(1f);
+ root_child2.setFlexShrink(1f);
+ root_child2.setFlexBasisPercent(0f);
+ root.addChildAt(root_child2, 2);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(80f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(110f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(80f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(220f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(80f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root_child2.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(220f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(80f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(110f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(80f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(80f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root_child2.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_row_gap_percent_wrapping_with_mixed_flexible_content() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(300f);
+ root.setHeight(300f);
+ root.setGapPercent(YogaGutter.COLUMN, 10f);
+ root.setGapPercent(YogaGutter.ROW, 10f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setWidth(10f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setFlexGrow(1f);
+ root_child1.setFlexShrink(1f);
+ root_child1.setFlexBasisPercent(0f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setWidthPercent(10f);
+ root.addChildAt(root_child2, 2);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(10f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(40f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(200f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(270f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(30f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root_child2.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(290f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(10f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(60f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(200f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(30f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root_child2.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ @Ignore
+ public void test_row_gap_percent_wrapping_with_min_width() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWrap(YogaWrap.WRAP);
+ root.setMinWidth(300f);
+ root.setGapPercent(YogaGutter.COLUMN, 10f);
+ root.setGapPercent(YogaGutter.ROW, 10f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setWidth(100f);
+ root_child0.setHeight(100f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setWidth(100f);
+ root_child1.setHeight(100f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setWidth(100f);
+ root_child2.setHeight(100f);
+ root.addChildAt(root_child2, 2);
+
+ final YogaNode root_child3 = createNode(config);
+ root_child3.setWidth(100f);
+ root_child3.setHeight(100f);
+ root.addChildAt(root_child3, 3);
+
+ final YogaNode root_child4 = createNode(config);
+ root_child4.setWidth(100f);
+ root_child4.setHeight(100f);
+ root.addChildAt(root_child4, 4);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(130f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutHeight(), 0.0f);
+
+ assertEquals(130f, root_child3.getLayoutX(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child4.getLayoutX(), 0.0f);
+ assertEquals(200f, root_child4.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(300f, root.getLayoutWidth(), 0.0f);
+ assertEquals(300f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(200f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(70f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(200f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child2.getLayoutHeight(), 0.0f);
+
+ assertEquals(70f, root_child3.getLayoutX(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child3.getLayoutHeight(), 0.0f);
+
+ assertEquals(200f, root_child4.getLayoutX(), 0.0f);
+ assertEquals(200f, root_child4.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child4.getLayoutHeight(), 0.0f);
+ }
+
private YogaNode createNode(YogaConfig config) {
return mNodeFactory.create(config);
}
diff --git a/java/tests/generated/com/facebook/yoga/YGIntrinsicSizeTest.java b/java/tests/generated/com/facebook/yoga/YGIntrinsicSizeTest.java
new file mode 100644
index 0000000000..26b511329a
--- /dev/null
+++ b/java/tests/generated/com/facebook/yoga/YGIntrinsicSizeTest.java
@@ -0,0 +1,505 @@
+/*
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ * @generated SignedSource<>
+ * generated by gentest/gentest-driver.ts from gentest/fixtures/YGIntrinsicSizeTest.html
+ */
+
+package com.facebook.yoga;
+
+import static org.junit.Assert.assertEquals;
+
+import org.junit.Ignore;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
+
+@RunWith(Parameterized.class)
+public class YGIntrinsicSizeTest {
+ @Parameterized.Parameters(name = "{0}")
+ public static Iterable nodeFactories() {
+ return TestParametrization.nodeFactories();
+ }
+
+ @Parameterized.Parameter public TestParametrization.NodeFactory mNodeFactory;
+
+ @Test
+ public void test_contains_inner_text_long_word() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setAlignItems(YogaAlign.FLEX_START);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(2000f);
+ root.setHeight(2000f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setFlexDirection(YogaFlexDirection.ROW);
+ root.addChildAt(root_child0, 0);
+ root_child0.setData("LoremipsumdolorsitametconsecteturadipiscingelitSedeleifasdfettortoracauctorFuscerhoncusipsumtemporerosaliquamconsequatPraesentsoda");
+ root_child0.setMeasureFunction(new TestUtils.intrinsicMeasureFunction());
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(1300f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(10f, root_child0.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(700f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(1300f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(10f, root_child0.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_contains_inner_text_no_width_no_height() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setAlignItems(YogaAlign.FLEX_START);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(2000f);
+ root.setHeight(2000f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setFlexDirection(YogaFlexDirection.ROW);
+ root.addChildAt(root_child0, 0);
+ root_child0.setData("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum.");
+ root_child0.setMeasureFunction(new TestUtils.intrinsicMeasureFunction());
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(2000f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(70f, root_child0.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(2000f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(70f, root_child0.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_contains_inner_text_no_width_no_height_long_word_in_paragraph() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setAlignItems(YogaAlign.FLEX_START);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(2000f);
+ root.setHeight(2000f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setFlexDirection(YogaFlexDirection.ROW);
+ root.addChildAt(root_child0, 0);
+ root_child0.setData("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus loremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumlorem Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum.");
+ root_child0.setMeasureFunction(new TestUtils.intrinsicMeasureFunction());
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(2000f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(70f, root_child0.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(2000f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(70f, root_child0.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_contains_inner_text_fixed_width() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setAlignItems(YogaAlign.FLEX_START);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(2000f);
+ root.setHeight(2000f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setFlexDirection(YogaFlexDirection.ROW);
+ root_child0.setWidth(100f);
+ root.addChildAt(root_child0, 0);
+ root_child0.setData("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum.");
+ root_child0.setMeasureFunction(new TestUtils.intrinsicMeasureFunction());
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(1290f, root_child0.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(1900f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(1290f, root_child0.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_contains_inner_text_no_width_fixed_height() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setAlignItems(YogaAlign.FLEX_START);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(2000f);
+ root.setHeight(2000f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setFlexDirection(YogaFlexDirection.ROW);
+ root_child0.setHeight(20f);
+ root.addChildAt(root_child0, 0);
+ root_child0.setData("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum.");
+ root_child0.setMeasureFunction(new TestUtils.intrinsicMeasureFunction());
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(2000f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(20f, root_child0.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(2000f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(20f, root_child0.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_contains_inner_text_fixed_width_fixed_height() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setAlignItems(YogaAlign.FLEX_START);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(2000f);
+ root.setHeight(2000f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setFlexDirection(YogaFlexDirection.ROW);
+ root_child0.setWidth(50f);
+ root_child0.setHeight(20f);
+ root.addChildAt(root_child0, 0);
+ root_child0.setData("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum.");
+ root_child0.setMeasureFunction(new TestUtils.intrinsicMeasureFunction());
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(50f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(20f, root_child0.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(1950f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(50f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(20f, root_child0.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_contains_inner_text_max_width_max_height() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setAlignItems(YogaAlign.FLEX_START);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(2000f);
+ root.setHeight(2000f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setFlexDirection(YogaFlexDirection.ROW);
+ root_child0.setMaxWidth(50f);
+ root_child0.setMaxHeight(20f);
+ root.addChildAt(root_child0, 0);
+ root_child0.setData("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum.");
+ root_child0.setMeasureFunction(new TestUtils.intrinsicMeasureFunction());
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(50f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(20f, root_child0.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(1950f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(50f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(20f, root_child0.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_contains_inner_text_max_width() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setAlignItems(YogaAlign.FLEX_START);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(2000f);
+ root.setHeight(2000f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setFlexDirection(YogaFlexDirection.ROW);
+ root_child0.setMaxWidth(100f);
+ root.addChildAt(root_child0, 0);
+ root_child0.setData("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum.");
+ root_child0.setMeasureFunction(new TestUtils.intrinsicMeasureFunction());
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(1290f, root_child0.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(1900f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(1290f, root_child0.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_contains_inner_text_fixed_width_shorter_text() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setAlignItems(YogaAlign.FLEX_START);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(2000f);
+ root.setHeight(2000f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setFlexDirection(YogaFlexDirection.ROW);
+ root_child0.setWidth(100f);
+ root.addChildAt(root_child0, 0);
+ root_child0.setData("Lorem ipsum");
+ root_child0.setMeasureFunction(new TestUtils.intrinsicMeasureFunction());
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(20f, root_child0.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(1900f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(20f, root_child0.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_contains_inner_text_fixed_height_shorter_text() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setAlignItems(YogaAlign.FLEX_START);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(2000f);
+ root.setHeight(2000f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setFlexDirection(YogaFlexDirection.ROW);
+ root_child0.setHeight(100f);
+ root.addChildAt(root_child0, 0);
+ root_child0.setData("Lorem ipsum");
+ root_child0.setMeasureFunction(new TestUtils.intrinsicMeasureFunction());
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(110f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(1890f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(110f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(100f, root_child0.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_contains_inner_text_max_height() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setAlignItems(YogaAlign.FLEX_START);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(2000f);
+ root.setHeight(2000f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setFlexDirection(YogaFlexDirection.ROW);
+ root_child0.setMaxHeight(20f);
+ root.addChildAt(root_child0, 0);
+ root_child0.setData("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum.");
+ root_child0.setMeasureFunction(new TestUtils.intrinsicMeasureFunction());
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(2000f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(20f, root_child0.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(2000f, root.getLayoutWidth(), 0.0f);
+ assertEquals(2000f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(2000f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(20f, root_child0.getLayoutHeight(), 0.0f);
+ }
+
+ private YogaNode createNode(YogaConfig config) {
+ return mNodeFactory.create(config);
+ }
+}
diff --git a/java/tests/com/facebook/yoga/YGJustifyContentTest.java b/java/tests/generated/com/facebook/yoga/YGJustifyContentTest.java
similarity index 69%
rename from java/tests/com/facebook/yoga/YGJustifyContentTest.java
rename to java/tests/generated/com/facebook/yoga/YGJustifyContentTest.java
index 638433d9f0..431f51c198 100644
--- a/java/tests/com/facebook/yoga/YGJustifyContentTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGJustifyContentTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<<6aaf6f020cdc74d09e440206957507aa>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGJustifyContentTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGJustifyContentTest {
@@ -1375,6 +1376,627 @@ public void test_justify_content_flex_end_row_reverse() {
assertEquals(100f, root_child2.getLayoutHeight(), 0.0f);
}
+ @Test
+ public void test_justify_content_overflow_row_flex_start() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(102f);
+ root.setHeight(102f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setWidth(40f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setWidth(40f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setWidth(40f);
+ root.addChildAt(root_child2, 2);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(40f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(80f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(62f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(22f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(-18f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_justify_content_overflow_row_flex_end() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW);
+ root.setJustifyContent(YogaJustify.FLEX_END);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(102f);
+ root.setHeight(102f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setWidth(40f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setWidth(40f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setWidth(40f);
+ root.addChildAt(root_child2, 2);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(-18f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(22f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(62f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(80f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(40f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_justify_content_overflow_row_center() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW);
+ root.setJustifyContent(YogaJustify.CENTER);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(102f);
+ root.setHeight(102f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setWidth(40f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setWidth(40f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setWidth(40f);
+ root.addChildAt(root_child2, 2);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(-9f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(31f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(71f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(71f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(31f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(-9f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_justify_content_overflow_row_space_between() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW);
+ root.setJustifyContent(YogaJustify.SPACE_BETWEEN);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(102f);
+ root.setHeight(102f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setWidth(40f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setWidth(40f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setWidth(40f);
+ root.addChildAt(root_child2, 2);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(40f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(80f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(62f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(22f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(-18f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_justify_content_overflow_row_space_around() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW);
+ root.setJustifyContent(YogaJustify.SPACE_AROUND);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(102f);
+ root.setHeight(102f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setWidth(40f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setWidth(40f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setWidth(40f);
+ root.addChildAt(root_child2, 2);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(40f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(80f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(62f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(22f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(-18f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_justify_content_overflow_row_space_evenly() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW);
+ root.setJustifyContent(YogaJustify.SPACE_EVENLY);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(102f);
+ root.setHeight(102f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setWidth(40f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setWidth(40f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setWidth(40f);
+ root.addChildAt(root_child2, 2);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(40f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(80f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(62f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(22f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(-18f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_justify_content_overflow_row_reverse_space_around() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW_REVERSE);
+ root.setJustifyContent(YogaJustify.SPACE_AROUND);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(102f);
+ root.setHeight(102f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setWidth(40f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setWidth(40f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setWidth(40f);
+ root.addChildAt(root_child2, 2);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(62f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(22f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(-18f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(40f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(80f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_justify_content_overflow_row_reverse_space_evenly() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW_REVERSE);
+ root.setJustifyContent(YogaJustify.SPACE_EVENLY);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(102f);
+ root.setHeight(102f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setWidth(40f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setWidth(40f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setWidth(40f);
+ root.addChildAt(root_child2, 2);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(62f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(22f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(-18f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(40f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(80f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+ }
+
+ @Test
+ public void test_justify_content_overflow_row_space_evenly_auto_margin() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setFlexDirection(YogaFlexDirection.ROW);
+ root.setJustifyContent(YogaJustify.SPACE_EVENLY);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(102f);
+ root.setHeight(102f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setMarginAuto(YogaEdge.RIGHT);
+ root_child0.setWidth(40f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setWidth(40f);
+ root.addChildAt(root_child1, 1);
+
+ final YogaNode root_child2 = createNode(config);
+ root_child2.setWidth(40f);
+ root.addChildAt(root_child2, 2);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(0f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(40f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(80f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(102f, root.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(62f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(22f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child1.getLayoutHeight(), 0.0f);
+
+ assertEquals(-18f, root_child2.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child2.getLayoutY(), 0.0f);
+ assertEquals(40f, root_child2.getLayoutWidth(), 0.0f);
+ assertEquals(102f, root_child2.getLayoutHeight(), 0.0f);
+ }
+
private YogaNode createNode(YogaConfig config) {
return mNodeFactory.create(config);
}
diff --git a/java/tests/com/facebook/yoga/YGMarginTest.java b/java/tests/generated/com/facebook/yoga/YGMarginTest.java
similarity index 96%
rename from java/tests/com/facebook/yoga/YGMarginTest.java
rename to java/tests/generated/com/facebook/yoga/YGMarginTest.java
index 20b0cb71c1..97816cae95 100644
--- a/java/tests/com/facebook/yoga/YGMarginTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGMarginTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGMarginTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGMarginTest {
@@ -1732,6 +1733,63 @@ public void test_margin_auto_left_stretching_child() {
assertEquals(50f, root_child1.getLayoutHeight(), 0.0f);
}
+ @Test
+ public void test_margin_auto_overflowing_container() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setAlignItems(YogaAlign.CENTER);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setWidth(200f);
+ root.setHeight(200f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setMarginAuto(YogaEdge.BOTTOM);
+ root_child0.setWidth(50f);
+ root_child0.setHeight(150f);
+ root.addChildAt(root_child0, 0);
+
+ final YogaNode root_child1 = createNode(config);
+ root_child1.setWidth(50f);
+ root_child1.setHeight(150f);
+ root.addChildAt(root_child1, 1);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(200f, root.getLayoutWidth(), 0.0f);
+ assertEquals(200f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(75f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(50f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(150f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(75f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(150f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(50f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(150f, root_child1.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(200f, root.getLayoutWidth(), 0.0f);
+ assertEquals(200f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(75f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(50f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(150f, root_child0.getLayoutHeight(), 0.0f);
+
+ assertEquals(75f, root_child1.getLayoutX(), 0.0f);
+ assertEquals(150f, root_child1.getLayoutY(), 0.0f);
+ assertEquals(50f, root_child1.getLayoutWidth(), 0.0f);
+ assertEquals(150f, root_child1.getLayoutHeight(), 0.0f);
+ }
+
private YogaNode createNode(YogaConfig config) {
return mNodeFactory.create(config);
}
diff --git a/java/tests/com/facebook/yoga/YGMinMaxDimensionTest.java b/java/tests/generated/com/facebook/yoga/YGMinMaxDimensionTest.java
similarity index 99%
rename from java/tests/com/facebook/yoga/YGMinMaxDimensionTest.java
rename to java/tests/generated/com/facebook/yoga/YGMinMaxDimensionTest.java
index 7bf9a6c8da..0f86664b37 100644
--- a/java/tests/com/facebook/yoga/YGMinMaxDimensionTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGMinMaxDimensionTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<857e5626695bb6b524eb6b609a6c7b55>>
+ * @generated SignedSource<<19cdc4fc9425af726b656ef628bab8af>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGMinMaxDimensionTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGMinMaxDimensionTest {
diff --git a/java/tests/com/facebook/yoga/YGPaddingTest.java b/java/tests/generated/com/facebook/yoga/YGPaddingTest.java
similarity index 85%
rename from java/tests/com/facebook/yoga/YGPaddingTest.java
rename to java/tests/generated/com/facebook/yoga/YGPaddingTest.java
index 4b989989c8..eece9efd00 100644
--- a/java/tests/com/facebook/yoga/YGPaddingTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGPaddingTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<176b6a98b0b08ef3f3fd20289e8fd089>>
+ * @generated SignedSource<<6116c0f130b77b635a6551b3204c3cf8>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGPaddingTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGPaddingTest {
@@ -273,6 +274,48 @@ public void test_child_with_padding_align_end() {
assertEquals(100f, root_child0.getLayoutHeight(), 0.0f);
}
+ @Test
+ public void test_physical_and_relative_edge_defined() {
+ YogaConfig config = YogaConfigFactory.create();
+
+ final YogaNode root = createNode(config);
+ root.setPositionType(YogaPositionType.ABSOLUTE);
+ root.setPadding(YogaEdge.LEFT, 20);
+ root.setPadding(YogaEdge.END, 50);
+ root.setWidth(200f);
+ root.setHeight(200f);
+
+ final YogaNode root_child0 = createNode(config);
+ root_child0.setWidthPercent(100f);
+ root_child0.setHeight(50f);
+ root.addChildAt(root_child0, 0);
+ root.setDirection(YogaDirection.LTR);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(200f, root.getLayoutWidth(), 0.0f);
+ assertEquals(200f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(20f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(130f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(50f, root_child0.getLayoutHeight(), 0.0f);
+
+ root.setDirection(YogaDirection.RTL);
+ root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
+
+ assertEquals(0f, root.getLayoutX(), 0.0f);
+ assertEquals(0f, root.getLayoutY(), 0.0f);
+ assertEquals(200f, root.getLayoutWidth(), 0.0f);
+ assertEquals(200f, root.getLayoutHeight(), 0.0f);
+
+ assertEquals(50f, root_child0.getLayoutX(), 0.0f);
+ assertEquals(0f, root_child0.getLayoutY(), 0.0f);
+ assertEquals(150f, root_child0.getLayoutWidth(), 0.0f);
+ assertEquals(50f, root_child0.getLayoutHeight(), 0.0f);
+ }
+
private YogaNode createNode(YogaConfig config) {
return mNodeFactory.create(config);
}
diff --git a/java/tests/com/facebook/yoga/YGPercentageTest.java b/java/tests/generated/com/facebook/yoga/YGPercentageTest.java
similarity index 99%
rename from java/tests/com/facebook/yoga/YGPercentageTest.java
rename to java/tests/generated/com/facebook/yoga/YGPercentageTest.java
index ddcd5c8056..e4e92c715e 100644
--- a/java/tests/com/facebook/yoga/YGPercentageTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGPercentageTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<<27e18496d4ee880d9ba95ad0b2648071>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGPercentageTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGPercentageTest {
diff --git a/java/tests/com/facebook/yoga/YGRoundingTest.java b/java/tests/generated/com/facebook/yoga/YGRoundingTest.java
similarity index 99%
rename from java/tests/com/facebook/yoga/YGRoundingTest.java
rename to java/tests/generated/com/facebook/yoga/YGRoundingTest.java
index 0f329eda98..f2cd12c115 100644
--- a/java/tests/com/facebook/yoga/YGRoundingTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGRoundingTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<40959004b04825e4f8f58e8a6d796047>>
+ * @generated SignedSource<<06c18c6b3b9735644daf5b5bd0777eb8>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGRoundingTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGRoundingTest {
diff --git a/java/tests/com/facebook/yoga/YGSizeOverflowTest.java b/java/tests/generated/com/facebook/yoga/YGSizeOverflowTest.java
similarity index 98%
rename from java/tests/com/facebook/yoga/YGSizeOverflowTest.java
rename to java/tests/generated/com/facebook/yoga/YGSizeOverflowTest.java
index 81e0d7118d..f7188177af 100644
--- a/java/tests/com/facebook/yoga/YGSizeOverflowTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGSizeOverflowTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<<26e773ec772f84370bc0f3f53d8221ed>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGSizeOverflowTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGSizeOverflowTest {
diff --git a/java/tests/com/facebook/yoga/YGStaticPositionTest.java b/java/tests/generated/com/facebook/yoga/YGStaticPositionTest.java
similarity index 99%
rename from java/tests/com/facebook/yoga/YGStaticPositionTest.java
rename to java/tests/generated/com/facebook/yoga/YGStaticPositionTest.java
index 15c9ab551c..32befb3702 100644
--- a/java/tests/com/facebook/yoga/YGStaticPositionTest.java
+++ b/java/tests/generated/com/facebook/yoga/YGStaticPositionTest.java
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<3bbbf27ae54f7b245d6adad352761339>>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGStaticPositionTest.html
*/
@@ -16,6 +16,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import com.facebook.yoga.utils.TestUtils;
@RunWith(Parameterized.class)
public class YGStaticPositionTest {
diff --git a/javascript/README.md b/javascript/README.md
index 73a95462b1..da4fe27f58 100644
--- a/javascript/README.md
+++ b/javascript/README.md
@@ -29,3 +29,12 @@ node.free();
## Requirements
`yoga-layout` requires a toolchain that supports ES Modules and top-level await.
+
+If top-level-await is not supported, use the `yoga-layout/load` entry point instead. This requires to load yoga manually:
+
+```ts
+import {loadYoga, Align} from 'yoga-layout/load';
+
+const node = (await loadYoga).Node.create();
+node.setAlignContent(Align.Center);
+```
diff --git a/javascript/just.config.cjs b/javascript/just.config.cjs
index a4f7ddabe7..21d2e61b56 100644
--- a/javascript/just.config.cjs
+++ b/javascript/just.config.cjs
@@ -13,17 +13,17 @@ const {
logger,
jestTask,
option,
- parallel,
series,
spawn,
task,
tscTask,
+ copyTask,
} = require('just-scripts');
const {existsSync} = require('fs');
const {readFile, writeFile, rm} = require('fs/promises');
-const glob = require('glob');
+const {glob} = require('glob');
const path = require('path');
const which = require('which');
@@ -58,16 +58,32 @@ task('prepack-package-json', async () => {
const packageJsonContents = await readFile(packageJsonPath);
const packageJson = JSON.parse(packageJsonContents.toString('utf-8'));
- recursiveReplace(packageJson, /(.\/src\/.*)\.ts/, '$1.js');
- packageJson.typings = packageJson.main.replace(/(.\/src\/.*)\.js/, '$1.d.ts');
+ packageJson.main = packageJson.main.replace(
+ /^.\/src\/(.*)\.ts/,
+ './dist/src/$1.js',
+ );
+ packageJson.types = packageJson.main.replace(/(.*)\.js/, '$1.d.ts');
+
+ recursiveReplace(
+ packageJson.exports,
+ /^.\/src\/(.*)\.ts/,
+ './dist/src/$1.js',
+ );
+
await writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2));
});
task(
'prepack',
series(
- parallel('build', tscTask({emitDeclarationOnly: true})),
- babelTransformTask({dir: 'src'}),
+ 'build',
+ copyTask({paths: ['binaries'], dest: 'dist/binaries'}),
+ tscTask({
+ emitDeclarationOnly: true,
+ rootDir: '.',
+ declarationDir: 'dist',
+ }),
+ babelTransformTask({src: 'src', dst: 'dist/src'}),
'prepack-package-json',
),
);
@@ -85,14 +101,14 @@ function recursiveReplace(obj, pattern, replacement) {
function babelTransformTask(opts) {
return () => {
const args = [
- opts.dir,
+ opts.src,
'--source-maps',
'--out-dir',
- opts.dir,
+ opts.dst,
'--extensions',
'.js,.cjs,.mjs,.ts,.cts,.mts',
];
- logger.info(`Transforming "${path.resolve(opts.dir)}"`);
+ logger.info(`Transforming "${path.resolve(opts.src)}"`);
return spawn(node, [require.resolve('@babel/cli/bin/babel'), ...args], {
cwd: __dirname,
@@ -152,9 +168,9 @@ function installEmsdkTask() {
{stdio: 'inherit'},
);
- await spawn(emsdkBin, ['install', emsdkVersion], {stdio: 'inherit'});
+ await spawnShell(emsdkBin, ['install', emsdkVersion], {stdio: 'inherit'});
- await spawn(emsdkBin, ['activate', emsdkVersion], {
+ await spawnShell(emsdkBin, ['activate', emsdkVersion], {
stdio: logger.enableVerbose ? 'inherit' : 'ignore',
});
};
@@ -201,7 +217,7 @@ function emcmakeGenerateTask() {
];
logger.info(['emcmake', ...args].join(' '));
- return spawn(emcmakeBin, args, {
+ return spawnShell(emcmakeBin, args, {
stdio: logger.enableVerbose ? 'inherit' : 'ignore',
});
};
@@ -219,7 +235,7 @@ function cmakeBuildTask(opts) {
];
logger.info(['cmake', ...args].join(' '));
- return spawn(cmake, args, {stdio: 'inherit'});
+ return spawnShell(cmake, args, {stdio: 'inherit'});
};
}
@@ -231,8 +247,13 @@ function clangFormatTask(opts) {
];
logger.info(['clang-format', ...args].join(' '));
- return spawn(node, [require.resolve('clang-format'), ...args], {
+ return spawnShell(node, [require.resolve('clang-format'), ...args], {
stdio: 'inherit',
});
};
}
+
+function spawnShell(cmd, args, opts) {
+ // https://github.com/nodejs/node/issues/52554
+ return spawn(cmd, args, {...opts, shell: true});
+}
diff --git a/javascript/package.json b/javascript/package.json
index c06b6a2036..32e77d586b 100644
--- a/javascript/package.json
+++ b/javascript/package.json
@@ -11,8 +11,14 @@
},
"type": "module",
"main": "./src/index.ts",
+ "types": "./src/index.ts",
+ "exports": {
+ ".": "./src/index.ts",
+ "./load": "./src/load.ts"
+ },
"files": [
- "binaries/**",
+ "dist/binaries/**",
+ "dist/src/**",
"src/**"
],
"scripts": {
@@ -32,14 +38,13 @@
"@babel/core": "^7.23.0",
"@babel/preset-env": "^7.23.0",
"@babel/preset-typescript": "^7.23.0",
- "@types/glob": "^8.1.0",
"@types/jest": "^29.5.1",
"@types/node": "^16.18.25",
"@types/which": "^3.0.0",
"@yogalayout/cmake-bin": "3.28.0-1",
"babel-register-esm": "^1.2.5",
"clang-format": "^1.8.0",
- "glob": "^8.0.3",
+ "glob": "^10.4.2",
"jest": "^29.3.1",
"just-scripts": "^2.1.0",
"ninja-binaries": "^1.11.1",
diff --git a/javascript/src/Node.cpp b/javascript/src/Node.cpp
index 06ca672cdc..e8bcaf6e53 100644
--- a/javascript/src/Node.cpp
+++ b/javascript/src/Node.cpp
@@ -240,6 +240,10 @@ void Node::setGap(int gutter, double gapLength) {
YGNodeStyleSetGap(m_node, static_cast(gutter), gapLength);
}
+void Node::setGapPercent(int gutter, double gapLength) {
+ YGNodeStyleSetGapPercent(m_node, static_cast(gutter), gapLength);
+}
+
int Node::getPositionType(void) const {
return YGNodeStyleGetPositionType(m_node);
}
diff --git a/javascript/src/Node.h b/javascript/src/Node.h
index 57494db275..f5cb7a34e6 100644
--- a/javascript/src/Node.h
+++ b/javascript/src/Node.h
@@ -124,6 +124,7 @@ class Node {
void setPaddingPercent(int edge, double padding);
void setGap(int gutter, double gapLength);
+ void setGapPercent(int gutter, double gapLength);
public: // Style getters
int getPositionType(void) const;
diff --git a/javascript/src/embind.cpp b/javascript/src/embind.cpp
index 5ed4807ba4..b8e1bbcb9b 100644
--- a/javascript/src/embind.cpp
+++ b/javascript/src/embind.cpp
@@ -116,6 +116,7 @@ EMSCRIPTEN_BINDINGS(YOGA_LAYOUT) {
.function("setPadding", &Node::setPadding)
.function("setPaddingPercent", &Node::setPaddingPercent)
.function("setGap", &Node::setGap)
+ .function("setGapPercent", &Node::setGapPercent)
.function("setDirection", &Node::setDirection)
diff --git a/javascript/src/load.ts b/javascript/src/load.ts
new file mode 100644
index 0000000000..a415a0dd71
--- /dev/null
+++ b/javascript/src/load.ts
@@ -0,0 +1,25 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ * @format
+ */
+
+// @ts-ignore untyped from Emscripten
+import loadYogaImpl from '../binaries/yoga-wasm-base64-esm.js';
+import wrapAssembly from './wrapAssembly.ts';
+
+export type {
+ Config,
+ DirtiedFunction,
+ MeasureFunction,
+ Node,
+ Yoga,
+} from './wrapAssembly.ts';
+
+export async function loadYoga() {
+ return wrapAssembly(await loadYogaImpl());
+}
+export * from './generated/YGEnums.ts';
diff --git a/javascript/src/wrapAssembly.ts b/javascript/src/wrapAssembly.ts
index 797a42c7d7..bc6c7c546b 100644
--- a/javascript/src/wrapAssembly.ts
+++ b/javascript/src/wrapAssembly.ts
@@ -144,7 +144,8 @@ export type Node = {
setHeightAuto(): void;
setHeightPercent(height: number | undefined): void;
setJustifyContent(justifyContent: Justify): void;
- setGap(gutter: Gutter, gapLength: number | undefined): Value;
+ setGap(gutter: Gutter, gapLength: number | `${number}%` | undefined): Value;
+ setGapPercent(gutter: Gutter, gapLength: number | undefined): Value;
setMargin(
edge: Edge,
margin: number | 'auto' | `${number}%` | undefined,
@@ -209,6 +210,7 @@ export default function wrapAssembly(lib: any): Yoga {
'setMaxWidth',
'setMaxHeight',
'setPadding',
+ 'setGap',
]) {
const methods = {
[Unit.Point]: lib.Node.prototype[fnName],
diff --git a/javascript/tests/generated/YGAbsolutePositionTest.test.ts b/javascript/tests/generated/YGAbsolutePositionTest.test.ts
index 5b686632ac..99dc9f8c21 100644
--- a/javascript/tests/generated/YGAbsolutePositionTest.test.ts
+++ b/javascript/tests/generated/YGAbsolutePositionTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<777a238fc942436d2c803822110bcd07>>
+ * @generated SignedSource<<133e2d77cd6267d4bfb0fe992d437fd1>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAbsolutePositionTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
@@ -1497,6 +1498,172 @@ test('absolute_layout_padding_bottom', () => {
config.free();
}
});
+test('absolute_layout_padding', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setPositionType(PositionType.Absolute);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setMargin(Edge.Left, 10);
+ root_child0.setMargin(Edge.Top, 10);
+ root_child0.setMargin(Edge.Right, 10);
+ root_child0.setMargin(Edge.Bottom, 10);
+ root_child0.setWidth(200);
+ root_child0.setHeight(200);
+ root.insertChild(root_child0, 0);
+
+ const root_child0_child0 = Yoga.Node.create(config);
+ root_child0_child0.setPositionType(PositionType.Static);
+ root_child0_child0.setPadding(Edge.Left, 50);
+ root_child0_child0.setPadding(Edge.Top, 50);
+ root_child0_child0.setPadding(Edge.Right, 50);
+ root_child0_child0.setPadding(Edge.Bottom, 50);
+ root_child0_child0.setWidth(200);
+ root_child0_child0.setHeight(200);
+ root_child0.insertChild(root_child0_child0, 0);
+
+ const root_child0_child0_child0 = Yoga.Node.create(config);
+ root_child0_child0_child0.setPositionType(PositionType.Absolute);
+ root_child0_child0_child0.setWidth(50);
+ root_child0_child0_child0.setHeight(50);
+ root_child0_child0.insertChild(root_child0_child0_child0, 0);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(220);
+ expect(root.getComputedHeight()).toBe(220);
+
+ expect(root_child0.getComputedLeft()).toBe(10);
+ expect(root_child0.getComputedTop()).toBe(10);
+ expect(root_child0.getComputedWidth()).toBe(200);
+ expect(root_child0.getComputedHeight()).toBe(200);
+
+ expect(root_child0_child0.getComputedLeft()).toBe(0);
+ expect(root_child0_child0.getComputedTop()).toBe(0);
+ expect(root_child0_child0.getComputedWidth()).toBe(200);
+ expect(root_child0_child0.getComputedHeight()).toBe(200);
+
+ expect(root_child0_child0_child0.getComputedLeft()).toBe(50);
+ expect(root_child0_child0_child0.getComputedTop()).toBe(50);
+ expect(root_child0_child0_child0.getComputedWidth()).toBe(50);
+ expect(root_child0_child0_child0.getComputedHeight()).toBe(50);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(220);
+ expect(root.getComputedHeight()).toBe(220);
+
+ expect(root_child0.getComputedLeft()).toBe(10);
+ expect(root_child0.getComputedTop()).toBe(10);
+ expect(root_child0.getComputedWidth()).toBe(200);
+ expect(root_child0.getComputedHeight()).toBe(200);
+
+ expect(root_child0_child0.getComputedLeft()).toBe(0);
+ expect(root_child0_child0.getComputedTop()).toBe(0);
+ expect(root_child0_child0.getComputedWidth()).toBe(200);
+ expect(root_child0_child0.getComputedHeight()).toBe(200);
+
+ expect(root_child0_child0_child0.getComputedLeft()).toBe(100);
+ expect(root_child0_child0_child0.getComputedTop()).toBe(50);
+ expect(root_child0_child0_child0.getComputedWidth()).toBe(50);
+ expect(root_child0_child0_child0.getComputedHeight()).toBe(50);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('absolute_layout_border', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setPositionType(PositionType.Absolute);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setMargin(Edge.Left, 10);
+ root_child0.setMargin(Edge.Top, 10);
+ root_child0.setMargin(Edge.Right, 10);
+ root_child0.setMargin(Edge.Bottom, 10);
+ root_child0.setWidth(200);
+ root_child0.setHeight(200);
+ root.insertChild(root_child0, 0);
+
+ const root_child0_child0 = Yoga.Node.create(config);
+ root_child0_child0.setPositionType(PositionType.Static);
+ root_child0_child0.setBorder(Edge.Left, 10);
+ root_child0_child0.setBorder(Edge.Top, 10);
+ root_child0_child0.setBorder(Edge.Right, 10);
+ root_child0_child0.setBorder(Edge.Bottom, 10);
+ root_child0_child0.setWidth(200);
+ root_child0_child0.setHeight(200);
+ root_child0.insertChild(root_child0_child0, 0);
+
+ const root_child0_child0_child0 = Yoga.Node.create(config);
+ root_child0_child0_child0.setPositionType(PositionType.Absolute);
+ root_child0_child0_child0.setWidth(50);
+ root_child0_child0_child0.setHeight(50);
+ root_child0_child0.insertChild(root_child0_child0_child0, 0);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(220);
+ expect(root.getComputedHeight()).toBe(220);
+
+ expect(root_child0.getComputedLeft()).toBe(10);
+ expect(root_child0.getComputedTop()).toBe(10);
+ expect(root_child0.getComputedWidth()).toBe(200);
+ expect(root_child0.getComputedHeight()).toBe(200);
+
+ expect(root_child0_child0.getComputedLeft()).toBe(0);
+ expect(root_child0_child0.getComputedTop()).toBe(0);
+ expect(root_child0_child0.getComputedWidth()).toBe(200);
+ expect(root_child0_child0.getComputedHeight()).toBe(200);
+
+ expect(root_child0_child0_child0.getComputedLeft()).toBe(10);
+ expect(root_child0_child0_child0.getComputedTop()).toBe(10);
+ expect(root_child0_child0_child0.getComputedWidth()).toBe(50);
+ expect(root_child0_child0_child0.getComputedHeight()).toBe(50);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(220);
+ expect(root.getComputedHeight()).toBe(220);
+
+ expect(root_child0.getComputedLeft()).toBe(10);
+ expect(root_child0.getComputedTop()).toBe(10);
+ expect(root_child0.getComputedWidth()).toBe(200);
+ expect(root_child0.getComputedHeight()).toBe(200);
+
+ expect(root_child0_child0.getComputedLeft()).toBe(0);
+ expect(root_child0_child0.getComputedTop()).toBe(0);
+ expect(root_child0_child0.getComputedWidth()).toBe(200);
+ expect(root_child0_child0.getComputedHeight()).toBe(200);
+
+ expect(root_child0_child0_child0.getComputedLeft()).toBe(140);
+ expect(root_child0_child0_child0.getComputedTop()).toBe(10);
+ expect(root_child0_child0_child0.getComputedWidth()).toBe(50);
+ expect(root_child0_child0_child0.getComputedHeight()).toBe(50);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
test('absolute_layout_column_reverse_margin_border', () => {
const config = Yoga.Config.create();
let root;
diff --git a/javascript/tests/generated/YGAlignContentTest.test.ts b/javascript/tests/generated/YGAlignContentTest.test.ts
index 5f8a525520..32d1108174 100644
--- a/javascript/tests/generated/YGAlignContentTest.test.ts
+++ b/javascript/tests/generated/YGAlignContentTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAlignContentTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
diff --git a/javascript/tests/generated/YGAlignItemsTest.test.ts b/javascript/tests/generated/YGAlignItemsTest.test.ts
index 74f6132c6b..f9921c25af 100644
--- a/javascript/tests/generated/YGAlignItemsTest.test.ts
+++ b/javascript/tests/generated/YGAlignItemsTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<74d05d33189c5b8e301d7bb50e219a07>>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAlignItemsTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
diff --git a/javascript/tests/generated/YGAlignSelfTest.test.ts b/javascript/tests/generated/YGAlignSelfTest.test.ts
index 0cfa1a5013..c631969ebe 100644
--- a/javascript/tests/generated/YGAlignSelfTest.test.ts
+++ b/javascript/tests/generated/YGAlignSelfTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<353dcfc198766f52fa7a84b1f47fab23>>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAlignSelfTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
diff --git a/javascript/tests/generated/YGAndroidNewsFeed.test.ts b/javascript/tests/generated/YGAndroidNewsFeed.test.ts
index 47d71af512..e6050cf039 100644
--- a/javascript/tests/generated/YGAndroidNewsFeed.test.ts
+++ b/javascript/tests/generated/YGAndroidNewsFeed.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<<8f3c045b0df6a23f1d2fa54a255cb6f3>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAndroidNewsFeed.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
diff --git a/javascript/tests/generated/YGAspectRatioTest.test.ts b/javascript/tests/generated/YGAspectRatioTest.test.ts
index 3a70fe7f32..c182e280f5 100644
--- a/javascript/tests/generated/YGAspectRatioTest.test.ts
+++ b/javascript/tests/generated/YGAspectRatioTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAspectRatioTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
diff --git a/javascript/tests/generated/YGBorderTest.test.ts b/javascript/tests/generated/YGBorderTest.test.ts
index ff37e163f9..5e3368470a 100644
--- a/javascript/tests/generated/YGBorderTest.test.ts
+++ b/javascript/tests/generated/YGBorderTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<27363e405aac02603d06d5f06fa107ba>>
+ * @generated SignedSource<<675d8bdccff33c46128330c9bd6c9b87>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGBorderTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
diff --git a/javascript/tests/generated/YGDimensionTest.test.ts b/javascript/tests/generated/YGDimensionTest.test.ts
index c34c464f27..76cd571653 100644
--- a/javascript/tests/generated/YGDimensionTest.test.ts
+++ b/javascript/tests/generated/YGDimensionTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<557b8f6c7b3abd35d4f10cc83c650caf>>
+ * @generated SignedSource<<51018ace00a5b85422b92cec7acc9f4d>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGDimensionTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
diff --git a/javascript/tests/generated/YGDisplayTest.test.ts b/javascript/tests/generated/YGDisplayTest.test.ts
index 33c58b1da8..a35c7498ae 100644
--- a/javascript/tests/generated/YGDisplayTest.test.ts
+++ b/javascript/tests/generated/YGDisplayTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGDisplayTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
diff --git a/javascript/tests/generated/YGFlexDirectionTest.test.ts b/javascript/tests/generated/YGFlexDirectionTest.test.ts
index 0595543358..cbc5aa07d2 100644
--- a/javascript/tests/generated/YGFlexDirectionTest.test.ts
+++ b/javascript/tests/generated/YGFlexDirectionTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<61e2e5c148d45c0bbb6bc886991bf3b9>>
+ * @generated SignedSource<<5cc8e03bdba27ff2003afbde3b5ed0b7>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGFlexDirectionTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
@@ -4510,3 +4511,51 @@ test('flex_direction_row_reverse_inner_padding_end', () => {
config.free();
}
});
+test('flex_direction_alternating_with_percent', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(200);
+ root.setHeight(300);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setFlexDirection(FlexDirection.Row);
+ root_child0.setPosition(Edge.Left, "10%");
+ root_child0.setPosition(Edge.Top, "10%");
+ root_child0.setWidth("50%");
+ root_child0.setHeight("50%");
+ root.insertChild(root_child0, 0);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(200);
+ expect(root.getComputedHeight()).toBe(300);
+
+ expect(root_child0.getComputedLeft()).toBe(20);
+ expect(root_child0.getComputedTop()).toBe(30);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(150);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(200);
+ expect(root.getComputedHeight()).toBe(300);
+
+ expect(root_child0.getComputedLeft()).toBe(120);
+ expect(root_child0.getComputedTop()).toBe(30);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(150);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
diff --git a/javascript/tests/generated/YGFlexTest.test.ts b/javascript/tests/generated/YGFlexTest.test.ts
index 0b36ac74b2..65c9525814 100644
--- a/javascript/tests/generated/YGFlexTest.test.ts
+++ b/javascript/tests/generated/YGFlexTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<<0b2282a5a0b35e95e7e27417e6b25ff6>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGFlexTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
diff --git a/javascript/tests/generated/YGFlexWrapTest.test.ts b/javascript/tests/generated/YGFlexWrapTest.test.ts
index 99e90bb3b4..85994ff78e 100644
--- a/javascript/tests/generated/YGFlexWrapTest.test.ts
+++ b/javascript/tests/generated/YGFlexWrapTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<<11f5ca827ba97151a67ab3f05cf48f53>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGFlexWrapTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
diff --git a/javascript/tests/generated/YGGapTest.test.ts b/javascript/tests/generated/YGGapTest.test.ts
index d40fe15fcd..54bb085fcc 100644
--- a/javascript/tests/generated/YGGapTest.test.ts
+++ b/javascript/tests/generated/YGGapTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGGapTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
@@ -2336,3 +2337,966 @@ test('row_gap_determines_parent_height', () => {
config.free();
}
});
+test('row_gap_percent_wrapping', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.Row);
+ root.setPositionType(PositionType.Absolute);
+ root.setFlexWrap(Wrap.Wrap);
+ root.setPadding(Edge.Left, 10);
+ root.setPadding(Edge.Top, 10);
+ root.setPadding(Edge.Right, 10);
+ root.setPadding(Edge.Bottom, 10);
+ root.setWidth(300);
+ root.setHeight(700);
+ root.setGap(Gutter.Column, "10%");
+ root.setGap(Gutter.Row, "10%");
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setWidth(100);
+ root_child0.setHeight(100);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setWidth(100);
+ root_child1.setHeight(100);
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setWidth(100);
+ root_child2.setHeight(100);
+ root.insertChild(root_child2, 2);
+
+ const root_child3 = Yoga.Node.create(config);
+ root_child3.setWidth(100);
+ root_child3.setHeight(100);
+ root.insertChild(root_child3, 3);
+
+ const root_child4 = Yoga.Node.create(config);
+ root_child4.setWidth(100);
+ root_child4.setHeight(100);
+ root.insertChild(root_child4, 4);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(700);
+
+ expect(root_child0.getComputedLeft()).toBe(10);
+ expect(root_child0.getComputedTop()).toBe(10);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(100);
+
+ expect(root_child1.getComputedLeft()).toBe(138);
+ expect(root_child1.getComputedTop()).toBe(10);
+ expect(root_child1.getComputedWidth()).toBe(100);
+ expect(root_child1.getComputedHeight()).toBe(100);
+
+ expect(root_child2.getComputedLeft()).toBe(10);
+ expect(root_child2.getComputedTop()).toBe(178);
+ expect(root_child2.getComputedWidth()).toBe(100);
+ expect(root_child2.getComputedHeight()).toBe(100);
+
+ expect(root_child3.getComputedLeft()).toBe(138);
+ expect(root_child3.getComputedTop()).toBe(178);
+ expect(root_child3.getComputedWidth()).toBe(100);
+ expect(root_child3.getComputedHeight()).toBe(100);
+
+ expect(root_child4.getComputedLeft()).toBe(10);
+ expect(root_child4.getComputedTop()).toBe(346);
+ expect(root_child4.getComputedWidth()).toBe(100);
+ expect(root_child4.getComputedHeight()).toBe(100);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(700);
+
+ expect(root_child0.getComputedLeft()).toBe(190);
+ expect(root_child0.getComputedTop()).toBe(10);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(100);
+
+ expect(root_child1.getComputedLeft()).toBe(62);
+ expect(root_child1.getComputedTop()).toBe(10);
+ expect(root_child1.getComputedWidth()).toBe(100);
+ expect(root_child1.getComputedHeight()).toBe(100);
+
+ expect(root_child2.getComputedLeft()).toBe(190);
+ expect(root_child2.getComputedTop()).toBe(178);
+ expect(root_child2.getComputedWidth()).toBe(100);
+ expect(root_child2.getComputedHeight()).toBe(100);
+
+ expect(root_child3.getComputedLeft()).toBe(62);
+ expect(root_child3.getComputedTop()).toBe(178);
+ expect(root_child3.getComputedWidth()).toBe(100);
+ expect(root_child3.getComputedHeight()).toBe(100);
+
+ expect(root_child4.getComputedLeft()).toBe(190);
+ expect(root_child4.getComputedTop()).toBe(346);
+ expect(root_child4.getComputedWidth()).toBe(100);
+ expect(root_child4.getComputedHeight()).toBe(100);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('row_gap_percent_determines_parent_height', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.Row);
+ root.setPositionType(PositionType.Absolute);
+ root.setFlexWrap(Wrap.Wrap);
+ root.setWidth(300);
+ root.setGap(Gutter.Column, "10%");
+ root.setGap(Gutter.Row, "10%");
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setWidth(100);
+ root_child0.setHeight(100);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setWidth(100);
+ root_child1.setHeight(100);
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setWidth(100);
+ root_child2.setHeight(100);
+ root.insertChild(root_child2, 2);
+
+ const root_child3 = Yoga.Node.create(config);
+ root_child3.setWidth(100);
+ root_child3.setHeight(100);
+ root.insertChild(root_child3, 3);
+
+ const root_child4 = Yoga.Node.create(config);
+ root_child4.setWidth(100);
+ root_child4.setHeight(100);
+ root.insertChild(root_child4, 4);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(300);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(100);
+
+ expect(root_child1.getComputedLeft()).toBe(130);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(100);
+ expect(root_child1.getComputedHeight()).toBe(100);
+
+ expect(root_child2.getComputedLeft()).toBe(0);
+ expect(root_child2.getComputedTop()).toBe(100);
+ expect(root_child2.getComputedWidth()).toBe(100);
+ expect(root_child2.getComputedHeight()).toBe(100);
+
+ expect(root_child3.getComputedLeft()).toBe(130);
+ expect(root_child3.getComputedTop()).toBe(100);
+ expect(root_child3.getComputedWidth()).toBe(100);
+ expect(root_child3.getComputedHeight()).toBe(100);
+
+ expect(root_child4.getComputedLeft()).toBe(0);
+ expect(root_child4.getComputedTop()).toBe(200);
+ expect(root_child4.getComputedWidth()).toBe(100);
+ expect(root_child4.getComputedHeight()).toBe(100);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(300);
+
+ expect(root_child0.getComputedLeft()).toBe(200);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(100);
+
+ expect(root_child1.getComputedLeft()).toBe(70);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(100);
+ expect(root_child1.getComputedHeight()).toBe(100);
+
+ expect(root_child2.getComputedLeft()).toBe(200);
+ expect(root_child2.getComputedTop()).toBe(100);
+ expect(root_child2.getComputedWidth()).toBe(100);
+ expect(root_child2.getComputedHeight()).toBe(100);
+
+ expect(root_child3.getComputedLeft()).toBe(70);
+ expect(root_child3.getComputedTop()).toBe(100);
+ expect(root_child3.getComputedWidth()).toBe(100);
+ expect(root_child3.getComputedHeight()).toBe(100);
+
+ expect(root_child4.getComputedLeft()).toBe(200);
+ expect(root_child4.getComputedTop()).toBe(200);
+ expect(root_child4.getComputedWidth()).toBe(100);
+ expect(root_child4.getComputedHeight()).toBe(100);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('row_gap_percent_wrapping_with_both_content_padding_and_item_padding', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.Row);
+ root.setPositionType(PositionType.Absolute);
+ root.setFlexWrap(Wrap.Wrap);
+ root.setPadding(Edge.Left, 10);
+ root.setPadding(Edge.Top, 10);
+ root.setPadding(Edge.Right, 10);
+ root.setPadding(Edge.Bottom, 10);
+ root.setWidth(300);
+ root.setHeight(700);
+ root.setGap(Gutter.Column, "10%");
+ root.setGap(Gutter.Row, "10%");
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setPadding(Edge.Left, 10);
+ root_child0.setPadding(Edge.Top, 10);
+ root_child0.setPadding(Edge.Right, 10);
+ root_child0.setPadding(Edge.Bottom, 10);
+ root_child0.setWidth(100);
+ root_child0.setHeight(100);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setPadding(Edge.Left, 10);
+ root_child1.setPadding(Edge.Top, 10);
+ root_child1.setPadding(Edge.Right, 10);
+ root_child1.setPadding(Edge.Bottom, 10);
+ root_child1.setWidth(100);
+ root_child1.setHeight(100);
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setPadding(Edge.Left, 10);
+ root_child2.setPadding(Edge.Top, 10);
+ root_child2.setPadding(Edge.Right, 10);
+ root_child2.setPadding(Edge.Bottom, 10);
+ root_child2.setWidth(100);
+ root_child2.setHeight(100);
+ root.insertChild(root_child2, 2);
+
+ const root_child3 = Yoga.Node.create(config);
+ root_child3.setPadding(Edge.Left, 10);
+ root_child3.setPadding(Edge.Top, 10);
+ root_child3.setPadding(Edge.Right, 10);
+ root_child3.setPadding(Edge.Bottom, 10);
+ root_child3.setWidth(100);
+ root_child3.setHeight(100);
+ root.insertChild(root_child3, 3);
+
+ const root_child4 = Yoga.Node.create(config);
+ root_child4.setPadding(Edge.Left, 10);
+ root_child4.setPadding(Edge.Top, 10);
+ root_child4.setPadding(Edge.Right, 10);
+ root_child4.setPadding(Edge.Bottom, 10);
+ root_child4.setWidth(100);
+ root_child4.setHeight(100);
+ root.insertChild(root_child4, 4);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(700);
+
+ expect(root_child0.getComputedLeft()).toBe(10);
+ expect(root_child0.getComputedTop()).toBe(10);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(100);
+
+ expect(root_child1.getComputedLeft()).toBe(138);
+ expect(root_child1.getComputedTop()).toBe(10);
+ expect(root_child1.getComputedWidth()).toBe(100);
+ expect(root_child1.getComputedHeight()).toBe(100);
+
+ expect(root_child2.getComputedLeft()).toBe(10);
+ expect(root_child2.getComputedTop()).toBe(178);
+ expect(root_child2.getComputedWidth()).toBe(100);
+ expect(root_child2.getComputedHeight()).toBe(100);
+
+ expect(root_child3.getComputedLeft()).toBe(138);
+ expect(root_child3.getComputedTop()).toBe(178);
+ expect(root_child3.getComputedWidth()).toBe(100);
+ expect(root_child3.getComputedHeight()).toBe(100);
+
+ expect(root_child4.getComputedLeft()).toBe(10);
+ expect(root_child4.getComputedTop()).toBe(346);
+ expect(root_child4.getComputedWidth()).toBe(100);
+ expect(root_child4.getComputedHeight()).toBe(100);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(700);
+
+ expect(root_child0.getComputedLeft()).toBe(190);
+ expect(root_child0.getComputedTop()).toBe(10);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(100);
+
+ expect(root_child1.getComputedLeft()).toBe(62);
+ expect(root_child1.getComputedTop()).toBe(10);
+ expect(root_child1.getComputedWidth()).toBe(100);
+ expect(root_child1.getComputedHeight()).toBe(100);
+
+ expect(root_child2.getComputedLeft()).toBe(190);
+ expect(root_child2.getComputedTop()).toBe(178);
+ expect(root_child2.getComputedWidth()).toBe(100);
+ expect(root_child2.getComputedHeight()).toBe(100);
+
+ expect(root_child3.getComputedLeft()).toBe(62);
+ expect(root_child3.getComputedTop()).toBe(178);
+ expect(root_child3.getComputedWidth()).toBe(100);
+ expect(root_child3.getComputedHeight()).toBe(100);
+
+ expect(root_child4.getComputedLeft()).toBe(190);
+ expect(root_child4.getComputedTop()).toBe(346);
+ expect(root_child4.getComputedWidth()).toBe(100);
+ expect(root_child4.getComputedHeight()).toBe(100);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('row_gap_percent_wrapping_with_both_content_padding', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.Row);
+ root.setPositionType(PositionType.Absolute);
+ root.setFlexWrap(Wrap.Wrap);
+ root.setPadding(Edge.Left, 10);
+ root.setPadding(Edge.Top, 10);
+ root.setPadding(Edge.Right, 10);
+ root.setPadding(Edge.Bottom, 10);
+ root.setWidth(300);
+ root.setHeight(700);
+ root.setGap(Gutter.Column, "10%");
+ root.setGap(Gutter.Row, "10%");
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setWidth(100);
+ root_child0.setHeight(100);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setWidth(100);
+ root_child1.setHeight(100);
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setWidth(100);
+ root_child2.setHeight(100);
+ root.insertChild(root_child2, 2);
+
+ const root_child3 = Yoga.Node.create(config);
+ root_child3.setWidth(100);
+ root_child3.setHeight(100);
+ root.insertChild(root_child3, 3);
+
+ const root_child4 = Yoga.Node.create(config);
+ root_child4.setWidth(100);
+ root_child4.setHeight(100);
+ root.insertChild(root_child4, 4);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(700);
+
+ expect(root_child0.getComputedLeft()).toBe(10);
+ expect(root_child0.getComputedTop()).toBe(10);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(100);
+
+ expect(root_child1.getComputedLeft()).toBe(138);
+ expect(root_child1.getComputedTop()).toBe(10);
+ expect(root_child1.getComputedWidth()).toBe(100);
+ expect(root_child1.getComputedHeight()).toBe(100);
+
+ expect(root_child2.getComputedLeft()).toBe(10);
+ expect(root_child2.getComputedTop()).toBe(178);
+ expect(root_child2.getComputedWidth()).toBe(100);
+ expect(root_child2.getComputedHeight()).toBe(100);
+
+ expect(root_child3.getComputedLeft()).toBe(138);
+ expect(root_child3.getComputedTop()).toBe(178);
+ expect(root_child3.getComputedWidth()).toBe(100);
+ expect(root_child3.getComputedHeight()).toBe(100);
+
+ expect(root_child4.getComputedLeft()).toBe(10);
+ expect(root_child4.getComputedTop()).toBe(346);
+ expect(root_child4.getComputedWidth()).toBe(100);
+ expect(root_child4.getComputedHeight()).toBe(100);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(700);
+
+ expect(root_child0.getComputedLeft()).toBe(190);
+ expect(root_child0.getComputedTop()).toBe(10);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(100);
+
+ expect(root_child1.getComputedLeft()).toBe(62);
+ expect(root_child1.getComputedTop()).toBe(10);
+ expect(root_child1.getComputedWidth()).toBe(100);
+ expect(root_child1.getComputedHeight()).toBe(100);
+
+ expect(root_child2.getComputedLeft()).toBe(190);
+ expect(root_child2.getComputedTop()).toBe(178);
+ expect(root_child2.getComputedWidth()).toBe(100);
+ expect(root_child2.getComputedHeight()).toBe(100);
+
+ expect(root_child3.getComputedLeft()).toBe(62);
+ expect(root_child3.getComputedTop()).toBe(178);
+ expect(root_child3.getComputedWidth()).toBe(100);
+ expect(root_child3.getComputedHeight()).toBe(100);
+
+ expect(root_child4.getComputedLeft()).toBe(190);
+ expect(root_child4.getComputedTop()).toBe(346);
+ expect(root_child4.getComputedWidth()).toBe(100);
+ expect(root_child4.getComputedHeight()).toBe(100);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('row_gap_percent_wrapping_with_content_margin', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.Row);
+ root.setPositionType(PositionType.Absolute);
+ root.setFlexWrap(Wrap.Wrap);
+ root.setMargin(Edge.Left, 10);
+ root.setMargin(Edge.Top, 10);
+ root.setMargin(Edge.Right, 10);
+ root.setMargin(Edge.Bottom, 10);
+ root.setWidth(300);
+ root.setHeight(700);
+ root.setGap(Gutter.Column, "10%");
+ root.setGap(Gutter.Row, "10%");
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setWidth(100);
+ root_child0.setHeight(100);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setWidth(100);
+ root_child1.setHeight(100);
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setWidth(100);
+ root_child2.setHeight(100);
+ root.insertChild(root_child2, 2);
+
+ const root_child3 = Yoga.Node.create(config);
+ root_child3.setWidth(100);
+ root_child3.setHeight(100);
+ root.insertChild(root_child3, 3);
+
+ const root_child4 = Yoga.Node.create(config);
+ root_child4.setWidth(100);
+ root_child4.setHeight(100);
+ root.insertChild(root_child4, 4);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(10);
+ expect(root.getComputedTop()).toBe(10);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(700);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(100);
+
+ expect(root_child1.getComputedLeft()).toBe(130);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(100);
+ expect(root_child1.getComputedHeight()).toBe(100);
+
+ expect(root_child2.getComputedLeft()).toBe(0);
+ expect(root_child2.getComputedTop()).toBe(170);
+ expect(root_child2.getComputedWidth()).toBe(100);
+ expect(root_child2.getComputedHeight()).toBe(100);
+
+ expect(root_child3.getComputedLeft()).toBe(130);
+ expect(root_child3.getComputedTop()).toBe(170);
+ expect(root_child3.getComputedWidth()).toBe(100);
+ expect(root_child3.getComputedHeight()).toBe(100);
+
+ expect(root_child4.getComputedLeft()).toBe(0);
+ expect(root_child4.getComputedTop()).toBe(340);
+ expect(root_child4.getComputedWidth()).toBe(100);
+ expect(root_child4.getComputedHeight()).toBe(100);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(10);
+ expect(root.getComputedTop()).toBe(10);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(700);
+
+ expect(root_child0.getComputedLeft()).toBe(200);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(100);
+
+ expect(root_child1.getComputedLeft()).toBe(70);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(100);
+ expect(root_child1.getComputedHeight()).toBe(100);
+
+ expect(root_child2.getComputedLeft()).toBe(200);
+ expect(root_child2.getComputedTop()).toBe(170);
+ expect(root_child2.getComputedWidth()).toBe(100);
+ expect(root_child2.getComputedHeight()).toBe(100);
+
+ expect(root_child3.getComputedLeft()).toBe(70);
+ expect(root_child3.getComputedTop()).toBe(170);
+ expect(root_child3.getComputedWidth()).toBe(100);
+ expect(root_child3.getComputedHeight()).toBe(100);
+
+ expect(root_child4.getComputedLeft()).toBe(200);
+ expect(root_child4.getComputedTop()).toBe(340);
+ expect(root_child4.getComputedWidth()).toBe(100);
+ expect(root_child4.getComputedHeight()).toBe(100);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('row_gap_percent_wrapping_with_content_margin_and_padding', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.Row);
+ root.setPositionType(PositionType.Absolute);
+ root.setFlexWrap(Wrap.Wrap);
+ root.setMargin(Edge.Left, 10);
+ root.setMargin(Edge.Top, 10);
+ root.setMargin(Edge.Right, 10);
+ root.setMargin(Edge.Bottom, 10);
+ root.setPadding(Edge.Left, 10);
+ root.setPadding(Edge.Top, 10);
+ root.setPadding(Edge.Right, 10);
+ root.setPadding(Edge.Bottom, 10);
+ root.setWidth(300);
+ root.setHeight(700);
+ root.setGap(Gutter.Column, "10%");
+ root.setGap(Gutter.Row, "10%");
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setWidth(100);
+ root_child0.setHeight(100);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setWidth(100);
+ root_child1.setHeight(100);
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setWidth(100);
+ root_child2.setHeight(100);
+ root.insertChild(root_child2, 2);
+
+ const root_child3 = Yoga.Node.create(config);
+ root_child3.setWidth(100);
+ root_child3.setHeight(100);
+ root.insertChild(root_child3, 3);
+
+ const root_child4 = Yoga.Node.create(config);
+ root_child4.setWidth(100);
+ root_child4.setHeight(100);
+ root.insertChild(root_child4, 4);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(10);
+ expect(root.getComputedTop()).toBe(10);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(700);
+
+ expect(root_child0.getComputedLeft()).toBe(10);
+ expect(root_child0.getComputedTop()).toBe(10);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(100);
+
+ expect(root_child1.getComputedLeft()).toBe(138);
+ expect(root_child1.getComputedTop()).toBe(10);
+ expect(root_child1.getComputedWidth()).toBe(100);
+ expect(root_child1.getComputedHeight()).toBe(100);
+
+ expect(root_child2.getComputedLeft()).toBe(10);
+ expect(root_child2.getComputedTop()).toBe(178);
+ expect(root_child2.getComputedWidth()).toBe(100);
+ expect(root_child2.getComputedHeight()).toBe(100);
+
+ expect(root_child3.getComputedLeft()).toBe(138);
+ expect(root_child3.getComputedTop()).toBe(178);
+ expect(root_child3.getComputedWidth()).toBe(100);
+ expect(root_child3.getComputedHeight()).toBe(100);
+
+ expect(root_child4.getComputedLeft()).toBe(10);
+ expect(root_child4.getComputedTop()).toBe(346);
+ expect(root_child4.getComputedWidth()).toBe(100);
+ expect(root_child4.getComputedHeight()).toBe(100);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(10);
+ expect(root.getComputedTop()).toBe(10);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(700);
+
+ expect(root_child0.getComputedLeft()).toBe(190);
+ expect(root_child0.getComputedTop()).toBe(10);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(100);
+
+ expect(root_child1.getComputedLeft()).toBe(62);
+ expect(root_child1.getComputedTop()).toBe(10);
+ expect(root_child1.getComputedWidth()).toBe(100);
+ expect(root_child1.getComputedHeight()).toBe(100);
+
+ expect(root_child2.getComputedLeft()).toBe(190);
+ expect(root_child2.getComputedTop()).toBe(178);
+ expect(root_child2.getComputedWidth()).toBe(100);
+ expect(root_child2.getComputedHeight()).toBe(100);
+
+ expect(root_child3.getComputedLeft()).toBe(62);
+ expect(root_child3.getComputedTop()).toBe(178);
+ expect(root_child3.getComputedWidth()).toBe(100);
+ expect(root_child3.getComputedHeight()).toBe(100);
+
+ expect(root_child4.getComputedLeft()).toBe(190);
+ expect(root_child4.getComputedTop()).toBe(346);
+ expect(root_child4.getComputedWidth()).toBe(100);
+ expect(root_child4.getComputedHeight()).toBe(100);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('row_gap_percent_wrapping_with_flexible_content', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.Row);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(300);
+ root.setHeight(300);
+ root.setGap(Gutter.Column, "10%");
+ root.setGap(Gutter.Row, "10%");
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setFlexGrow(1);
+ root_child0.setFlexShrink(1);
+ root_child0.setFlexBasis("0%");
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setFlexGrow(1);
+ root_child1.setFlexShrink(1);
+ root_child1.setFlexBasis("0%");
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setFlexGrow(1);
+ root_child2.setFlexShrink(1);
+ root_child2.setFlexBasis("0%");
+ root.insertChild(root_child2, 2);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(300);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(80);
+ expect(root_child0.getComputedHeight()).toBe(300);
+
+ expect(root_child1.getComputedLeft()).toBe(110);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(80);
+ expect(root_child1.getComputedHeight()).toBe(300);
+
+ expect(root_child2.getComputedLeft()).toBe(220);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(80);
+ expect(root_child2.getComputedHeight()).toBe(300);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(300);
+
+ expect(root_child0.getComputedLeft()).toBe(220);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(80);
+ expect(root_child0.getComputedHeight()).toBe(300);
+
+ expect(root_child1.getComputedLeft()).toBe(110);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(80);
+ expect(root_child1.getComputedHeight()).toBe(300);
+
+ expect(root_child2.getComputedLeft()).toBe(0);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(80);
+ expect(root_child2.getComputedHeight()).toBe(300);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('row_gap_percent_wrapping_with_mixed_flexible_content', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.Row);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(300);
+ root.setHeight(300);
+ root.setGap(Gutter.Column, "10%");
+ root.setGap(Gutter.Row, "10%");
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setWidth(10);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setFlexGrow(1);
+ root_child1.setFlexShrink(1);
+ root_child1.setFlexBasis("0%");
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setWidth("10%");
+ root.insertChild(root_child2, 2);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(300);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(10);
+ expect(root_child0.getComputedHeight()).toBe(300);
+
+ expect(root_child1.getComputedLeft()).toBe(40);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(200);
+ expect(root_child1.getComputedHeight()).toBe(300);
+
+ expect(root_child2.getComputedLeft()).toBe(270);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(30);
+ expect(root_child2.getComputedHeight()).toBe(300);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(300);
+
+ expect(root_child0.getComputedLeft()).toBe(290);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(10);
+ expect(root_child0.getComputedHeight()).toBe(300);
+
+ expect(root_child1.getComputedLeft()).toBe(60);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(200);
+ expect(root_child1.getComputedHeight()).toBe(300);
+
+ expect(root_child2.getComputedLeft()).toBe(0);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(30);
+ expect(root_child2.getComputedHeight()).toBe(300);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test.skip('row_gap_percent_wrapping_with_min_width', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.Row);
+ root.setPositionType(PositionType.Absolute);
+ root.setFlexWrap(Wrap.Wrap);
+ root.setMinWidth(300);
+ root.setGap(Gutter.Column, "10%");
+ root.setGap(Gutter.Row, "10%");
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setWidth(100);
+ root_child0.setHeight(100);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setWidth(100);
+ root_child1.setHeight(100);
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setWidth(100);
+ root_child2.setHeight(100);
+ root.insertChild(root_child2, 2);
+
+ const root_child3 = Yoga.Node.create(config);
+ root_child3.setWidth(100);
+ root_child3.setHeight(100);
+ root.insertChild(root_child3, 3);
+
+ const root_child4 = Yoga.Node.create(config);
+ root_child4.setWidth(100);
+ root_child4.setHeight(100);
+ root.insertChild(root_child4, 4);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(300);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(100);
+
+ expect(root_child1.getComputedLeft()).toBe(130);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(100);
+ expect(root_child1.getComputedHeight()).toBe(100);
+
+ expect(root_child2.getComputedLeft()).toBe(0);
+ expect(root_child2.getComputedTop()).toBe(100);
+ expect(root_child2.getComputedWidth()).toBe(100);
+ expect(root_child2.getComputedHeight()).toBe(100);
+
+ expect(root_child3.getComputedLeft()).toBe(130);
+ expect(root_child3.getComputedTop()).toBe(100);
+ expect(root_child3.getComputedWidth()).toBe(100);
+ expect(root_child3.getComputedHeight()).toBe(100);
+
+ expect(root_child4.getComputedLeft()).toBe(0);
+ expect(root_child4.getComputedTop()).toBe(200);
+ expect(root_child4.getComputedWidth()).toBe(100);
+ expect(root_child4.getComputedHeight()).toBe(100);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(300);
+ expect(root.getComputedHeight()).toBe(300);
+
+ expect(root_child0.getComputedLeft()).toBe(200);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(100);
+
+ expect(root_child1.getComputedLeft()).toBe(70);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(100);
+ expect(root_child1.getComputedHeight()).toBe(100);
+
+ expect(root_child2.getComputedLeft()).toBe(200);
+ expect(root_child2.getComputedTop()).toBe(100);
+ expect(root_child2.getComputedWidth()).toBe(100);
+ expect(root_child2.getComputedHeight()).toBe(100);
+
+ expect(root_child3.getComputedLeft()).toBe(70);
+ expect(root_child3.getComputedTop()).toBe(100);
+ expect(root_child3.getComputedWidth()).toBe(100);
+ expect(root_child3.getComputedHeight()).toBe(100);
+
+ expect(root_child4.getComputedLeft()).toBe(200);
+ expect(root_child4.getComputedTop()).toBe(200);
+ expect(root_child4.getComputedWidth()).toBe(100);
+ expect(root_child4.getComputedHeight()).toBe(100);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
diff --git a/javascript/tests/generated/YGIntrinsicSizeTest.test.ts b/javascript/tests/generated/YGIntrinsicSizeTest.test.ts
new file mode 100644
index 0000000000..d272ceff80
--- /dev/null
+++ b/javascript/tests/generated/YGIntrinsicSizeTest.test.ts
@@ -0,0 +1,545 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ * @generated SignedSource<<63249d156daefb8d7d536b57c7d8cb70>>
+ * generated by gentest/gentest-driver.ts from gentest/fixtures/YGIntrinsicSizeTest.html
+ */
+
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
+import Yoga from 'yoga-layout';
+import {
+ Align,
+ Direction,
+ Display,
+ Edge,
+ Errata,
+ ExperimentalFeature,
+ FlexDirection,
+ Gutter,
+ Justify,
+ MeasureMode,
+ Overflow,
+ PositionType,
+ Unit,
+ Wrap,
+} from 'yoga-layout';
+
+test('contains_inner_text_long_word', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setAlignItems(Align.FlexStart);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(2000);
+ root.setHeight(2000);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setFlexDirection(FlexDirection.Row);
+ root.insertChild(root_child0, 0);
+ root_child0.setMeasureFunc(instrinsicSizeMeasureFunc.bind("LoremipsumdolorsitametconsecteturadipiscingelitSedeleifasdfettortoracauctorFuscerhoncusipsumtemporerosaliquamconsequatPraesentsoda"));
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(1300);
+ expect(root_child0.getComputedHeight()).toBe(10);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(700);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(1300);
+ expect(root_child0.getComputedHeight()).toBe(10);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('contains_inner_text_no_width_no_height', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setAlignItems(Align.FlexStart);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(2000);
+ root.setHeight(2000);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setFlexDirection(FlexDirection.Row);
+ root.insertChild(root_child0, 0);
+ root_child0.setMeasureFunc(instrinsicSizeMeasureFunc.bind("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum."));
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(2000);
+ expect(root_child0.getComputedHeight()).toBe(70);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(2000);
+ expect(root_child0.getComputedHeight()).toBe(70);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('contains_inner_text_no_width_no_height_long_word_in_paragraph', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setAlignItems(Align.FlexStart);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(2000);
+ root.setHeight(2000);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setFlexDirection(FlexDirection.Row);
+ root.insertChild(root_child0, 0);
+ root_child0.setMeasureFunc(instrinsicSizeMeasureFunc.bind("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus loremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumlorem Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum."));
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(2000);
+ expect(root_child0.getComputedHeight()).toBe(70);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(2000);
+ expect(root_child0.getComputedHeight()).toBe(70);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('contains_inner_text_fixed_width', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setAlignItems(Align.FlexStart);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(2000);
+ root.setHeight(2000);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setFlexDirection(FlexDirection.Row);
+ root_child0.setWidth(100);
+ root.insertChild(root_child0, 0);
+ root_child0.setMeasureFunc(instrinsicSizeMeasureFunc.bind("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum."));
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(1290);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(1900);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(1290);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('contains_inner_text_no_width_fixed_height', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setAlignItems(Align.FlexStart);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(2000);
+ root.setHeight(2000);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setFlexDirection(FlexDirection.Row);
+ root_child0.setHeight(20);
+ root.insertChild(root_child0, 0);
+ root_child0.setMeasureFunc(instrinsicSizeMeasureFunc.bind("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum."));
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(2000);
+ expect(root_child0.getComputedHeight()).toBe(20);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(2000);
+ expect(root_child0.getComputedHeight()).toBe(20);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('contains_inner_text_fixed_width_fixed_height', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setAlignItems(Align.FlexStart);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(2000);
+ root.setHeight(2000);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setFlexDirection(FlexDirection.Row);
+ root_child0.setWidth(50);
+ root_child0.setHeight(20);
+ root.insertChild(root_child0, 0);
+ root_child0.setMeasureFunc(instrinsicSizeMeasureFunc.bind("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum."));
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(50);
+ expect(root_child0.getComputedHeight()).toBe(20);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(1950);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(50);
+ expect(root_child0.getComputedHeight()).toBe(20);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('contains_inner_text_max_width_max_height', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setAlignItems(Align.FlexStart);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(2000);
+ root.setHeight(2000);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setFlexDirection(FlexDirection.Row);
+ root_child0.setMaxWidth(50);
+ root_child0.setMaxHeight(20);
+ root.insertChild(root_child0, 0);
+ root_child0.setMeasureFunc(instrinsicSizeMeasureFunc.bind("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum."));
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(50);
+ expect(root_child0.getComputedHeight()).toBe(20);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(1950);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(50);
+ expect(root_child0.getComputedHeight()).toBe(20);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('contains_inner_text_max_width', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setAlignItems(Align.FlexStart);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(2000);
+ root.setHeight(2000);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setFlexDirection(FlexDirection.Row);
+ root_child0.setMaxWidth(100);
+ root.insertChild(root_child0, 0);
+ root_child0.setMeasureFunc(instrinsicSizeMeasureFunc.bind("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum."));
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(1290);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(1900);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(1290);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('contains_inner_text_fixed_width_shorter_text', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setAlignItems(Align.FlexStart);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(2000);
+ root.setHeight(2000);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setFlexDirection(FlexDirection.Row);
+ root_child0.setWidth(100);
+ root.insertChild(root_child0, 0);
+ root_child0.setMeasureFunc(instrinsicSizeMeasureFunc.bind("Lorem ipsum"));
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(20);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(1900);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(100);
+ expect(root_child0.getComputedHeight()).toBe(20);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('contains_inner_text_fixed_height_shorter_text', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setAlignItems(Align.FlexStart);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(2000);
+ root.setHeight(2000);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setFlexDirection(FlexDirection.Row);
+ root_child0.setHeight(100);
+ root.insertChild(root_child0, 0);
+ root_child0.setMeasureFunc(instrinsicSizeMeasureFunc.bind("Lorem ipsum"));
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(110);
+ expect(root_child0.getComputedHeight()).toBe(100);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(1890);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(110);
+ expect(root_child0.getComputedHeight()).toBe(100);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('contains_inner_text_max_height', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setAlignItems(Align.FlexStart);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(2000);
+ root.setHeight(2000);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setFlexDirection(FlexDirection.Row);
+ root_child0.setMaxHeight(20);
+ root.insertChild(root_child0, 0);
+ root_child0.setMeasureFunc(instrinsicSizeMeasureFunc.bind("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum."));
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(2000);
+ expect(root_child0.getComputedHeight()).toBe(20);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(2000);
+ expect(root.getComputedHeight()).toBe(2000);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(2000);
+ expect(root_child0.getComputedHeight()).toBe(20);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
diff --git a/javascript/tests/generated/YGJustifyContentTest.test.ts b/javascript/tests/generated/YGJustifyContentTest.test.ts
index adf8dde330..22f8d3e973 100644
--- a/javascript/tests/generated/YGJustifyContentTest.test.ts
+++ b/javascript/tests/generated/YGJustifyContentTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<1027a837f1935ffdea54dc3c7676c35c>>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGJustifyContentTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
@@ -1480,3 +1481,669 @@ test('justify_content_flex_end_row_reverse', () => {
config.free();
}
});
+test('justify_content_overflow_row_flex_start', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.Row);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(102);
+ root.setHeight(102);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setWidth(40);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setWidth(40);
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setWidth(40);
+ root.insertChild(root_child2, 2);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(40);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(80);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(62);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(22);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(-18);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('justify_content_overflow_row_flex_end', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.Row);
+ root.setJustifyContent(Justify.FlexEnd);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(102);
+ root.setHeight(102);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setWidth(40);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setWidth(40);
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setWidth(40);
+ root.insertChild(root_child2, 2);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(-18);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(22);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(62);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(80);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(40);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(0);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('justify_content_overflow_row_center', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.Row);
+ root.setJustifyContent(Justify.Center);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(102);
+ root.setHeight(102);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setWidth(40);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setWidth(40);
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setWidth(40);
+ root.insertChild(root_child2, 2);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(-9);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(31);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(71);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(71);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(31);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(-9);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('justify_content_overflow_row_space_between', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.Row);
+ root.setJustifyContent(Justify.SpaceBetween);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(102);
+ root.setHeight(102);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setWidth(40);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setWidth(40);
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setWidth(40);
+ root.insertChild(root_child2, 2);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(40);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(80);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(62);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(22);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(-18);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('justify_content_overflow_row_space_around', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.Row);
+ root.setJustifyContent(Justify.SpaceAround);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(102);
+ root.setHeight(102);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setWidth(40);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setWidth(40);
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setWidth(40);
+ root.insertChild(root_child2, 2);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(40);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(80);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(62);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(22);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(-18);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('justify_content_overflow_row_space_evenly', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.Row);
+ root.setJustifyContent(Justify.SpaceEvenly);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(102);
+ root.setHeight(102);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setWidth(40);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setWidth(40);
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setWidth(40);
+ root.insertChild(root_child2, 2);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(40);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(80);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(62);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(22);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(-18);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('justify_content_overflow_row_reverse_space_around', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.RowReverse);
+ root.setJustifyContent(Justify.SpaceAround);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(102);
+ root.setHeight(102);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setWidth(40);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setWidth(40);
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setWidth(40);
+ root.insertChild(root_child2, 2);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(62);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(22);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(-18);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(40);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(80);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('justify_content_overflow_row_reverse_space_evenly', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.RowReverse);
+ root.setJustifyContent(Justify.SpaceEvenly);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(102);
+ root.setHeight(102);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setWidth(40);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setWidth(40);
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setWidth(40);
+ root.insertChild(root_child2, 2);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(62);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(22);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(-18);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(40);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(80);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
+test('justify_content_overflow_row_space_evenly_auto_margin', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setFlexDirection(FlexDirection.Row);
+ root.setJustifyContent(Justify.SpaceEvenly);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(102);
+ root.setHeight(102);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setMargin(Edge.Right, 'auto');
+ root_child0.setWidth(40);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setWidth(40);
+ root.insertChild(root_child1, 1);
+
+ const root_child2 = Yoga.Node.create(config);
+ root_child2.setWidth(40);
+ root.insertChild(root_child2, 2);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(0);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(40);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(80);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(102);
+ expect(root.getComputedHeight()).toBe(102);
+
+ expect(root_child0.getComputedLeft()).toBe(62);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(40);
+ expect(root_child0.getComputedHeight()).toBe(102);
+
+ expect(root_child1.getComputedLeft()).toBe(22);
+ expect(root_child1.getComputedTop()).toBe(0);
+ expect(root_child1.getComputedWidth()).toBe(40);
+ expect(root_child1.getComputedHeight()).toBe(102);
+
+ expect(root_child2.getComputedLeft()).toBe(-18);
+ expect(root_child2.getComputedTop()).toBe(0);
+ expect(root_child2.getComputedWidth()).toBe(40);
+ expect(root_child2.getComputedHeight()).toBe(102);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
diff --git a/javascript/tests/generated/YGMarginTest.test.ts b/javascript/tests/generated/YGMarginTest.test.ts
index 3bc2f03e0a..d5d655fdf3 100644
--- a/javascript/tests/generated/YGMarginTest.test.ts
+++ b/javascript/tests/generated/YGMarginTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<9da31d1df716c208b1ca30837c23f803>>
+ * @generated SignedSource<<910ea7258ef002557289f475dc74f3dc>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGMarginTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
@@ -1897,3 +1898,65 @@ test('margin_auto_left_stretching_child', () => {
config.free();
}
});
+test('margin_auto_overflowing_container', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setAlignItems(Align.Center);
+ root.setPositionType(PositionType.Absolute);
+ root.setWidth(200);
+ root.setHeight(200);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setMargin(Edge.Bottom, 'auto');
+ root_child0.setWidth(50);
+ root_child0.setHeight(150);
+ root.insertChild(root_child0, 0);
+
+ const root_child1 = Yoga.Node.create(config);
+ root_child1.setWidth(50);
+ root_child1.setHeight(150);
+ root.insertChild(root_child1, 1);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(200);
+ expect(root.getComputedHeight()).toBe(200);
+
+ expect(root_child0.getComputedLeft()).toBe(75);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(50);
+ expect(root_child0.getComputedHeight()).toBe(150);
+
+ expect(root_child1.getComputedLeft()).toBe(75);
+ expect(root_child1.getComputedTop()).toBe(150);
+ expect(root_child1.getComputedWidth()).toBe(50);
+ expect(root_child1.getComputedHeight()).toBe(150);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(200);
+ expect(root.getComputedHeight()).toBe(200);
+
+ expect(root_child0.getComputedLeft()).toBe(75);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(50);
+ expect(root_child0.getComputedHeight()).toBe(150);
+
+ expect(root_child1.getComputedLeft()).toBe(75);
+ expect(root_child1.getComputedTop()).toBe(150);
+ expect(root_child1.getComputedWidth()).toBe(50);
+ expect(root_child1.getComputedHeight()).toBe(150);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
diff --git a/javascript/tests/generated/YGMinMaxDimensionTest.test.ts b/javascript/tests/generated/YGMinMaxDimensionTest.test.ts
index 646874fdde..936ee3c484 100644
--- a/javascript/tests/generated/YGMinMaxDimensionTest.test.ts
+++ b/javascript/tests/generated/YGMinMaxDimensionTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGMinMaxDimensionTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
diff --git a/javascript/tests/generated/YGPaddingTest.test.ts b/javascript/tests/generated/YGPaddingTest.test.ts
index d208adfff5..7262148eed 100644
--- a/javascript/tests/generated/YGPaddingTest.test.ts
+++ b/javascript/tests/generated/YGPaddingTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<>
+ * @generated SignedSource<<2e4b35c2408710c0aabaa82e43e157cb>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGPaddingTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
@@ -303,3 +304,50 @@ test('child_with_padding_align_end', () => {
config.free();
}
});
+test('physical_and_relative_edge_defined', () => {
+ const config = Yoga.Config.create();
+ let root;
+
+ try {
+ root = Yoga.Node.create(config);
+ root.setPositionType(PositionType.Absolute);
+ root.setPadding(Edge.Left, 20);
+ root.setPadding(Edge.End, 50);
+ root.setWidth(200);
+ root.setHeight(200);
+
+ const root_child0 = Yoga.Node.create(config);
+ root_child0.setWidth("100%");
+ root_child0.setHeight(50);
+ root.insertChild(root_child0, 0);
+ root.calculateLayout(undefined, undefined, Direction.LTR);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(200);
+ expect(root.getComputedHeight()).toBe(200);
+
+ expect(root_child0.getComputedLeft()).toBe(20);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(130);
+ expect(root_child0.getComputedHeight()).toBe(50);
+
+ root.calculateLayout(undefined, undefined, Direction.RTL);
+
+ expect(root.getComputedLeft()).toBe(0);
+ expect(root.getComputedTop()).toBe(0);
+ expect(root.getComputedWidth()).toBe(200);
+ expect(root.getComputedHeight()).toBe(200);
+
+ expect(root_child0.getComputedLeft()).toBe(50);
+ expect(root_child0.getComputedTop()).toBe(0);
+ expect(root_child0.getComputedWidth()).toBe(150);
+ expect(root_child0.getComputedHeight()).toBe(50);
+ } finally {
+ if (typeof root !== 'undefined') {
+ root.freeRecursive();
+ }
+
+ config.free();
+ }
+});
diff --git a/javascript/tests/generated/YGPercentageTest.test.ts b/javascript/tests/generated/YGPercentageTest.test.ts
index 36cc0abbd2..587b93b32f 100644
--- a/javascript/tests/generated/YGPercentageTest.test.ts
+++ b/javascript/tests/generated/YGPercentageTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<830099a8328eae16955128bfb531ccb2>>
+ * @generated SignedSource<<6af8e434b1131c83b7feb6ff04a2dffd>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGPercentageTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
diff --git a/javascript/tests/generated/YGRoundingTest.test.ts b/javascript/tests/generated/YGRoundingTest.test.ts
index 64e3f91141..fa18597da9 100644
--- a/javascript/tests/generated/YGRoundingTest.test.ts
+++ b/javascript/tests/generated/YGRoundingTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<2814c9e579a5d6a4367bf35d92bd1cc9>>
+ * @generated SignedSource<<203f3aa8922cb3fa03e7946f91a6ed2d>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGRoundingTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
diff --git a/javascript/tests/generated/YGSizeOverflowTest.test.ts b/javascript/tests/generated/YGSizeOverflowTest.test.ts
index cb9ebb0c55..c11b26847c 100644
--- a/javascript/tests/generated/YGSizeOverflowTest.test.ts
+++ b/javascript/tests/generated/YGSizeOverflowTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<01de372ba12d9bd521148401d69bca0f>>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGSizeOverflowTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
diff --git a/javascript/tests/generated/YGStaticPositionTest.test.ts b/javascript/tests/generated/YGStaticPositionTest.test.ts
index 77206bf9fe..1a688d7993 100644
--- a/javascript/tests/generated/YGStaticPositionTest.test.ts
+++ b/javascript/tests/generated/YGStaticPositionTest.test.ts
@@ -4,10 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
- * @generated SignedSource<<2f8b96b22567d9b50c880b375cf7de15>>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGStaticPositionTest.html
*/
+import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
import Yoga from 'yoga-layout';
import {
Align,
diff --git a/javascript/tests/tools/utils.ts b/javascript/tests/tools/utils.ts
new file mode 100644
index 0000000000..f555429cc4
--- /dev/null
+++ b/javascript/tests/tools/utils.ts
@@ -0,0 +1,81 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+import {MeasureMode} from 'yoga-layout';
+
+export function instrinsicSizeMeasureFunc(
+ this: string,
+ width: number,
+ widthMode: MeasureMode,
+ height: number,
+ heightMode: MeasureMode,
+): {width: number; height: number} {
+ const textLength = this.length;
+ const words = this.split(' ');
+ const widthPerChar = 10;
+ const heightPerChar = 10;
+
+ let measuredWidth: number;
+ let measuredHeight: number;
+
+ switch (widthMode) {
+ case MeasureMode.Exactly:
+ measuredWidth = width;
+ break;
+ case MeasureMode.AtMost:
+ measuredWidth = Math.min(width, textLength * widthPerChar);
+ break;
+ default:
+ measuredWidth = textLength * widthPerChar;
+ }
+
+ switch (heightMode) {
+ case MeasureMode.Exactly:
+ measuredHeight = height;
+ break;
+ case MeasureMode.AtMost:
+ measuredHeight = Math.min(height, calculateHeight());
+ break;
+ default:
+ measuredHeight = calculateHeight();
+ }
+
+ function longestWordWidth() {
+ return Math.max(...words.map(word => word.length)) * widthPerChar;
+ }
+
+ function calculateHeight() {
+ if (textLength * widthPerChar <= measuredWidth) {
+ return heightPerChar;
+ }
+
+ const maxLineWidth = Math.max(longestWordWidth(), measuredWidth);
+
+ //if fixed width < width of widest word, take width of widest word
+
+ let lines = 1;
+ let currentLineLength = 0;
+ for (const word of words) {
+ const wordWidth = word.length * widthPerChar;
+ if (wordWidth > maxLineWidth) {
+ if (currentLineLength > 0) {
+ lines++;
+ }
+ lines++;
+ currentLineLength = 0;
+ } else if (currentLineLength + wordWidth <= maxLineWidth) {
+ currentLineLength += widthPerChar + wordWidth;
+ } else {
+ lines++;
+ currentLineLength = widthPerChar + wordWidth;
+ }
+ }
+ return (currentLineLength === 0 ? lines - 1 : lines) * heightPerChar;
+ }
+
+ return {width: measuredWidth, height: measuredHeight};
+}
diff --git a/package.json b/package.json
index 55a67fb6e3..ae2f5d7a0b 100644
--- a/package.json
+++ b/package.json
@@ -23,5 +23,8 @@
"eslint-plugin-prettier": "^4.2.1",
"prettier": "2.8.8",
"typescript": "5.0.4"
+ },
+ "resolutions": {
+ "cliui/wrap-ansi": "7.0.0"
}
}
diff --git a/tests/FlexGapTest.cpp b/tests/FlexGapTest.cpp
index 9699145a79..e9cd392dfa 100644
--- a/tests/FlexGapTest.cpp
+++ b/tests/FlexGapTest.cpp
@@ -11,26 +11,26 @@
// TODO: move this to a fixture based test once it supports parsing negative
// values
TEST(FlexGap, gap_negative_value) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetGap(root, YGGutterAll, -20);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 20);
YGNodeInsertChild(root, root_child3, 3);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
diff --git a/tests/StyleTest.cpp b/tests/StyleTest.cpp
index 5a85fe6fc8..4832aeaead 100644
--- a/tests/StyleTest.cpp
+++ b/tests/StyleTest.cpp
@@ -29,7 +29,7 @@ TEST(Style, computed_border_is_floored) {
TEST(Style, computed_gap_is_floored) {
yoga::Style style;
style.setGap(Gutter::Column, value::points(-1.0f));
- auto gapBetweenColumns = style.computeGapForAxis(FlexDirection::Row);
+ auto gapBetweenColumns = style.computeGapForAxis(FlexDirection::Row, 0.0);
ASSERT_EQ(gapBetweenColumns, 0.0f);
}
diff --git a/tests/YGAlignBaselineTest.cpp b/tests/YGAlignBaselineTest.cpp
index f4d60151b4..e8c896ce39 100644
--- a/tests/YGAlignBaselineTest.cpp
+++ b/tests/YGAlignBaselineTest.cpp
@@ -39,7 +39,7 @@ static YGNodeRef createYGNode(
int width,
int height,
bool alignBaseline) {
- const YGNodeRef node = YGNodeNewWithConfig(config);
+ YGNodeRef node = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(node, direction);
if (alignBaseline) {
YGNodeStyleSetAlignItems(node, YGAlignBaseline);
@@ -53,7 +53,7 @@ static YGNodeRef createYGNode(
TEST(YogaTest, align_baseline_parent_ht_not_specified) {
YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
@@ -61,13 +61,13 @@ TEST(YogaTest, align_baseline_parent_ht_not_specified) {
YGNodeStyleSetMaxHeight(root, 170);
YGNodeStyleSetMinHeight(root, 0);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 0);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeSetMeasureFunc(root_child0, _measure1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 0);
YGNodeStyleSetFlexShrink(root_child1, 1);
YGNodeSetMeasureFunc(root_child1, _measure2);
@@ -98,17 +98,17 @@ TEST(YogaTest, align_baseline_parent_ht_not_specified) {
TEST(YogaTest, align_baseline_with_no_parent_ht) {
YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetWidth(root, 150);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 40);
YGNodeSetBaselineFunc(root_child1, _baselineFunc);
@@ -139,17 +139,17 @@ TEST(YogaTest, align_baseline_with_no_parent_ht) {
TEST(YogaTest, align_baseline_with_no_baseline_func_and_no_parent_ht) {
YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetWidth(root, 150);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 80);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
@@ -179,22 +179,21 @@ TEST(YogaTest, align_baseline_with_no_baseline_func_and_no_parent_ht) {
TEST(YogaTest, align_baseline_parent_using_child_in_column_as_reference) {
YGConfigRef config = YGConfigNew();
- const YGNodeRef root =
- createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
+ YGNodeRef root = createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
- const YGNodeRef root_child0 =
+ YGNodeRef root_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 600, false);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 =
+ YGNodeRef root_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 800, false);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 =
+ YGNodeRef root_child1_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 300, false);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 =
+ YGNodeRef root_child1_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 400, false);
YGNodeSetBaselineFunc(root_child1_child1, _baselineFunc);
YGNodeSetIsReferenceBaseline(root_child1_child1, true);
@@ -224,22 +223,21 @@ TEST(
align_baseline_parent_using_child_with_padding_in_column_as_reference) {
YGConfigRef config = YGConfigNew();
- const YGNodeRef root =
- createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
+ YGNodeRef root = createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
- const YGNodeRef root_child0 =
+ YGNodeRef root_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 600, false);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 =
+ YGNodeRef root_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 800, false);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 =
+ YGNodeRef root_child1_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 300, false);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 =
+ YGNodeRef root_child1_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 400, false);
YGNodeSetBaselineFunc(root_child1_child1, _baselineFunc);
YGNodeSetIsReferenceBaseline(root_child1_child1, true);
@@ -273,14 +271,13 @@ TEST(
align_baseline_parent_with_padding_using_child_in_column_as_reference) {
YGConfigRef config = YGConfigNew();
- const YGNodeRef root =
- createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
+ YGNodeRef root = createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
- const YGNodeRef root_child0 =
+ YGNodeRef root_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 600, false);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 =
+ YGNodeRef root_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 800, false);
YGNodeStyleSetPadding(root_child1, YGEdgeLeft, 100);
YGNodeStyleSetPadding(root_child1, YGEdgeRight, 100);
@@ -288,11 +285,11 @@ TEST(
YGNodeStyleSetPadding(root_child1, YGEdgeBottom, 100);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 =
+ YGNodeRef root_child1_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 300, false);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 =
+ YGNodeRef root_child1_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 400, false);
YGNodeSetBaselineFunc(root_child1_child1, _baselineFunc);
YGNodeSetIsReferenceBaseline(root_child1_child1, true);
@@ -322,14 +319,13 @@ TEST(
align_baseline_parent_with_margin_using_child_in_column_as_reference) {
YGConfigRef config = YGConfigNew();
- const YGNodeRef root =
- createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
+ YGNodeRef root = createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
- const YGNodeRef root_child0 =
+ YGNodeRef root_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 600, false);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 =
+ YGNodeRef root_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 800, false);
YGNodeStyleSetMargin(root_child1, YGEdgeLeft, 100);
YGNodeStyleSetMargin(root_child1, YGEdgeRight, 100);
@@ -337,11 +333,11 @@ TEST(
YGNodeStyleSetMargin(root_child1, YGEdgeBottom, 100);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 =
+ YGNodeRef root_child1_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 300, false);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 =
+ YGNodeRef root_child1_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 400, false);
YGNodeSetBaselineFunc(root_child1_child1, _baselineFunc);
YGNodeSetIsReferenceBaseline(root_child1_child1, true);
@@ -371,22 +367,21 @@ TEST(
align_baseline_parent_using_child_with_margin_in_column_as_reference) {
YGConfigRef config = YGConfigNew();
- const YGNodeRef root =
- createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
+ YGNodeRef root = createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
- const YGNodeRef root_child0 =
+ YGNodeRef root_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 600, false);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 =
+ YGNodeRef root_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 800, false);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 =
+ YGNodeRef root_child1_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 300, false);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 =
+ YGNodeRef root_child1_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 400, false);
YGNodeSetBaselineFunc(root_child1_child1, _baselineFunc);
YGNodeSetIsReferenceBaseline(root_child1_child1, true);
@@ -418,22 +413,21 @@ TEST(
TEST(YogaTest, align_baseline_parent_using_child_in_row_as_reference) {
YGConfigRef config = YGConfigNew();
- const YGNodeRef root =
- createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
+ YGNodeRef root = createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
- const YGNodeRef root_child0 =
+ YGNodeRef root_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 600, false);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 =
+ YGNodeRef root_child1 =
createYGNode(config, YGFlexDirectionRow, 500, 800, true);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 =
+ YGNodeRef root_child1_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 500, false);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 =
+ YGNodeRef root_child1_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 400, false);
YGNodeSetBaselineFunc(root_child1_child1, _baselineFunc);
YGNodeSetIsReferenceBaseline(root_child1_child1, true);
@@ -463,22 +457,21 @@ TEST(
align_baseline_parent_using_child_with_padding_in_row_as_reference) {
YGConfigRef config = YGConfigNew();
- const YGNodeRef root =
- createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
+ YGNodeRef root = createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
- const YGNodeRef root_child0 =
+ YGNodeRef root_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 600, false);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 =
+ YGNodeRef root_child1 =
createYGNode(config, YGFlexDirectionRow, 500, 800, true);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 =
+ YGNodeRef root_child1_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 500, false);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 =
+ YGNodeRef root_child1_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 400, false);
YGNodeSetBaselineFunc(root_child1_child1, _baselineFunc);
YGNodeSetIsReferenceBaseline(root_child1_child1, true);
@@ -512,22 +505,21 @@ TEST(
align_baseline_parent_using_child_with_margin_in_row_as_reference) {
YGConfigRef config = YGConfigNew();
- const YGNodeRef root =
- createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
+ YGNodeRef root = createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
- const YGNodeRef root_child0 =
+ YGNodeRef root_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 600, false);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 =
+ YGNodeRef root_child1 =
createYGNode(config, YGFlexDirectionRow, 500, 800, true);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 =
+ YGNodeRef root_child1_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 500, false);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 =
+ YGNodeRef root_child1_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 400, false);
YGNodeSetBaselineFunc(root_child1_child1, _baselineFunc);
YGNodeSetIsReferenceBaseline(root_child1_child1, true);
@@ -561,22 +553,21 @@ TEST(
align_baseline_parent_using_child_in_column_as_reference_with_no_baseline_func) {
YGConfigRef config = YGConfigNew();
- const YGNodeRef root =
- createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
+ YGNodeRef root = createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
- const YGNodeRef root_child0 =
+ YGNodeRef root_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 600, false);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 =
+ YGNodeRef root_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 800, false);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 =
+ YGNodeRef root_child1_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 300, false);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 =
+ YGNodeRef root_child1_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 400, false);
YGNodeSetIsReferenceBaseline(root_child1_child1, true);
YGNodeInsertChild(root_child1, root_child1_child1, 1);
@@ -605,22 +596,21 @@ TEST(
align_baseline_parent_using_child_in_row_as_reference_with_no_baseline_func) {
YGConfigRef config = YGConfigNew();
- const YGNodeRef root =
- createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
+ YGNodeRef root = createYGNode(config, YGFlexDirectionRow, 1000, 1000, true);
- const YGNodeRef root_child0 =
+ YGNodeRef root_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 600, false);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 =
+ YGNodeRef root_child1 =
createYGNode(config, YGFlexDirectionRow, 500, 800, true);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 =
+ YGNodeRef root_child1_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 500, false);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 =
+ YGNodeRef root_child1_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 400, false);
YGNodeSetIsReferenceBaseline(root_child1_child1, true);
YGNodeInsertChild(root_child1, root_child1_child1, 1);
@@ -649,25 +639,25 @@ TEST(
align_baseline_parent_using_child_in_column_as_reference_with_height_not_specified) {
YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetWidth(root, 1000);
- const YGNodeRef root_child0 =
+ YGNodeRef root_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 600, false);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child1, YGFlexDirectionColumn);
YGNodeStyleSetWidth(root_child1, 500);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 =
+ YGNodeRef root_child1_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 300, false);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 =
+ YGNodeRef root_child1_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 400, false);
YGNodeSetBaselineFunc(root_child1_child1, _baselineFunc);
YGNodeSetIsReferenceBaseline(root_child1_child1, true);
@@ -700,25 +690,25 @@ TEST(
align_baseline_parent_using_child_in_row_as_reference_with_height_not_specified) {
YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetWidth(root, 1000);
- const YGNodeRef root_child0 =
+ YGNodeRef root_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 600, false);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child1, YGFlexDirectionRow);
YGNodeStyleSetWidth(root_child1, 500);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 =
+ YGNodeRef root_child1_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 500, false);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 =
+ YGNodeRef root_child1_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 400, false);
YGNodeSetBaselineFunc(root_child1_child1, _baselineFunc);
YGNodeSetIsReferenceBaseline(root_child1_child1, true);
@@ -751,25 +741,25 @@ TEST(
align_baseline_parent_using_child_in_column_as_reference_with_no_baseline_func_and_height_not_specified) {
YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetWidth(root, 1000);
- const YGNodeRef root_child0 =
+ YGNodeRef root_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 600, false);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child1, YGFlexDirectionColumn);
YGNodeStyleSetWidth(root_child1, 500);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 =
+ YGNodeRef root_child1_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 300, false);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 =
+ YGNodeRef root_child1_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 400, false);
YGNodeSetIsReferenceBaseline(root_child1_child1, true);
YGNodeInsertChild(root_child1, root_child1_child1, 1);
@@ -801,25 +791,25 @@ TEST(
align_baseline_parent_using_child_in_row_as_reference_with_no_baseline_func_and_height_not_specified) {
YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetWidth(root, 1000);
- const YGNodeRef root_child0 =
+ YGNodeRef root_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 600, false);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child1, YGFlexDirectionRow);
YGNodeStyleSetWidth(root_child1, 500);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 =
+ YGNodeRef root_child1_child0 =
createYGNode(config, YGFlexDirectionColumn, 500, 500, false);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 =
+ YGNodeRef root_child1_child1 =
createYGNode(config, YGFlexDirectionColumn, 500, 400, false);
YGNodeSetIsReferenceBaseline(root_child1_child1, true);
YGNodeInsertChild(root_child1, root_child1_child1, 1);
diff --git a/tests/YGAspectRatioTest.cpp b/tests/YGAspectRatioTest.cpp
index 378f407165..28ecf3f65f 100644
--- a/tests/YGAspectRatioTest.cpp
+++ b/tests/YGAspectRatioTest.cpp
@@ -21,12 +21,12 @@ static YGSize _measure(
}
TEST(YogaTest, aspect_ratio_cross_defined) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetAspectRatio(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
@@ -42,12 +42,12 @@ TEST(YogaTest, aspect_ratio_cross_defined) {
}
TEST(YogaTest, aspect_ratio_main_defined) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetHeight(root_child0, 50);
YGNodeStyleSetAspectRatio(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
@@ -63,13 +63,13 @@ TEST(YogaTest, aspect_ratio_main_defined) {
}
TEST(YogaTest, aspect_ratio_both_dimensions_defined_row) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeStyleSetAspectRatio(root_child0, 1);
@@ -86,12 +86,12 @@ TEST(YogaTest, aspect_ratio_both_dimensions_defined_row) {
}
TEST(YogaTest, aspect_ratio_both_dimensions_defined_column) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeStyleSetAspectRatio(root_child0, 1);
@@ -108,11 +108,11 @@ TEST(YogaTest, aspect_ratio_both_dimensions_defined_column) {
}
TEST(YogaTest, aspect_ratio_align_stretch) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetAspectRatio(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
@@ -127,12 +127,12 @@ TEST(YogaTest, aspect_ratio_align_stretch) {
}
TEST(YogaTest, aspect_ratio_flex_grow) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetHeight(root_child0, 50);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetAspectRatio(root_child0, 1);
@@ -149,12 +149,12 @@ TEST(YogaTest, aspect_ratio_flex_grow) {
}
TEST(YogaTest, aspect_ratio_flex_shrink) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetHeight(root_child0, 150);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetAspectRatio(root_child0, 1);
@@ -171,17 +171,17 @@ TEST(YogaTest, aspect_ratio_flex_shrink) {
}
TEST(YogaTest, aspect_ratio_flex_shrink_2) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetHeightPercent(root_child0, 100);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetAspectRatio(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNew();
+ YGNodeRef root_child1 = YGNodeNew();
YGNodeStyleSetHeightPercent(root_child1, 100);
YGNodeStyleSetFlexShrink(root_child1, 1);
YGNodeStyleSetAspectRatio(root_child1, 1);
@@ -203,12 +203,12 @@ TEST(YogaTest, aspect_ratio_flex_shrink_2) {
}
TEST(YogaTest, aspect_ratio_basis) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetFlexBasis(root_child0, 50);
YGNodeStyleSetAspectRatio(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
@@ -224,11 +224,11 @@ TEST(YogaTest, aspect_ratio_basis) {
}
TEST(YogaTest, aspect_ratio_absolute_layout_width_defined) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0, YGEdgeLeft, 0);
YGNodeStyleSetPosition(root_child0, YGEdgeTop, 0);
@@ -247,11 +247,11 @@ TEST(YogaTest, aspect_ratio_absolute_layout_width_defined) {
}
TEST(YogaTest, aspect_ratio_absolute_layout_height_defined) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0, YGEdgeLeft, 0);
YGNodeStyleSetPosition(root_child0, YGEdgeTop, 0);
@@ -270,12 +270,12 @@ TEST(YogaTest, aspect_ratio_absolute_layout_height_defined) {
}
TEST(YogaTest, aspect_ratio_with_max_cross_defined) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetHeight(root_child0, 50);
YGNodeStyleSetMaxWidth(root_child0, 40);
YGNodeStyleSetAspectRatio(root_child0, 1);
@@ -292,12 +292,12 @@ TEST(YogaTest, aspect_ratio_with_max_cross_defined) {
}
TEST(YogaTest, aspect_ratio_with_max_main_defined) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetMaxHeight(root_child0, 40);
YGNodeStyleSetAspectRatio(root_child0, 1);
@@ -314,12 +314,12 @@ TEST(YogaTest, aspect_ratio_with_max_main_defined) {
}
TEST(YogaTest, aspect_ratio_with_min_cross_defined) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetHeight(root_child0, 30);
YGNodeStyleSetMinWidth(root_child0, 40);
YGNodeStyleSetAspectRatio(root_child0, 1);
@@ -336,12 +336,12 @@ TEST(YogaTest, aspect_ratio_with_min_cross_defined) {
}
TEST(YogaTest, aspect_ratio_with_min_main_defined) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 30);
YGNodeStyleSetMinHeight(root_child0, 40);
YGNodeStyleSetAspectRatio(root_child0, 1);
@@ -358,12 +358,12 @@ TEST(YogaTest, aspect_ratio_with_min_main_defined) {
}
TEST(YogaTest, aspect_ratio_double_cross) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetHeight(root_child0, 50);
YGNodeStyleSetAspectRatio(root_child0, 2);
YGNodeInsertChild(root, root_child0, 0);
@@ -379,12 +379,12 @@ TEST(YogaTest, aspect_ratio_double_cross) {
}
TEST(YogaTest, aspect_ratio_half_cross) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetHeight(root_child0, 100);
YGNodeStyleSetAspectRatio(root_child0, 0.5);
YGNodeInsertChild(root, root_child0, 0);
@@ -400,12 +400,12 @@ TEST(YogaTest, aspect_ratio_half_cross) {
}
TEST(YogaTest, aspect_ratio_double_main) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetAspectRatio(root_child0, 0.5);
YGNodeInsertChild(root, root_child0, 0);
@@ -421,12 +421,12 @@ TEST(YogaTest, aspect_ratio_double_main) {
}
TEST(YogaTest, aspect_ratio_half_main) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetAspectRatio(root_child0, 2);
YGNodeInsertChild(root, root_child0, 0);
@@ -442,12 +442,12 @@ TEST(YogaTest, aspect_ratio_half_main) {
}
TEST(YogaTest, aspect_ratio_with_measure_func) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeSetMeasureFunc(root_child0, _measure);
YGNodeStyleSetAspectRatio(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
@@ -463,13 +463,13 @@ TEST(YogaTest, aspect_ratio_with_measure_func) {
}
TEST(YogaTest, aspect_ratio_width_height_flex_grow_row) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeStyleSetFlexGrow(root_child0, 1);
@@ -487,12 +487,12 @@ TEST(YogaTest, aspect_ratio_width_height_flex_grow_row) {
}
TEST(YogaTest, aspect_ratio_width_height_flex_grow_column) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeStyleSetFlexGrow(root_child0, 1);
@@ -510,19 +510,19 @@ TEST(YogaTest, aspect_ratio_width_height_flex_grow_column) {
}
TEST(YogaTest, aspect_ratio_height_as_flex_basis) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetHeight(root_child0, 50);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetAspectRatio(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNew();
+ YGNodeRef root_child1 = YGNodeNew();
YGNodeStyleSetHeight(root_child1, 100);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetAspectRatio(root_child1, 1);
@@ -544,18 +544,18 @@ TEST(YogaTest, aspect_ratio_height_as_flex_basis) {
}
TEST(YogaTest, aspect_ratio_width_as_flex_basis) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetAspectRatio(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNew();
+ YGNodeRef root_child1 = YGNodeNew();
YGNodeStyleSetWidth(root_child1, 100);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetAspectRatio(root_child1, 1);
@@ -577,13 +577,13 @@ TEST(YogaTest, aspect_ratio_width_as_flex_basis) {
}
TEST(YogaTest, aspect_ratio_overrides_flex_grow_row) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetAspectRatio(root_child0, 0.5);
@@ -600,12 +600,12 @@ TEST(YogaTest, aspect_ratio_overrides_flex_grow_row) {
}
TEST(YogaTest, aspect_ratio_overrides_flex_grow_column) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetHeight(root_child0, 50);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetAspectRatio(root_child0, 2);
@@ -622,11 +622,11 @@ TEST(YogaTest, aspect_ratio_overrides_flex_grow_column) {
}
TEST(YogaTest, aspect_ratio_left_right_absolute) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0, YGEdgeLeft, 10);
YGNodeStyleSetPosition(root_child0, YGEdgeTop, 10);
@@ -645,11 +645,11 @@ TEST(YogaTest, aspect_ratio_left_right_absolute) {
}
TEST(YogaTest, aspect_ratio_top_bottom_absolute) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0, YGEdgeLeft, 10);
YGNodeStyleSetPosition(root_child0, YGEdgeTop, 10);
@@ -668,12 +668,12 @@ TEST(YogaTest, aspect_ratio_top_bottom_absolute) {
}
TEST(YogaTest, aspect_ratio_width_overrides_align_stretch_row) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetAspectRatio(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
@@ -689,11 +689,11 @@ TEST(YogaTest, aspect_ratio_width_overrides_align_stretch_row) {
}
TEST(YogaTest, aspect_ratio_height_overrides_align_stretch_column) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetHeight(root_child0, 50);
YGNodeStyleSetAspectRatio(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
@@ -709,11 +709,11 @@ TEST(YogaTest, aspect_ratio_height_overrides_align_stretch_column) {
}
TEST(YogaTest, aspect_ratio_allow_child_overflow_parent_size) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetHeight(root_child0, 50);
YGNodeStyleSetAspectRatio(root_child0, 4);
YGNodeInsertChild(root, root_child0, 0);
@@ -730,13 +730,13 @@ TEST(YogaTest, aspect_ratio_allow_child_overflow_parent_size) {
}
TEST(YogaTest, aspect_ratio_defined_main_with_margin) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetHeight(root_child0, 50);
YGNodeStyleSetAspectRatio(root_child0, 1);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 10);
@@ -755,13 +755,13 @@ TEST(YogaTest, aspect_ratio_defined_main_with_margin) {
}
TEST(YogaTest, aspect_ratio_defined_cross_with_margin) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetAspectRatio(root_child0, 1);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 10);
@@ -780,13 +780,13 @@ TEST(YogaTest, aspect_ratio_defined_cross_with_margin) {
}
TEST(YogaTest, aspect_ratio_defined_cross_with_main_margin) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetAspectRatio(root_child0, 1);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 10);
@@ -805,17 +805,17 @@ TEST(YogaTest, aspect_ratio_defined_cross_with_main_margin) {
}
TEST(YogaTest, aspect_ratio_should_prefer_explicit_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
YGConfigSetUseWebDefaults(config, true);
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionColumn);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionColumn);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0, YGFlexDirectionColumn);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeStyleSetAspectRatio(root_child0_child0, 2);
@@ -836,17 +836,17 @@ TEST(YogaTest, aspect_ratio_should_prefer_explicit_height) {
}
TEST(YogaTest, aspect_ratio_should_prefer_explicit_width) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
YGConfigSetUseWebDefaults(config, true);
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0, YGFlexDirectionRow);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetAspectRatio(root_child0_child0, 0.5);
@@ -867,18 +867,18 @@ TEST(YogaTest, aspect_ratio_should_prefer_explicit_width) {
}
TEST(YogaTest, aspect_ratio_should_prefer_flexed_dimension) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
YGConfigSetUseWebDefaults(config, true);
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionColumn);
YGNodeStyleSetAspectRatio(root_child0, 2);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAspectRatio(root_child0_child0, 4);
YGNodeStyleSetFlexGrow(root_child0_child0, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
diff --git a/tests/YGBaselineFuncTest.cpp b/tests/YGBaselineFuncTest.cpp
index 5c93722531..c2d9b08772 100644
--- a/tests/YGBaselineFuncTest.cpp
+++ b/tests/YGBaselineFuncTest.cpp
@@ -15,24 +15,24 @@ _baseline(YGNodeConstRef node, const float /*width*/, const float /*height*/) {
}
TEST(YogaTest, align_baseline_customer_func) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNew();
+ YGNodeRef root_child1 = YGNodeNew();
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
float baselineValue = 10;
- const YGNodeRef root_child1_child0 = YGNodeNew();
+ YGNodeRef root_child1_child0 = YGNodeNew();
YGNodeSetContext(root_child1_child0, &baselineValue);
YGNodeStyleSetWidth(root_child1_child0, 50);
YGNodeSetBaselineFunc(root_child1_child0, _baseline);
diff --git a/tests/YGCloneNodeTest.cpp b/tests/YGCloneNodeTest.cpp
new file mode 100644
index 0000000000..d029fbe027
--- /dev/null
+++ b/tests/YGCloneNodeTest.cpp
@@ -0,0 +1,89 @@
+/*
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+#include
+#include
+
+static void recursivelyAssertProperNodeOwnership(YGNodeRef node) {
+ for (size_t i = 0; i < YGNodeGetChildCount(node); ++i) {
+ const auto child = YGNodeGetChild(node, i);
+ ASSERT_EQ(node, YGNodeGetOwner(child));
+ recursivelyAssertProperNodeOwnership(child);
+ }
+}
+
+TEST(YogaTest, absolute_node_cloned_with_static_parent) {
+ YGNodeRef root = YGNodeNew();
+ YGNodeStyleSetWidth(root, 100);
+ YGNodeStyleSetHeight(root, 100);
+
+ YGNodeRef root_child0 = YGNodeNew();
+ YGNodeStyleSetPositionType(root_child0, YGPositionTypeStatic);
+ YGNodeStyleSetWidth(root_child0, 10);
+ YGNodeStyleSetHeight(root_child0, 10);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child0_child0 = YGNodeNew();
+ YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidthPercent(root_child0_child0, 1);
+ YGNodeStyleSetHeight(root_child0_child0, 1);
+ YGNodeInsertChild(root_child0, root_child0_child0, 0);
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ YGNodeRef clonedRoot = YGNodeClone(root);
+ YGNodeStyleSetWidth(clonedRoot, 110);
+ YGNodeCalculateLayout(clonedRoot, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ recursivelyAssertProperNodeOwnership(clonedRoot);
+
+ YGNodeFreeRecursive(root);
+ YGNodeFreeRecursive(clonedRoot);
+}
+
+TEST(YogaTest, absolute_node_cloned_with_static_ancestors) {
+ YGNodeRef root = YGNodeNew();
+ YGNodeStyleSetWidth(root, 100);
+ YGNodeStyleSetHeight(root, 100);
+
+ YGNodeRef root_child0 = YGNodeNew();
+ YGNodeStyleSetPositionType(root_child0, YGPositionTypeStatic);
+ YGNodeStyleSetWidth(root_child0, 50);
+ YGNodeStyleSetHeight(root_child0, 50);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child0_child0 = YGNodeNew();
+ YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
+ YGNodeStyleSetWidth(root_child0_child0, 40);
+ YGNodeStyleSetHeight(root_child0_child0, 40);
+ YGNodeInsertChild(root_child0, root_child0_child0, 0);
+
+ YGNodeRef root_child0_child0_child0 = YGNodeNew();
+ YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeStatic);
+ YGNodeStyleSetWidth(root_child0_child0_child0, 30);
+ YGNodeStyleSetHeight(root_child0_child0_child0, 30);
+ YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
+
+ YGNodeRef root_child0_child0_child0_child0 = YGNodeNew();
+ YGNodeStyleSetPositionType(
+ root_child0_child0_child0_child0, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidthPercent(root_child0_child0_child0_child0, 1);
+ YGNodeStyleSetHeight(root_child0_child0_child0_child0, 1);
+ YGNodeInsertChild(
+ root_child0_child0_child0, root_child0_child0_child0_child0, 0);
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ YGNodeRef clonedRoot = YGNodeClone(root);
+ YGNodeStyleSetWidth(clonedRoot, 110);
+ YGNodeCalculateLayout(clonedRoot, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ recursivelyAssertProperNodeOwnership(clonedRoot);
+
+ YGNodeFreeRecursive(root);
+ YGNodeFreeRecursive(clonedRoot);
+}
diff --git a/tests/YGComputedMarginTest.cpp b/tests/YGComputedMarginTest.cpp
index f21567e34a..943b6f68be 100644
--- a/tests/YGComputedMarginTest.cpp
+++ b/tests/YGComputedMarginTest.cpp
@@ -10,7 +10,7 @@
#include
TEST(YogaTest, computed_layout_margin) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetMarginPercent(root, YGEdgeStart, 10);
@@ -43,7 +43,7 @@ TEST(YogaTest, margin_side_overrides_horizontal_and_vertical) {
? YGEdgeVertical
: YGEdgeHorizontal;
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetMargin(root, horizontalOrVertical, 10);
@@ -69,7 +69,7 @@ TEST(YogaTest, margin_side_overrides_all) {
for (float edgeValue = 0; edgeValue < 2; ++edgeValue) {
for (const auto& edge : edges) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetMargin(root, YGEdgeAll, 10);
@@ -89,7 +89,7 @@ TEST(YogaTest, margin_horizontal_and_vertical_overrides_all) {
for (float directionValue = 0; directionValue < 2; ++directionValue) {
for (const auto& direction : directions) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetMargin(root, YGEdgeAll, 10);
diff --git a/tests/YGComputedPaddingTest.cpp b/tests/YGComputedPaddingTest.cpp
index 496981d0be..2ea1e1da1f 100644
--- a/tests/YGComputedPaddingTest.cpp
+++ b/tests/YGComputedPaddingTest.cpp
@@ -10,7 +10,7 @@
#include
TEST(YogaTest, computed_layout_padding) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetPaddingPercent(root, YGEdgeStart, 10);
@@ -43,7 +43,7 @@ TEST(YogaTest, padding_side_overrides_horizontal_and_vertical) {
? YGEdgeVertical
: YGEdgeHorizontal;
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetPadding(root, horizontalOrVertical, 10);
@@ -69,7 +69,7 @@ TEST(YogaTest, padding_side_overrides_all) {
for (float edgeValue = 0; edgeValue < 2; ++edgeValue) {
for (const auto& edge : edges) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetPadding(root, YGEdgeAll, 10);
@@ -89,7 +89,7 @@ TEST(YogaTest, padding_horizontal_and_vertical_overrides_all) {
for (float directionValue = 0; directionValue < 2; ++directionValue) {
for (const auto& direction : directions) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetPadding(root, YGEdgeAll, 10);
diff --git a/tests/YGDefaultValuesTest.cpp b/tests/YGDefaultValuesTest.cpp
index 2558d404e2..93212fde45 100644
--- a/tests/YGDefaultValuesTest.cpp
+++ b/tests/YGDefaultValuesTest.cpp
@@ -9,7 +9,7 @@
#include
TEST(YogaTest, assert_default_values) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
ASSERT_EQ(0u, YGNodeGetChildCount(root));
ASSERT_EQ(nullptr, YGNodeGetChild(root, 1));
@@ -92,7 +92,7 @@ TEST(YogaTest, assert_default_values) {
TEST(YogaTest, assert_webdefault_values) {
YGConfig* config = YGConfigNew();
YGConfigSetUseWebDefaults(config, true);
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
ASSERT_EQ(YGFlexDirectionRow, YGNodeStyleGetFlexDirection(root));
ASSERT_EQ(YGAlignStretch, YGNodeStyleGetAlignContent(root));
@@ -105,7 +105,7 @@ TEST(YogaTest, assert_webdefault_values) {
TEST(YogaTest, assert_webdefault_values_reset) {
YGConfig* config = YGConfigNew();
YGConfigSetUseWebDefaults(config, true);
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeReset(root);
ASSERT_EQ(YGFlexDirectionRow, YGNodeStyleGetFlexDirection(root));
@@ -119,20 +119,20 @@ TEST(YogaTest, assert_webdefault_values_reset) {
TEST(YogaTest, assert_legacy_stretch_behaviour) {
YGConfig* config = YGConfigNew();
YGConfigSetErrata(config, YGErrataStretchFlexBasis);
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root_child0, YGAlignFlexStart);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0, 1);
YGNodeStyleSetFlexShrink(root_child0_child0, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0_child0, 1);
YGNodeStyleSetFlexShrink(root_child0_child0_child0, 1);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
diff --git a/tests/YGDirtiedTest.cpp b/tests/YGDirtiedTest.cpp
index 67e6b40321..77db88cbba 100644
--- a/tests/YGDirtiedTest.cpp
+++ b/tests/YGDirtiedTest.cpp
@@ -17,7 +17,7 @@ static void _dirtied(YGNodeConstRef node) {
}
TEST(YogaTest, dirtied) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
@@ -40,17 +40,17 @@ TEST(YogaTest, dirtied) {
}
TEST(YogaTest, dirtied_propagation) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNew();
+ YGNodeRef root_child1 = YGNodeNew();
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
@@ -73,17 +73,17 @@ TEST(YogaTest, dirtied_propagation) {
}
TEST(YogaTest, dirtied_hierarchy) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNew();
+ YGNodeRef root_child1 = YGNodeNew();
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
diff --git a/tests/YGDirtyMarkingTest.cpp b/tests/YGDirtyMarkingTest.cpp
index a032b27801..b7da4fcaae 100644
--- a/tests/YGDirtyMarkingTest.cpp
+++ b/tests/YGDirtyMarkingTest.cpp
@@ -9,17 +9,17 @@
#include
TEST(YogaTest, dirty_propagation) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNew();
+ YGNodeRef root_child1 = YGNodeNew();
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
@@ -42,17 +42,17 @@ TEST(YogaTest, dirty_propagation) {
}
TEST(YogaTest, dirty_propagation_only_if_prop_changed) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNew();
+ YGNodeRef root_child1 = YGNodeNew();
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
@@ -69,22 +69,22 @@ TEST(YogaTest, dirty_propagation_only_if_prop_changed) {
}
TEST(YogaTest, dirty_propagation_changing_layout_config) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNew();
+ YGNodeRef root_child1 = YGNodeNew();
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child0_child0 = YGNodeNew();
+ YGNodeRef root_child0_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0_child0, 25);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root, root_child0_child0, 0);
@@ -117,22 +117,22 @@ TEST(YogaTest, dirty_propagation_changing_layout_config) {
}
TEST(YogaTest, dirty_propagation_changing_benign_config) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNew();
+ YGNodeRef root_child1 = YGNodeNew();
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child0_child0 = YGNodeNew();
+ YGNodeRef root_child0_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0_child0, 25);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root, root_child0_child0, 0);
@@ -162,17 +162,17 @@ TEST(YogaTest, dirty_propagation_changing_benign_config) {
}
TEST(YogaTest, dirty_mark_all_children_as_dirty_when_display_changes) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef child0 = YGNodeNew();
+ YGNodeRef child0 = YGNodeNew();
YGNodeStyleSetFlexGrow(child0, 1);
- const YGNodeRef child1 = YGNodeNew();
+ YGNodeRef child1 = YGNodeNew();
YGNodeStyleSetFlexGrow(child1, 1);
- const YGNodeRef child1_child0 = YGNodeNew();
- const YGNodeRef child1_child0_child0 = YGNodeNew();
+ YGNodeRef child1_child0 = YGNodeNew();
+ YGNodeRef child1_child0_child0 = YGNodeNew();
YGNodeStyleSetWidth(child1_child0_child0, 8);
YGNodeStyleSetHeight(child1_child0_child0, 16);
@@ -210,19 +210,19 @@ TEST(YogaTest, dirty_mark_all_children_as_dirty_when_display_changes) {
}
TEST(YogaTest, dirty_node_only_if_children_are_actually_removed) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 50);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef child0 = YGNodeNew();
+ YGNodeRef child0 = YGNodeNew();
YGNodeStyleSetWidth(child0, 50);
YGNodeStyleSetHeight(child0, 25);
YGNodeInsertChild(root, child0, 0);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
- const YGNodeRef child1 = YGNodeNew();
+ YGNodeRef child1 = YGNodeNew();
YGNodeRemoveChild(root, child1);
EXPECT_FALSE(YGNodeIsDirty(root));
YGNodeFree(child1);
@@ -235,7 +235,7 @@ TEST(YogaTest, dirty_node_only_if_children_are_actually_removed) {
}
TEST(YogaTest, dirty_node_only_if_undefined_values_gets_set_to_undefined) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 50);
YGNodeStyleSetHeight(root, 50);
YGNodeStyleSetMinWidth(root, YGUndefined);
diff --git a/tests/YGEdgeTest.cpp b/tests/YGEdgeTest.cpp
index 2dff0390b1..15990eddaa 100644
--- a/tests/YGEdgeTest.cpp
+++ b/tests/YGEdgeTest.cpp
@@ -9,12 +9,12 @@
#include
TEST(YogaTest, start_overrides) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMargin(root_child0, YGEdgeStart, 10);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 20);
@@ -33,12 +33,12 @@ TEST(YogaTest, start_overrides) {
}
TEST(YogaTest, end_overrides) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMargin(root_child0, YGEdgeEnd, 10);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 20);
@@ -57,12 +57,12 @@ TEST(YogaTest, end_overrides) {
}
TEST(YogaTest, horizontal_overridden) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMargin(root_child0, YGEdgeHorizontal, 10);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 20);
@@ -76,12 +76,12 @@ TEST(YogaTest, horizontal_overridden) {
}
TEST(YogaTest, vertical_overridden) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetFlexDirection(root, YGFlexDirectionColumn);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMargin(root_child0, YGEdgeVertical, 10);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 20);
@@ -95,12 +95,12 @@ TEST(YogaTest, vertical_overridden) {
}
TEST(YogaTest, horizontal_overrides_all) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetFlexDirection(root, YGFlexDirectionColumn);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMargin(root_child0, YGEdgeHorizontal, 10);
YGNodeStyleSetMargin(root_child0, YGEdgeAll, 20);
@@ -116,12 +116,12 @@ TEST(YogaTest, horizontal_overrides_all) {
}
TEST(YogaTest, vertical_overrides_all) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetFlexDirection(root, YGFlexDirectionColumn);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMargin(root_child0, YGEdgeVertical, 10);
YGNodeStyleSetMargin(root_child0, YGEdgeAll, 20);
@@ -137,12 +137,12 @@ TEST(YogaTest, vertical_overrides_all) {
}
TEST(YogaTest, all_overridden) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetFlexDirection(root, YGFlexDirectionColumn);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 10);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 10);
diff --git a/tests/YGHadOverflowTest.cpp b/tests/YGHadOverflowTest.cpp
index a21bb99005..bbeefe7ee4 100644
--- a/tests/YGHadOverflowTest.cpp
+++ b/tests/YGHadOverflowTest.cpp
@@ -32,13 +32,13 @@ class YogaTest_HadOverflowTests : public Test {
TEST_F(
YogaTest_HadOverflowTests,
children_overflow_no_wrap_and_no_flex_children) {
- const YGNodeRef child0 = YGNodeNewWithConfig(config);
+ YGNodeRef child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(child0, 80);
YGNodeStyleSetHeight(child0, 40);
YGNodeStyleSetMargin(child0, YGEdgeTop, 10);
YGNodeStyleSetMargin(child0, YGEdgeBottom, 15);
YGNodeInsertChild(root, child0, 0);
- const YGNodeRef child1 = YGNodeNewWithConfig(config);
+ YGNodeRef child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(child1, 80);
YGNodeStyleSetHeight(child1, 40);
YGNodeStyleSetMargin(child1, YGEdgeBottom, 5);
@@ -52,13 +52,13 @@ TEST_F(
TEST_F(
YogaTest_HadOverflowTests,
spacing_overflow_no_wrap_and_no_flex_children) {
- const YGNodeRef child0 = YGNodeNewWithConfig(config);
+ YGNodeRef child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(child0, 80);
YGNodeStyleSetHeight(child0, 40);
YGNodeStyleSetMargin(child0, YGEdgeTop, 10);
YGNodeStyleSetMargin(child0, YGEdgeBottom, 10);
YGNodeInsertChild(root, child0, 0);
- const YGNodeRef child1 = YGNodeNewWithConfig(config);
+ YGNodeRef child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(child1, 80);
YGNodeStyleSetHeight(child1, 40);
YGNodeStyleSetMargin(child1, YGEdgeBottom, 5);
@@ -70,13 +70,13 @@ TEST_F(
}
TEST_F(YogaTest_HadOverflowTests, no_overflow_no_wrap_and_flex_children) {
- const YGNodeRef child0 = YGNodeNewWithConfig(config);
+ YGNodeRef child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(child0, 80);
YGNodeStyleSetHeight(child0, 40);
YGNodeStyleSetMargin(child0, YGEdgeTop, 10);
YGNodeStyleSetMargin(child0, YGEdgeBottom, 10);
YGNodeInsertChild(root, child0, 0);
- const YGNodeRef child1 = YGNodeNewWithConfig(config);
+ YGNodeRef child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(child1, 80);
YGNodeStyleSetHeight(child1, 40);
YGNodeStyleSetMargin(child1, YGEdgeBottom, 5);
@@ -89,13 +89,13 @@ TEST_F(YogaTest_HadOverflowTests, no_overflow_no_wrap_and_flex_children) {
}
TEST_F(YogaTest_HadOverflowTests, hadOverflow_gets_reset_if_not_logger_valid) {
- const YGNodeRef child0 = YGNodeNewWithConfig(config);
+ YGNodeRef child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(child0, 80);
YGNodeStyleSetHeight(child0, 40);
YGNodeStyleSetMargin(child0, YGEdgeTop, 10);
YGNodeStyleSetMargin(child0, YGEdgeBottom, 10);
YGNodeInsertChild(root, child0, 0);
- const YGNodeRef child1 = YGNodeNewWithConfig(config);
+ YGNodeRef child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(child1, 80);
YGNodeStyleSetHeight(child1, 40);
YGNodeStyleSetMargin(child1, YGEdgeBottom, 5);
@@ -113,17 +113,17 @@ TEST_F(YogaTest_HadOverflowTests, hadOverflow_gets_reset_if_not_logger_valid) {
}
TEST_F(YogaTest_HadOverflowTests, spacing_overflow_in_nested_nodes) {
- const YGNodeRef child0 = YGNodeNewWithConfig(config);
+ YGNodeRef child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(child0, 80);
YGNodeStyleSetHeight(child0, 40);
YGNodeStyleSetMargin(child0, YGEdgeTop, 10);
YGNodeStyleSetMargin(child0, YGEdgeBottom, 10);
YGNodeInsertChild(root, child0, 0);
- const YGNodeRef child1 = YGNodeNewWithConfig(config);
+ YGNodeRef child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(child1, 80);
YGNodeStyleSetHeight(child1, 40);
YGNodeInsertChild(root, child1, 1);
- const YGNodeRef child1_1 = YGNodeNewWithConfig(config);
+ YGNodeRef child1_1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(child1_1, 80);
YGNodeStyleSetHeight(child1_1, 40);
YGNodeStyleSetMargin(child1_1, YGEdgeBottom, 5);
diff --git a/tests/YGMeasureCacheTest.cpp b/tests/YGMeasureCacheTest.cpp
index 71183c726d..850c17e6d7 100644
--- a/tests/YGMeasureCacheTest.cpp
+++ b/tests/YGMeasureCacheTest.cpp
@@ -58,13 +58,13 @@ static YGSize _measure_84_49(
}
TEST(YogaTest, measure_once_single_flexible_child) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
int measureCount = 0;
YGNodeSetContext(root_child0, &measureCount);
YGNodeSetMeasureFunc(root_child0, _measureMax);
@@ -79,9 +79,9 @@ TEST(YogaTest, measure_once_single_flexible_child) {
}
TEST(YogaTest, remeasure_with_same_exact_width_larger_than_needed_height) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
int measureCount = 0;
YGNodeSetContext(root_child0, &measureCount);
YGNodeSetMeasureFunc(root_child0, _measureMin);
@@ -96,10 +96,10 @@ TEST(YogaTest, remeasure_with_same_exact_width_larger_than_needed_height) {
}
TEST(YogaTest, remeasure_with_same_atmost_width_larger_than_needed_height) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
int measureCount = 0;
YGNodeSetContext(root_child0, &measureCount);
YGNodeSetMeasureFunc(root_child0, _measureMin);
@@ -114,10 +114,10 @@ TEST(YogaTest, remeasure_with_same_atmost_width_larger_than_needed_height) {
}
TEST(YogaTest, remeasure_with_computed_width_larger_than_needed_height) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
int measureCount = 0;
YGNodeSetContext(root_child0, &measureCount);
YGNodeSetMeasureFunc(root_child0, _measureMin);
@@ -133,10 +133,10 @@ TEST(YogaTest, remeasure_with_computed_width_larger_than_needed_height) {
}
TEST(YogaTest, remeasure_with_atmost_computed_width_undefined_height) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
int measureCount = 0;
YGNodeSetContext(root_child0, &measureCount);
YGNodeSetMeasureFunc(root_child0, _measureMin);
@@ -155,17 +155,17 @@ TEST(
remeasure_with_already_measured_value_smaller_but_still_float_equal) {
int measureCount = 0;
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 288.f);
YGNodeStyleSetHeight(root, 288.f);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetPadding(root_child0, YGEdgeAll, 2.88f);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNew();
+ YGNodeRef root_child0_child0 = YGNodeNew();
YGNodeSetContext(root_child0_child0, &measureCount);
YGNodeSetMeasureFunc(root_child0_child0, _measure_84_49);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
diff --git a/tests/YGMeasureModeTest.cpp b/tests/YGMeasureModeTest.cpp
index 97c916c21c..f42ee060a4 100644
--- a/tests/YGMeasureModeTest.cpp
+++ b/tests/YGMeasureModeTest.cpp
@@ -48,11 +48,11 @@ TEST(YogaTest, exactly_measure_stretched_child_column) {
10 * sizeof(struct _MeasureConstraint)),
};
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeSetContext(root_child0, &constraintList);
YGNodeSetMeasureFunc(root_child0, _measure);
YGNodeInsertChild(root, root_child0, 0);
@@ -75,12 +75,12 @@ TEST(YogaTest, exactly_measure_stretched_child_row) {
10 * sizeof(struct _MeasureConstraint)),
};
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeSetContext(root_child0, &constraintList);
YGNodeSetMeasureFunc(root_child0, _measure);
YGNodeInsertChild(root, root_child0, 0);
@@ -103,11 +103,11 @@ TEST(YogaTest, at_most_main_axis_column) {
10 * sizeof(struct _MeasureConstraint)),
};
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeSetContext(root_child0, &constraintList);
YGNodeSetMeasureFunc(root_child0, _measure);
YGNodeInsertChild(root, root_child0, 0);
@@ -130,12 +130,12 @@ TEST(YogaTest, at_most_cross_axis_column) {
10 * sizeof(struct _MeasureConstraint)),
};
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeSetContext(root_child0, &constraintList);
YGNodeSetMeasureFunc(root_child0, _measure);
YGNodeInsertChild(root, root_child0, 0);
@@ -158,12 +158,12 @@ TEST(YogaTest, at_most_main_axis_row) {
10 * sizeof(struct _MeasureConstraint)),
};
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeSetContext(root_child0, &constraintList);
YGNodeSetMeasureFunc(root_child0, _measure);
YGNodeInsertChild(root, root_child0, 0);
@@ -186,13 +186,13 @@ TEST(YogaTest, at_most_cross_axis_row) {
10 * sizeof(struct _MeasureConstraint)),
};
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeSetContext(root_child0, &constraintList);
YGNodeSetMeasureFunc(root_child0, _measure);
YGNodeInsertChild(root, root_child0, 0);
@@ -215,10 +215,10 @@ TEST(YogaTest, flex_child) {
10 * sizeof(struct _MeasureConstraint)),
};
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeSetContext(root_child0, &constraintList);
YGNodeSetMeasureFunc(root_child0, _measure);
@@ -245,10 +245,10 @@ TEST(YogaTest, flex_child_with_flex_basis) {
10 * sizeof(struct _MeasureConstraint)),
};
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 0);
YGNodeSetContext(root_child0, &constraintList);
@@ -273,13 +273,13 @@ TEST(YogaTest, overflow_scroll_column) {
10 * sizeof(struct _MeasureConstraint)),
};
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetOverflow(root, YGOverflowScroll);
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetWidth(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeSetContext(root_child0, &constraintList);
YGNodeSetMeasureFunc(root_child0, _measure);
YGNodeInsertChild(root, root_child0, 0);
@@ -305,14 +305,14 @@ TEST(YogaTest, overflow_scroll_row) {
10 * sizeof(struct _MeasureConstraint)),
};
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetOverflow(root, YGOverflowScroll);
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetWidth(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeSetContext(root_child0, &constraintList);
YGNodeSetMeasureFunc(root_child0, _measure);
YGNodeInsertChild(root, root_child0, 0);
diff --git a/tests/YGMeasureTest.cpp b/tests/YGMeasureTest.cpp
index 7fc0c4efd1..eeb00b1818 100644
--- a/tests/YGMeasureTest.cpp
+++ b/tests/YGMeasureTest.cpp
@@ -48,13 +48,13 @@ static YGSize _measure_assert_negative(
}
TEST(YogaTest, dont_measure_single_grow_shrink_child) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
int measureCount = 0;
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeSetContext(root_child0, &measureCount);
YGNodeSetMeasureFunc(root_child0, _measure);
YGNodeStyleSetFlexGrow(root_child0, 1);
@@ -69,14 +69,14 @@ TEST(YogaTest, dont_measure_single_grow_shrink_child) {
}
TEST(YogaTest, measure_absolute_child_with_no_constraints) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeInsertChild(root, root_child0, 0);
int measureCount = 0;
- const YGNodeRef root_child0_child0 = YGNodeNew();
+ YGNodeRef root_child0_child0 = YGNodeNew();
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeSetContext(root_child0_child0, &measureCount);
YGNodeSetMeasureFunc(root_child0_child0, _measure);
@@ -90,14 +90,14 @@ TEST(YogaTest, measure_absolute_child_with_no_constraints) {
}
TEST(YogaTest, dont_measure_when_min_equals_max) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
int measureCount = 0;
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeSetContext(root_child0, &measureCount);
YGNodeSetMeasureFunc(root_child0, _measure);
YGNodeStyleSetMinWidth(root_child0, 10);
@@ -118,14 +118,14 @@ TEST(YogaTest, dont_measure_when_min_equals_max) {
}
TEST(YogaTest, dont_measure_when_min_equals_max_percentages) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
int measureCount = 0;
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeSetContext(root_child0, &measureCount);
YGNodeSetMeasureFunc(root_child0, _measure);
YGNodeStyleSetMinWidthPercent(root_child0, 10);
@@ -146,11 +146,11 @@ TEST(YogaTest, dont_measure_when_min_equals_max_percentages) {
}
TEST(YogaTest, measure_nodes_with_margin_auto_and_stretch) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeSetMeasureFunc(root_child0, _measure);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeLeft);
YGNodeInsertChild(root, root_child0, 0);
@@ -166,14 +166,14 @@ TEST(YogaTest, measure_nodes_with_margin_auto_and_stretch) {
}
TEST(YogaTest, dont_measure_when_min_equals_max_mixed_width_percent) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
int measureCount = 0;
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeSetContext(root_child0, &measureCount);
YGNodeSetMeasureFunc(root_child0, _measure);
YGNodeStyleSetMinWidthPercent(root_child0, 10);
@@ -194,14 +194,14 @@ TEST(YogaTest, dont_measure_when_min_equals_max_mixed_width_percent) {
}
TEST(YogaTest, dont_measure_when_min_equals_max_mixed_height_percent) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
int measureCount = 0;
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeSetContext(root_child0, &measureCount);
YGNodeSetMeasureFunc(root_child0, _measure);
YGNodeStyleSetMinWidth(root_child0, 10);
@@ -222,10 +222,10 @@ TEST(YogaTest, dont_measure_when_min_equals_max_mixed_height_percent) {
}
TEST(YogaTest, measure_enough_size_should_be_in_single_line) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 100);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetAlignSelf(root_child0, YGAlignFlexStart);
YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text);
@@ -240,10 +240,10 @@ TEST(YogaTest, measure_enough_size_should_be_in_single_line) {
}
TEST(YogaTest, measure_not_enough_size_should_wrap) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetWidth(root, 55);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetAlignSelf(root_child0, YGAlignFlexStart);
// YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text);
YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text);
@@ -258,14 +258,14 @@ TEST(YogaTest, measure_not_enough_size_should_wrap) {
}
TEST(YogaTest, measure_zero_space_should_grow) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetHeight(root, 200);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionColumn);
YGNodeStyleSetFlexGrow(root, 0);
int measureCount = 0;
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionColumn);
YGNodeStyleSetPadding(root_child0, YGEdgeAll, 100);
YGNodeSetContext(root_child0, &measureCount);
@@ -282,9 +282,9 @@ TEST(YogaTest, measure_zero_space_should_grow) {
}
TEST(YogaTest, measure_flex_direction_row_and_padding) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPadding(root, YGEdgeLeft, 25);
YGNodeStyleSetPadding(root, YGEdgeTop, 25);
@@ -293,11 +293,11 @@ TEST(YogaTest, measure_flex_direction_row_and_padding) {
YGNodeStyleSetWidth(root, 50);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 5);
YGNodeStyleSetHeight(root_child1, 5);
YGNodeInsertChild(root, root_child1, 1);
@@ -324,20 +324,20 @@ TEST(YogaTest, measure_flex_direction_row_and_padding) {
}
TEST(YogaTest, measure_flex_direction_column_and_padding) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root, YGEdgeTop, 20);
YGNodeStyleSetPadding(root, YGEdgeAll, 25);
YGNodeStyleSetWidth(root, 50);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text);
// YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 5);
YGNodeStyleSetHeight(root_child1, 5);
YGNodeInsertChild(root, root_child1, 1);
@@ -364,20 +364,20 @@ TEST(YogaTest, measure_flex_direction_column_and_padding) {
}
TEST(YogaTest, measure_flex_direction_row_no_padding) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetMargin(root, YGEdgeTop, 20);
YGNodeStyleSetWidth(root, 50);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
// YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text);
YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 5);
YGNodeStyleSetHeight(root_child1, 5);
YGNodeInsertChild(root, root_child1, 1);
@@ -404,20 +404,20 @@ TEST(YogaTest, measure_flex_direction_row_no_padding) {
}
TEST(YogaTest, measure_flex_direction_row_no_padding_align_items_flexstart) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetMargin(root, YGEdgeTop, 20);
YGNodeStyleSetWidth(root, 50);
YGNodeStyleSetHeight(root, 50);
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 5);
YGNodeStyleSetHeight(root_child1, 5);
YGNodeInsertChild(root, root_child1, 1);
@@ -444,21 +444,21 @@ TEST(YogaTest, measure_flex_direction_row_no_padding_align_items_flexstart) {
}
TEST(YogaTest, measure_with_fixed_size) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root, YGEdgeTop, 20);
YGNodeStyleSetPadding(root, YGEdgeAll, 25);
YGNodeStyleSetWidth(root, 50);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 5);
YGNodeStyleSetHeight(root_child1, 5);
YGNodeInsertChild(root, root_child1, 1);
@@ -485,20 +485,20 @@ TEST(YogaTest, measure_with_fixed_size) {
}
TEST(YogaTest, measure_with_flex_shrink) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root, YGEdgeTop, 20);
YGNodeStyleSetPadding(root, YGEdgeAll, 25);
YGNodeStyleSetWidth(root, 50);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 5);
YGNodeStyleSetHeight(root_child1, 5);
YGNodeInsertChild(root, root_child1, 1);
@@ -525,19 +525,19 @@ TEST(YogaTest, measure_with_flex_shrink) {
}
TEST(YogaTest, measure_no_padding) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root, YGEdgeTop, 20);
YGNodeStyleSetWidth(root, 50);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 5);
YGNodeStyleSetHeight(root_child1, 5);
YGNodeInsertChild(root, root_child1, 1);
@@ -565,10 +565,10 @@ TEST(YogaTest, measure_no_padding) {
#if GTEST_HAS_DEATH_TEST
TEST(YogaDeathTest, cannot_add_child_to_node_with_measure_func) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeSetMeasureFunc(root, _measure);
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
#if defined(__cpp_exceptions)
ASSERT_THROW(YGNodeInsertChild(root, root_child0, 0), std::logic_error);
#else // !defined(__cpp_exceptions)
@@ -579,8 +579,8 @@ TEST(YogaDeathTest, cannot_add_child_to_node_with_measure_func) {
}
TEST(YogaDeathTest, cannot_add_nonnull_measure_func_to_non_leaf_node) {
- const YGNodeRef root = YGNodeNew();
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeInsertChild(root, root_child0, 0);
#if defined(__cpp_exceptions)
ASSERT_THROW(YGNodeSetMeasureFunc(root, _measure), std::logic_error);
@@ -594,7 +594,7 @@ TEST(YogaDeathTest, cannot_add_nonnull_measure_func_to_non_leaf_node) {
#endif
TEST(YogaTest, can_nullify_measure_func_on_any_node) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeInsertChild(root, YGNodeNew(), 0);
YGNodeSetMeasureFunc(root, nullptr);
ASSERT_TRUE(!YGNodeHasMeasureFunc(root));
@@ -602,14 +602,14 @@ TEST(YogaTest, can_nullify_measure_func_on_any_node) {
}
TEST(YogaTest, cant_call_negative_measure) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionColumn);
YGNodeStyleSetWidth(root, 50);
YGNodeStyleSetHeight(root, 10);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeSetMeasureFunc(root_child0, _measure_assert_negative);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 20);
YGNodeInsertChild(root, root_child0, 0);
@@ -621,14 +621,14 @@ TEST(YogaTest, cant_call_negative_measure) {
}
TEST(YogaTest, cant_call_negative_measure_horizontal) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetWidth(root, 10);
YGNodeStyleSetHeight(root, 20);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeSetMeasureFunc(root_child0, _measure_assert_negative);
YGNodeStyleSetMargin(root_child0, YGEdgeStart, 20);
YGNodeInsertChild(root, root_child0, 0);
@@ -658,19 +658,19 @@ static YGSize _measure_100_100(
}
TEST(YogaTest, percent_with_text_node) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root, YGJustifySpaceBetween);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 80);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeSetMeasureFunc(root_child1, _measure_90_10);
YGNodeStyleSetMaxWidthPercent(root_child1, 50);
YGNodeStyleSetPaddingPercent(root_child1, YGEdgeTop, 50);
@@ -699,35 +699,35 @@ TEST(YogaTest, percent_with_text_node) {
}
TEST(YogaTest, percent_margin_with_measure_func) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 0);
YGNodeSetMeasureFunc(root_child0, _measure_100_100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 100);
YGNodeStyleSetHeight(root_child1, 100);
YGNodeStyleSetMargin(root_child1, YGEdgeTop, 100);
YGNodeSetMeasureFunc(root_child1, _measure_100_100);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 100);
YGNodeStyleSetHeight(root_child2, 100);
YGNodeStyleSetMarginPercent(root_child2, YGEdgeTop, 10);
YGNodeSetMeasureFunc(root_child2, _measure_100_100);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 100);
YGNodeStyleSetHeight(root_child3, 100);
YGNodeStyleSetMarginPercent(root_child3, YGEdgeTop, 20);
@@ -767,35 +767,35 @@ TEST(YogaTest, percent_margin_with_measure_func) {
}
TEST(YogaTest, percent_padding_with_measure_func) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetAlignContent(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeStyleSetPadding(root_child0, YGEdgeTop, 0);
YGNodeSetMeasureFunc(root_child0, _measure_100_100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 100);
YGNodeStyleSetHeight(root_child1, 100);
YGNodeStyleSetPadding(root_child1, YGEdgeTop, 100);
YGNodeSetMeasureFunc(root_child1, _measure_100_100);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetPaddingPercent(root_child2, YGEdgeTop, 10);
YGNodeSetMeasureFunc(root_child2, _measure_100_100);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetPaddingPercent(root_child3, YGEdgeTop, 20);
YGNodeSetMeasureFunc(root_child3, _measure_100_100);
YGNodeInsertChild(root, root_child3, 3);
@@ -833,36 +833,36 @@ TEST(YogaTest, percent_padding_with_measure_func) {
}
TEST(YogaTest, percent_padding_and_percent_margin_with_measure_func) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetAlignContent(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeStyleSetPadding(root_child0, YGEdgeTop, 0);
YGNodeSetMeasureFunc(root_child0, _measure_100_100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 100);
YGNodeStyleSetHeight(root_child1, 100);
YGNodeStyleSetPadding(root_child1, YGEdgeTop, 100);
YGNodeSetMeasureFunc(root_child1, _measure_100_100);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetPaddingPercent(root_child2, YGEdgeTop, 10);
YGNodeStyleSetMarginPercent(root_child2, YGEdgeTop, 10);
YGNodeSetMeasureFunc(root_child2, _measure_100_100);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetPaddingPercent(root_child3, YGEdgeTop, 20);
YGNodeStyleSetMarginPercent(root_child3, YGEdgeTop, 20);
YGNodeSetMeasureFunc(root_child3, _measure_100_100);
diff --git a/tests/YGNodeChildTest.cpp b/tests/YGNodeChildTest.cpp
index 39ed22db59..b61c1322fe 100644
--- a/tests/YGNodeChildTest.cpp
+++ b/tests/YGNodeChildTest.cpp
@@ -9,9 +9,9 @@
#include
TEST(YogaTest, reset_layout_when_child_removed) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
diff --git a/tests/YGPersistenceTest.cpp b/tests/YGPersistenceTest.cpp
index a34b6979ec..929aee07ec 100644
--- a/tests/YGPersistenceTest.cpp
+++ b/tests/YGPersistenceTest.cpp
@@ -15,18 +15,18 @@ using namespace facebook;
using facebook::yoga::test::TestUtil;
TEST(YogaTest, cloning_shared_root) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -46,7 +46,7 @@ TEST(YogaTest, cloning_shared_root) {
ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child1));
ASSERT_FLOAT_EQ(25, YGNodeLayoutGetHeight(root_child1));
- const YGNodeRef root2 = YGNodeClone(root);
+ YGNodeRef root2 = YGNodeClone(root);
YGNodeStyleSetWidth(root2, 100);
ASSERT_EQ(2u, YGNodeGetChildCount(root2));
@@ -67,8 +67,8 @@ TEST(YogaTest, cloning_shared_root) {
ASSERT_EQ(2u, YGNodeGetChildCount(root2));
// Relayout with changed input should result in cloned children.
- const YGNodeRef root2_child0 = YGNodeGetChild(root2, 0);
- const YGNodeRef root2_child1 = YGNodeGetChild(root2, 1);
+ YGNodeRef root2_child0 = YGNodeGetChild(root2, 0);
+ YGNodeRef root2_child1 = YGNodeGetChild(root2, 1);
ASSERT_NE(root_child0, root2_child0);
ASSERT_NE(root_child1, root2_child1);
@@ -112,33 +112,33 @@ TEST(YogaTest, cloning_shared_root) {
}
TEST(YogaTest, mutating_children_of_a_clone_clones_only_after_layout) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
ASSERT_EQ(0u, YGNodeGetChildCount(root));
- const YGNodeRef root2 = YGNodeClone(root);
+ YGNodeRef root2 = YGNodeClone(root);
ASSERT_EQ(0u, YGNodeGetChildCount(root2));
- const YGNodeRef root2_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root2_child0 = YGNodeNewWithConfig(config);
YGNodeInsertChild(root2, root2_child0, 0);
ASSERT_EQ(0u, YGNodeGetChildCount(root));
ASSERT_EQ(1u, YGNodeGetChildCount(root2));
- const YGNodeRef root3 = YGNodeClone(root2);
+ YGNodeRef root3 = YGNodeClone(root2);
ASSERT_EQ(1u, YGNodeGetChildCount(root2));
ASSERT_EQ(1u, YGNodeGetChildCount(root3));
ASSERT_EQ(YGNodeGetChild(root2, 0), YGNodeGetChild(root3, 0));
- const YGNodeRef root3_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root3_child1 = YGNodeNewWithConfig(config);
YGNodeInsertChild(root3, root3_child1, 1);
ASSERT_EQ(1u, YGNodeGetChildCount(root2));
ASSERT_EQ(2u, YGNodeGetChildCount(root3));
ASSERT_EQ(root3_child1, YGNodeGetChild(root3, 1));
ASSERT_EQ(YGNodeGetChild(root2, 0), YGNodeGetChild(root3, 0));
- const YGNodeRef root4 = YGNodeClone(root3);
+ YGNodeRef root4 = YGNodeClone(root3);
ASSERT_EQ(root3_child1, YGNodeGetChild(root4, 1));
YGNodeRemoveChild(root4, root3_child1);
@@ -160,27 +160,27 @@ TEST(YogaTest, mutating_children_of_a_clone_clones_only_after_layout) {
}
TEST(YogaTest, cloning_two_levels) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 15);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexBasis(root_child1_0, 10);
YGNodeStyleSetFlexGrow(root_child1_0, 1);
YGNodeInsertChild(root_child1, root_child1_0, 0);
- const YGNodeRef root_child1_1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexBasis(root_child1_1, 25);
YGNodeInsertChild(root_child1, root_child1_1, 1);
@@ -191,9 +191,9 @@ TEST(YogaTest, cloning_two_levels) {
ASSERT_FLOAT_EQ(35, YGNodeLayoutGetHeight(root_child1_0));
ASSERT_FLOAT_EQ(25, YGNodeLayoutGetHeight(root_child1_1));
- const YGNodeRef root2_child0 = YGNodeClone(root_child0);
- const YGNodeRef root2_child1 = YGNodeClone(root_child1);
- const YGNodeRef root2 = YGNodeClone(root);
+ YGNodeRef root2_child0 = YGNodeClone(root_child0);
+ YGNodeRef root2_child1 = YGNodeClone(root_child1);
+ YGNodeRef root2 = YGNodeClone(root);
YGNodeStyleSetFlexGrow(root2_child0, 0);
YGNodeStyleSetFlexBasis(root2_child0, 40);
@@ -228,19 +228,19 @@ TEST(YogaTest, cloning_two_levels) {
TEST(YogaTest, cloning_and_freeing) {
TestUtil::startCountingNodes();
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
- const YGNodeRef root2 = YGNodeClone(root);
+ YGNodeRef root2 = YGNodeClone(root);
// Freeing the original root should be safe as long as we don't free its
// children.
diff --git a/tests/YGRelayoutTest.cpp b/tests/YGRelayoutTest.cpp
index cb60a3d26c..b470fc3656 100644
--- a/tests/YGRelayoutTest.cpp
+++ b/tests/YGRelayoutTest.cpp
@@ -9,15 +9,15 @@
#include
TEST(YogaTest, dont_cache_computed_flex_basis_between_layouts) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
YGConfigSetExperimentalFeatureEnabled(
config, YGExperimentalFeatureWebFlexBasis, true);
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetHeightPercent(root, 100);
YGNodeStyleSetWidthPercent(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexBasisPercent(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
@@ -32,9 +32,9 @@ TEST(YogaTest, dont_cache_computed_flex_basis_between_layouts) {
}
TEST(YogaTest, recalculate_resolvedDimonsion_onchange) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
- const YGNodeRef root_child0 = YGNodeNew();
+ YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetMinHeight(root_child0, 10);
YGNodeStyleSetMaxHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
@@ -51,12 +51,12 @@ TEST(YogaTest, recalculate_resolvedDimonsion_onchange) {
}
TEST(YogaTest, relayout_containing_block_size_changes) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeRelative);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 4);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
@@ -74,7 +74,7 @@ TEST(YogaTest, relayout_containing_block_size_changes) {
YGNodeStyleSetHeight(root_child0, 500);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 8);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeTop, 6);
@@ -92,7 +92,7 @@ TEST(YogaTest, relayout_containing_block_size_changes) {
YGNodeStyleSetHeight(root_child0_child0, 200);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeLeft, 2);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeRight, 12);
@@ -207,3 +207,43 @@ TEST(YogaTest, relayout_containing_block_size_changes) {
YGConfigFree(config);
}
+
+TEST(YogaTest, has_new_layout_flag_set_static) {
+ YGNodeRef root = YGNodeNew();
+ YGNodeStyleSetWidth(root, 100);
+ YGNodeStyleSetHeight(root, 100);
+
+ YGNodeRef root_child0 = YGNodeNew();
+ YGNodeStyleSetPositionType(root_child0, YGPositionTypeStatic);
+ YGNodeStyleSetWidth(root_child0, 10);
+ YGNodeStyleSetHeight(root_child0, 10);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child0_child0 = YGNodeNew();
+ YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
+ YGNodeStyleSetWidth(root_child0_child0, 5);
+ YGNodeStyleSetHeight(root_child0_child0, 5);
+ YGNodeInsertChild(root_child0, root_child0_child0, 0);
+
+ YGNodeRef root_child0_child0_child0 = YGNodeNew();
+ YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidthPercent(root_child0_child0_child0, 1);
+ YGNodeStyleSetHeight(root_child0_child0_child0, 1);
+ YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+ YGNodeSetHasNewLayout(root, false);
+ YGNodeSetHasNewLayout(root_child0, false);
+ YGNodeSetHasNewLayout(root_child0_child0, false);
+ YGNodeSetHasNewLayout(root_child0_child0_child0, false);
+
+ YGNodeStyleSetWidth(root, 110);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_TRUE(YGNodeGetHasNewLayout(root));
+ ASSERT_TRUE(YGNodeGetHasNewLayout(root_child0));
+ ASSERT_TRUE(YGNodeGetHasNewLayout(root_child0_child0));
+ ASSERT_TRUE(YGNodeGetHasNewLayout(root_child0_child0_child0));
+
+ YGNodeFreeRecursive(root);
+}
diff --git a/tests/YGRoundingFunctionTest.cpp b/tests/YGRoundingFunctionTest.cpp
index 9639a92088..b49d064463 100644
--- a/tests/YGRoundingFunctionTest.cpp
+++ b/tests/YGRoundingFunctionTest.cpp
@@ -52,18 +52,18 @@ static YGSize measureText(
// Regression test for https://github.com/facebook/yoga/issues/824
TEST(YogaTest, consistent_rounding_during_repeated_layouts) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
YGConfigSetPointScaleFactor(config, 2);
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root, YGEdgeTop, -1.49f);
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef node0 = YGNodeNewWithConfig(config);
+ YGNodeRef node0 = YGNodeNewWithConfig(config);
YGNodeInsertChild(root, node0, 0);
- const YGNodeRef node1 = YGNodeNewWithConfig(config);
+ YGNodeRef node1 = YGNodeNewWithConfig(config);
YGNodeSetMeasureFunc(node1, measureText);
YGNodeInsertChild(node0, node1, 0);
@@ -81,25 +81,25 @@ TEST(YogaTest, consistent_rounding_during_repeated_layouts) {
}
TEST(YogaTest, per_node_point_scale_factor) {
- const YGConfigRef config1 = YGConfigNew();
+ YGConfigRef config1 = YGConfigNew();
YGConfigSetPointScaleFactor(config1, 2);
- const YGConfigRef config2 = YGConfigNew();
+ YGConfigRef config2 = YGConfigNew();
YGConfigSetPointScaleFactor(config2, 1);
- const YGConfigRef config3 = YGConfigNew();
+ YGConfigRef config3 = YGConfigNew();
YGConfigSetPointScaleFactor(config3, 0.5f);
- const YGNodeRef root = YGNodeNewWithConfig(config1);
+ YGNodeRef root = YGNodeNewWithConfig(config1);
YGNodeStyleSetWidth(root, 11.5);
YGNodeStyleSetHeight(root, 11.5);
- const YGNodeRef node0 = YGNodeNewWithConfig(config2);
+ YGNodeRef node0 = YGNodeNewWithConfig(config2);
YGNodeStyleSetWidth(node0, 9.5);
YGNodeStyleSetHeight(node0, 9.5);
YGNodeInsertChild(root, node0, 0);
- const YGNodeRef node1 = YGNodeNewWithConfig(config3);
+ YGNodeRef node1 = YGNodeNewWithConfig(config3);
YGNodeStyleSetWidth(node1, 7);
YGNodeStyleSetHeight(node1, 7);
YGNodeInsertChild(node0, node1, 0);
diff --git a/tests/YGRoundingMeasureFuncTest.cpp b/tests/YGRoundingMeasureFuncTest.cpp
index d10aa404b4..c654a280ec 100644
--- a/tests/YGRoundingMeasureFuncTest.cpp
+++ b/tests/YGRoundingMeasureFuncTest.cpp
@@ -45,10 +45,10 @@ static YGSize _measureFractial(
}
TEST(YogaTest, rounding_feature_with_custom_measure_func_floor) {
- const YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGConfigRef config = YGConfigNew();
+ YGNodeRef root = YGNodeNewWithConfig(config);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeSetMeasureFunc(root_child0, _measureFloor);
YGNodeInsertChild(root, root_child0, 0);
@@ -93,10 +93,10 @@ TEST(YogaTest, rounding_feature_with_custom_measure_func_floor) {
}
TEST(YogaTest, rounding_feature_with_custom_measure_func_ceil) {
- const YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGConfigRef config = YGConfigNew();
+ YGNodeRef root = YGNodeNewWithConfig(config);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeSetMeasureFunc(root_child0, _measureCeil);
YGNodeInsertChild(root, root_child0, 0);
@@ -115,11 +115,11 @@ TEST(YogaTest, rounding_feature_with_custom_measure_func_ceil) {
TEST(
YogaTest,
rounding_feature_with_custom_measure_and_fractial_matching_scale) {
- const YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGConfigRef config = YGConfigNew();
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPosition(root_child0, YGEdgeLeft, 73.625);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeRelative);
YGNodeSetMeasureFunc(root_child0, _measureFractial);
diff --git a/tests/YGScaleChangeTest.cpp b/tests/YGScaleChangeTest.cpp
new file mode 100644
index 0000000000..11de9c079c
--- /dev/null
+++ b/tests/YGScaleChangeTest.cpp
@@ -0,0 +1,176 @@
+/*
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+#include
+#include
+
+TEST(YogaTest, scale_change_invalidates_layout) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGConfigSetPointScaleFactor(config, 1.0f);
+
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetWidth(root, 50);
+ YGNodeStyleSetHeight(root, 50);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexGrow(root_child0, 1);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexGrow(root_child1, 1);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(25, YGNodeLayoutGetLeft(root_child1));
+
+ YGConfigSetPointScaleFactor(config, 1.5f);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ // Left should change due to pixel alignment of new scale factor
+ ASSERT_FLOAT_EQ(25.333334f, YGNodeLayoutGetLeft(root_child1));
+
+ YGNodeFreeRecursive(root);
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, errata_config_change_relayout) {
+ YGConfig* config = YGConfigNew();
+ YGConfigSetErrata(config, YGErrataStretchFlexBasis);
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root, 500);
+ YGNodeStyleSetHeight(root, 500);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetAlignItems(root_child0, YGAlignFlexStart);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexGrow(root_child0_child0, 1);
+ YGNodeStyleSetFlexShrink(root_child0_child0, 1);
+ YGNodeInsertChild(root_child0, root_child0_child0, 0);
+
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexGrow(root_child0_child0_child0, 1);
+ YGNodeStyleSetFlexShrink(root_child0_child0_child0, 1);
+ YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(500, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(500, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(500, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(500, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetWidth(root_child0_child0));
+ ASSERT_FLOAT_EQ(500, YGNodeLayoutGetHeight(root_child0_child0));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0_child0_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0_child0_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetWidth(root_child0_child0_child0));
+ ASSERT_FLOAT_EQ(500, YGNodeLayoutGetHeight(root_child0_child0_child0));
+
+ YGConfigSetErrata(config, YGErrataNone);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(500, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(500, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(500, YGNodeLayoutGetWidth(root_child0));
+ // This should be modified by the lack of the errata
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetWidth(root_child0_child0));
+ // This should be modified by the lack of the errata
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetHeight(root_child0_child0));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0_child0_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0_child0_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetWidth(root_child0_child0_child0));
+ // This should be modified by the lack of the errata
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetHeight(root_child0_child0_child0));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, setting_compatible_config_maintains_layout_cache) {
+ static uint32_t measureCallCount = 0;
+ auto measureCustom = [](YGNodeConstRef /*node*/,
+ float /*width*/,
+ YGMeasureMode /*widthMode*/,
+ float /*height*/,
+ YGMeasureMode /*heightMode*/) {
+ measureCallCount++;
+ return YGSize{
+ .width = 25.0f,
+ .height = 25.0f,
+ };
+ };
+
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGConfigSetPointScaleFactor(config, 1.0f);
+
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetWidth(root, 50);
+ YGNodeStyleSetHeight(root, 50);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ EXPECT_EQ(0, measureCallCount);
+
+ YGNodeSetMeasureFunc(root_child0, measureCustom);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexGrow(root_child1, 1);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+ EXPECT_EQ(1, measureCallCount);
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(25, YGNodeLayoutGetLeft(root_child1));
+
+ YGConfigRef config2 = YGConfigNew();
+ // Calling YGConfigSetPointScaleFactor multiple times, ensures that config2
+ // gets a different config version that config1
+ YGConfigSetPointScaleFactor(config2, 1.0f);
+ YGConfigSetPointScaleFactor(config2, 1.5f);
+ YGConfigSetPointScaleFactor(config2, 1.0f);
+
+ YGNodeSetConfig(root, config2);
+ YGNodeSetConfig(root_child0, config2);
+ YGNodeSetConfig(root_child1, config2);
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ // Measure should not be called again, as layout should have been cached since
+ // config is functionally the same as before
+ EXPECT_EQ(1, measureCallCount);
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(25, YGNodeLayoutGetLeft(root_child1));
+
+ YGNodeFreeRecursive(root);
+ YGConfigFree(config);
+ YGConfigFree(config2);
+}
diff --git a/tests/YGStyleTest.cpp b/tests/YGStyleTest.cpp
index 5651dc31b3..afeb0d3f75 100644
--- a/tests/YGStyleTest.cpp
+++ b/tests/YGStyleTest.cpp
@@ -9,29 +9,25 @@
#include
TEST(YogaTest, copy_style_same) {
- const YGNodeRef node0 = YGNodeNew();
- const YGNodeRef node1 = YGNodeNew();
- ASSERT_FALSE(YGNodeIsDirty(node0));
+ YGNodeRef node0 = YGNodeNew();
+ YGNodeRef node1 = YGNodeNew();
YGNodeCopyStyle(node0, node1);
- ASSERT_FALSE(YGNodeIsDirty(node0));
YGNodeFree(node0);
YGNodeFree(node1);
}
TEST(YogaTest, copy_style_modified) {
- const YGNodeRef node0 = YGNodeNew();
- ASSERT_FALSE(YGNodeIsDirty(node0));
+ YGNodeRef node0 = YGNodeNew();
ASSERT_EQ(YGFlexDirectionColumn, YGNodeStyleGetFlexDirection(node0));
ASSERT_FALSE(YGNodeStyleGetMaxHeight(node0).unit != YGUnitUndefined);
- const YGNodeRef node1 = YGNodeNew();
+ YGNodeRef node1 = YGNodeNew();
YGNodeStyleSetFlexDirection(node1, YGFlexDirectionRow);
YGNodeStyleSetMaxHeight(node1, 10);
YGNodeCopyStyle(node0, node1);
- ASSERT_TRUE(YGNodeIsDirty(node0));
ASSERT_EQ(YGFlexDirectionRow, YGNodeStyleGetFlexDirection(node0));
ASSERT_FLOAT_EQ(10, YGNodeStyleGetMaxHeight(node0).value);
@@ -40,25 +36,23 @@ TEST(YogaTest, copy_style_modified) {
}
TEST(YogaTest, copy_style_modified_same) {
- const YGNodeRef node0 = YGNodeNew();
+ YGNodeRef node0 = YGNodeNew();
YGNodeStyleSetFlexDirection(node0, YGFlexDirectionRow);
YGNodeStyleSetMaxHeight(node0, 10);
YGNodeCalculateLayout(node0, YGUndefined, YGUndefined, YGDirectionLTR);
- ASSERT_FALSE(YGNodeIsDirty(node0));
- const YGNodeRef node1 = YGNodeNew();
+ YGNodeRef node1 = YGNodeNew();
YGNodeStyleSetFlexDirection(node1, YGFlexDirectionRow);
YGNodeStyleSetMaxHeight(node1, 10);
YGNodeCopyStyle(node0, node1);
- ASSERT_FALSE(YGNodeIsDirty(node0));
YGNodeFree(node0);
YGNodeFree(node1);
}
TEST(YogaTest, initialise_flexShrink_flexGrow) {
- const YGNodeRef node0 = YGNodeNew();
+ YGNodeRef node0 = YGNodeNew();
YGNodeStyleSetFlexShrink(node0, 1);
ASSERT_EQ(1, YGNodeStyleGetFlexShrink(node0));
diff --git a/tests/YGZeroOutLayoutRecursivelyTest.cpp b/tests/YGZeroOutLayoutRecursivelyTest.cpp
index 70ec3f9398..2f2789a54e 100644
--- a/tests/YGZeroOutLayoutRecursivelyTest.cpp
+++ b/tests/YGZeroOutLayoutRecursivelyTest.cpp
@@ -9,12 +9,12 @@
#include
TEST(YogaTest, zero_out_layout) {
- const YGNodeRef root = YGNodeNew();
+ YGNodeRef root = YGNodeNew();
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef child = YGNodeNew();
+ YGNodeRef child = YGNodeNew();
YGNodeInsertChild(root, child, 0);
YGNodeStyleSetWidth(child, 100);
YGNodeStyleSetHeight(child, 100);
diff --git a/tests/generated/YGAbsolutePositionTest.cpp b/tests/generated/YGAbsolutePositionTest.cpp
index 740dc26660..1cf21edb0e 100644
--- a/tests/generated/YGAbsolutePositionTest.cpp
+++ b/tests/generated/YGAbsolutePositionTest.cpp
@@ -5,22 +5,23 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<<43fe6d73966bf8e4694c57420a0fb9d9>>
+ * @generated SignedSource<<425ef3591b2f5cf0bc6d9daa9c5db96c>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAbsolutePositionTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, absolute_layout_width_height_start_top) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0, YGEdgeStart, 10);
YGNodeStyleSetPosition(root_child0, YGEdgeTop, 10);
@@ -57,14 +58,14 @@ TEST(YogaTest, absolute_layout_width_height_start_top) {
}
TEST(YogaTest, absolute_layout_width_height_end_bottom) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0, YGEdgeEnd, 10);
YGNodeStyleSetPosition(root_child0, YGEdgeBottom, 10);
@@ -101,14 +102,14 @@ TEST(YogaTest, absolute_layout_width_height_end_bottom) {
}
TEST(YogaTest, absolute_layout_start_top_end_bottom) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0, YGEdgeStart, 10);
YGNodeStyleSetPosition(root_child0, YGEdgeTop, 10);
@@ -145,14 +146,14 @@ TEST(YogaTest, absolute_layout_start_top_end_bottom) {
}
TEST(YogaTest, absolute_layout_width_height_start_top_end_bottom) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0, YGEdgeStart, 10);
YGNodeStyleSetPosition(root_child0, YGEdgeTop, 10);
@@ -191,22 +192,22 @@ TEST(YogaTest, absolute_layout_width_height_start_top_end_bottom) {
}
TEST(YogaTest, do_not_clamp_height_of_absolute_node_to_height_of_its_overflow_hidden_parent) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetOverflow(root, YGOverflowHidden);
YGNodeStyleSetWidth(root, 50);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0, YGEdgeStart, 0);
YGNodeStyleSetPosition(root_child0, YGEdgeTop, 0);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
@@ -250,9 +251,9 @@ TEST(YogaTest, do_not_clamp_height_of_absolute_node_to_height_of_its_overflow_hi
}
TEST(YogaTest, absolute_layout_within_border) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root, YGEdgeLeft, 10);
YGNodeStyleSetMargin(root, YGEdgeTop, 10);
@@ -269,7 +270,7 @@ TEST(YogaTest, absolute_layout_within_border) {
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0, YGEdgeLeft, 0);
YGNodeStyleSetPosition(root_child0, YGEdgeTop, 0);
@@ -277,7 +278,7 @@ TEST(YogaTest, absolute_layout_within_border) {
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child1, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child1, YGEdgeRight, 0);
YGNodeStyleSetPosition(root_child1, YGEdgeBottom, 0);
@@ -285,7 +286,7 @@ TEST(YogaTest, absolute_layout_within_border) {
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child2, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child2, YGEdgeLeft, 0);
YGNodeStyleSetPosition(root_child2, YGEdgeTop, 0);
@@ -297,7 +298,7 @@ TEST(YogaTest, absolute_layout_within_border) {
YGNodeStyleSetHeight(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child3, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child3, YGEdgeRight, 0);
YGNodeStyleSetPosition(root_child3, YGEdgeBottom, 0);
@@ -368,9 +369,9 @@ TEST(YogaTest, absolute_layout_within_border) {
}
TEST(YogaTest, absolute_layout_align_items_and_justify_content_center) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -378,7 +379,7 @@ TEST(YogaTest, absolute_layout_align_items_and_justify_content_center) {
YGNodeStyleSetWidth(root, 110);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0, 60);
YGNodeStyleSetHeight(root_child0, 40);
@@ -413,9 +414,9 @@ TEST(YogaTest, absolute_layout_align_items_and_justify_content_center) {
}
TEST(YogaTest, absolute_layout_align_items_and_justify_content_flex_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyFlexEnd);
YGNodeStyleSetAlignItems(root, YGAlignFlexEnd);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -423,7 +424,7 @@ TEST(YogaTest, absolute_layout_align_items_and_justify_content_flex_end) {
YGNodeStyleSetWidth(root, 110);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0, 60);
YGNodeStyleSetHeight(root_child0, 40);
@@ -458,16 +459,16 @@ TEST(YogaTest, absolute_layout_align_items_and_justify_content_flex_end) {
}
TEST(YogaTest, absolute_layout_justify_content_center) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexGrow(root, 1);
YGNodeStyleSetWidth(root, 110);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0, 60);
YGNodeStyleSetHeight(root_child0, 40);
@@ -502,16 +503,16 @@ TEST(YogaTest, absolute_layout_justify_content_center) {
}
TEST(YogaTest, absolute_layout_align_items_center) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexGrow(root, 1);
YGNodeStyleSetWidth(root, 110);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0, 60);
YGNodeStyleSetHeight(root_child0, 40);
@@ -546,15 +547,15 @@ TEST(YogaTest, absolute_layout_align_items_center) {
}
TEST(YogaTest, absolute_layout_align_items_center_on_child_only) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexGrow(root, 1);
YGNodeStyleSetWidth(root, 110);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignSelf(root_child0, YGAlignCenter);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0, 60);
@@ -590,9 +591,9 @@ TEST(YogaTest, absolute_layout_align_items_center_on_child_only) {
}
TEST(YogaTest, absolute_layout_align_items_and_justify_content_center_and_top_position) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -600,7 +601,7 @@ TEST(YogaTest, absolute_layout_align_items_and_justify_content_center_and_top_po
YGNodeStyleSetWidth(root, 110);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0, YGEdgeTop, 10);
YGNodeStyleSetWidth(root_child0, 60);
@@ -636,9 +637,9 @@ TEST(YogaTest, absolute_layout_align_items_and_justify_content_center_and_top_po
}
TEST(YogaTest, absolute_layout_align_items_and_justify_content_center_and_bottom_position) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -646,7 +647,7 @@ TEST(YogaTest, absolute_layout_align_items_and_justify_content_center_and_bottom
YGNodeStyleSetWidth(root, 110);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0, YGEdgeBottom, 10);
YGNodeStyleSetWidth(root_child0, 60);
@@ -682,9 +683,9 @@ TEST(YogaTest, absolute_layout_align_items_and_justify_content_center_and_bottom
}
TEST(YogaTest, absolute_layout_align_items_and_justify_content_center_and_left_position) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -692,7 +693,7 @@ TEST(YogaTest, absolute_layout_align_items_and_justify_content_center_and_left_p
YGNodeStyleSetWidth(root, 110);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0, YGEdgeLeft, 5);
YGNodeStyleSetWidth(root_child0, 60);
@@ -728,9 +729,9 @@ TEST(YogaTest, absolute_layout_align_items_and_justify_content_center_and_left_p
}
TEST(YogaTest, absolute_layout_align_items_and_justify_content_center_and_right_position) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -738,7 +739,7 @@ TEST(YogaTest, absolute_layout_align_items_and_justify_content_center_and_right_
YGNodeStyleSetWidth(root, 110);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0, YGEdgeRight, 5);
YGNodeStyleSetWidth(root_child0, 60);
@@ -774,9 +775,9 @@ TEST(YogaTest, absolute_layout_align_items_and_justify_content_center_and_right_
}
TEST(YogaTest, position_root_with_rtl_should_position_withoutdirection) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root, YGEdgeLeft, 72);
YGNodeStyleSetWidth(root, 52);
@@ -801,28 +802,28 @@ TEST(YogaTest, position_root_with_rtl_should_position_withoutdirection) {
}
TEST(YogaTest, absolute_layout_percentage_bottom_based_on_parent_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPositionPercent(root_child0, YGEdgeTop, 50);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child1, YGPositionTypeAbsolute);
YGNodeStyleSetPositionPercent(root_child1, YGEdgeBottom, 50);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child2, YGPositionTypeAbsolute);
YGNodeStyleSetPositionPercent(root_child2, YGEdgeTop, 10);
YGNodeStyleSetPositionPercent(root_child2, YGEdgeBottom, 10);
@@ -878,15 +879,15 @@ TEST(YogaTest, absolute_layout_percentage_bottom_based_on_parent_height) {
}
TEST(YogaTest, absolute_layout_in_wrap_reverse_column_container) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrapReverse);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeStyleSetHeight(root_child0, 20);
@@ -921,16 +922,16 @@ TEST(YogaTest, absolute_layout_in_wrap_reverse_column_container) {
}
TEST(YogaTest, absolute_layout_in_wrap_reverse_row_container) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrapReverse);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeStyleSetHeight(root_child0, 20);
@@ -965,15 +966,15 @@ TEST(YogaTest, absolute_layout_in_wrap_reverse_row_container) {
}
TEST(YogaTest, absolute_layout_in_wrap_reverse_column_container_flex_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrapReverse);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignSelf(root_child0, YGAlignFlexEnd);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0, 20);
@@ -1009,16 +1010,16 @@ TEST(YogaTest, absolute_layout_in_wrap_reverse_column_container_flex_end) {
}
TEST(YogaTest, absolute_layout_in_wrap_reverse_row_container_flex_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrapReverse);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignSelf(root_child0, YGAlignFlexEnd);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0, 20);
@@ -1054,17 +1055,17 @@ TEST(YogaTest, absolute_layout_in_wrap_reverse_row_container_flex_end) {
}
TEST(YogaTest, percent_absolute_position_infinite_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 300);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 300);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child1, YGPositionTypeAbsolute);
YGNodeStyleSetPositionPercent(root_child1, YGEdgeLeft, 20);
YGNodeStyleSetPositionPercent(root_child1, YGEdgeTop, 20);
@@ -1111,16 +1112,16 @@ TEST(YogaTest, percent_absolute_position_infinite_height) {
}
TEST(YogaTest, absolute_layout_percentage_height_based_on_padded_parent) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeTop, 10);
YGNodeStyleSetBorder(root, YGEdgeTop, 10);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeightPercent(root_child0, 50);
@@ -1155,9 +1156,9 @@ TEST(YogaTest, absolute_layout_percentage_height_based_on_padded_parent) {
}
TEST(YogaTest, absolute_layout_percentage_height_based_on_padded_parent_and_align_items_center) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPadding(root, YGEdgeTop, 20);
@@ -1165,7 +1166,7 @@ TEST(YogaTest, absolute_layout_percentage_height_based_on_padded_parent_and_alig
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeightPercent(root_child0, 50);
@@ -1200,15 +1201,15 @@ TEST(YogaTest, absolute_layout_percentage_height_based_on_padded_parent_and_alig
}
TEST(YogaTest, absolute_layout_padding_left) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeLeft, 100);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
@@ -1243,15 +1244,15 @@ TEST(YogaTest, absolute_layout_padding_left) {
}
TEST(YogaTest, absolute_layout_padding_right) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeRight, 100);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
@@ -1286,15 +1287,15 @@ TEST(YogaTest, absolute_layout_padding_right) {
}
TEST(YogaTest, absolute_layout_padding_top) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeTop, 100);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
@@ -1329,15 +1330,15 @@ TEST(YogaTest, absolute_layout_padding_top) {
}
TEST(YogaTest, absolute_layout_padding_bottom) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeBottom, 100);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
@@ -1371,16 +1372,174 @@ TEST(YogaTest, absolute_layout_padding_bottom) {
YGConfigFree(config);
}
+TEST(YogaTest, absolute_layout_padding) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 10);
+ YGNodeStyleSetMargin(root_child0, YGEdgeTop, 10);
+ YGNodeStyleSetMargin(root_child0, YGEdgeRight, 10);
+ YGNodeStyleSetMargin(root_child0, YGEdgeBottom, 10);
+ YGNodeStyleSetWidth(root_child0, 200);
+ YGNodeStyleSetHeight(root_child0, 200);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
+ YGNodeStyleSetPadding(root_child0_child0, YGEdgeLeft, 50);
+ YGNodeStyleSetPadding(root_child0_child0, YGEdgeTop, 50);
+ YGNodeStyleSetPadding(root_child0_child0, YGEdgeRight, 50);
+ YGNodeStyleSetPadding(root_child0_child0, YGEdgeBottom, 50);
+ YGNodeStyleSetWidth(root_child0_child0, 200);
+ YGNodeStyleSetHeight(root_child0_child0, 200);
+ YGNodeInsertChild(root_child0, root_child0_child0, 0);
+
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root_child0_child0_child0, 50);
+ YGNodeStyleSetHeight(root_child0_child0_child0, 50);
+ YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(220, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(220, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0_child0));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetWidth(root_child0_child0));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetHeight(root_child0_child0));
+
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetLeft(root_child0_child0_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetTop(root_child0_child0_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0_child0_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetHeight(root_child0_child0_child0));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(220, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(220, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0_child0));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetWidth(root_child0_child0));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetHeight(root_child0_child0));
+
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetLeft(root_child0_child0_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetTop(root_child0_child0_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0_child0_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetHeight(root_child0_child0_child0));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, absolute_layout_border) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 10);
+ YGNodeStyleSetMargin(root_child0, YGEdgeTop, 10);
+ YGNodeStyleSetMargin(root_child0, YGEdgeRight, 10);
+ YGNodeStyleSetMargin(root_child0, YGEdgeBottom, 10);
+ YGNodeStyleSetWidth(root_child0, 200);
+ YGNodeStyleSetHeight(root_child0, 200);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
+ YGNodeStyleSetBorder(root_child0_child0, YGEdgeLeft, 10);
+ YGNodeStyleSetBorder(root_child0_child0, YGEdgeTop, 10);
+ YGNodeStyleSetBorder(root_child0_child0, YGEdgeRight, 10);
+ YGNodeStyleSetBorder(root_child0_child0, YGEdgeBottom, 10);
+ YGNodeStyleSetWidth(root_child0_child0, 200);
+ YGNodeStyleSetHeight(root_child0_child0, 200);
+ YGNodeInsertChild(root_child0, root_child0_child0, 0);
+
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root_child0_child0_child0, 50);
+ YGNodeStyleSetHeight(root_child0_child0_child0, 50);
+ YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(220, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(220, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0_child0));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetWidth(root_child0_child0));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetHeight(root_child0_child0));
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root_child0_child0_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child0_child0_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0_child0_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetHeight(root_child0_child0_child0));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(220, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(220, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0_child0));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetWidth(root_child0_child0));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetHeight(root_child0_child0));
+
+ ASSERT_FLOAT_EQ(140, YGNodeLayoutGetLeft(root_child0_child0_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child0_child0_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0_child0_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetHeight(root_child0_child0_child0));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
TEST(YogaTest, absolute_layout_column_reverse_margin_border) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionColumnReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0, YGEdgeLeft, 5);
YGNodeStyleSetPosition(root_child0, YGEdgeRight, 3);
diff --git a/tests/generated/YGAlignContentTest.cpp b/tests/generated/YGAlignContentTest.cpp
index 92170b1a67..4c3acdaf6c 100644
--- a/tests/generated/YGAlignContentTest.cpp
+++ b/tests/generated/YGAlignContentTest.cpp
@@ -5,28 +5,29 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<<460f0841a9a42c1bfab47b91c2acfe31>>
+ * @generated SignedSource<<37e5721da82615c5e6543420f2bfc792>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAlignContentTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, align_content_flex_start_nowrap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
@@ -70,36 +71,36 @@ TEST(YogaTest, align_content_flex_start_nowrap) {
}
TEST(YogaTest, align_content_flex_start_wrap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeStyleSetHeight(root_child3, 10);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeStyleSetHeight(root_child4, 10);
YGNodeInsertChild(root, root_child4, 4);
@@ -173,21 +174,21 @@ TEST(YogaTest, align_content_flex_start_wrap) {
}
TEST(YogaTest, align_content_flex_start_wrap_singleline) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
@@ -231,9 +232,9 @@ TEST(YogaTest, align_content_flex_start_wrap_singleline) {
}
TEST(YogaTest, align_content_flex_start_wrapped_negative_space) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 60);
YGNodeStyleSetBorder(root, YGEdgeTop, 60);
@@ -242,24 +243,24 @@ TEST(YogaTest, align_content_flex_start_wrapped_negative_space) {
YGNodeStyleSetWidth(root, 320);
YGNodeStyleSetHeight(root, 320);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root_child0, YGJustifyCenter);
YGNodeStyleSetFlexWrap(root_child0, YGWrapWrap);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0, 80);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child1, 80);
YGNodeStyleSetHeight(root_child0_child1, 20);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child2, 80);
YGNodeStyleSetHeight(root_child0_child2, 20);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
@@ -323,9 +324,9 @@ TEST(YogaTest, align_content_flex_start_wrapped_negative_space) {
}
TEST(YogaTest, align_content_flex_start_wrapped_negative_space_gap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 60);
YGNodeStyleSetBorder(root, YGEdgeTop, 60);
@@ -334,7 +335,7 @@ TEST(YogaTest, align_content_flex_start_wrapped_negative_space_gap) {
YGNodeStyleSetWidth(root, 320);
YGNodeStyleSetHeight(root, 320);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root_child0, YGJustifyCenter);
YGNodeStyleSetFlexWrap(root_child0, YGWrapWrap);
@@ -343,17 +344,17 @@ TEST(YogaTest, align_content_flex_start_wrapped_negative_space_gap) {
YGNodeStyleSetGap(root_child0, YGGutterRow, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0, 80);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child1, 80);
YGNodeStyleSetHeight(root_child0_child1, 20);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child2, 80);
YGNodeStyleSetHeight(root_child0_child2, 20);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
@@ -417,33 +418,33 @@ TEST(YogaTest, align_content_flex_start_wrapped_negative_space_gap) {
}
TEST(YogaTest, align_content_flex_start_without_height_on_children) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeStyleSetHeight(root_child3, 10);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -516,39 +517,39 @@ TEST(YogaTest, align_content_flex_start_without_height_on_children) {
}
TEST(YogaTest, align_content_flex_start_with_flex) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 0);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetFlexBasisPercent(root_child1, 0);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child3, 1);
YGNodeStyleSetFlexShrink(root_child3, 1);
YGNodeStyleSetFlexBasisPercent(root_child3, 0);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -621,21 +622,21 @@ TEST(YogaTest, align_content_flex_start_with_flex) {
}
TEST(YogaTest, align_content_flex_end_nowrap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignFlexEnd);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
@@ -679,9 +680,9 @@ TEST(YogaTest, align_content_flex_end_nowrap) {
}
TEST(YogaTest, align_content_flex_end_wrap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignFlexEnd);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -689,27 +690,27 @@ TEST(YogaTest, align_content_flex_end_wrap) {
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeStyleSetHeight(root_child3, 10);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeStyleSetHeight(root_child4, 10);
YGNodeInsertChild(root, root_child4, 4);
@@ -783,9 +784,9 @@ TEST(YogaTest, align_content_flex_end_wrap) {
}
TEST(YogaTest, align_content_flex_end_wrap_singleline) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignFlexEnd);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -793,12 +794,12 @@ TEST(YogaTest, align_content_flex_end_wrap_singleline) {
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
@@ -842,9 +843,9 @@ TEST(YogaTest, align_content_flex_end_wrap_singleline) {
}
TEST(YogaTest, align_content_flex_end_wrapped_negative_space) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 60);
YGNodeStyleSetBorder(root, YGEdgeTop, 60);
@@ -853,7 +854,7 @@ TEST(YogaTest, align_content_flex_end_wrapped_negative_space) {
YGNodeStyleSetWidth(root, 320);
YGNodeStyleSetHeight(root, 320);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root_child0, YGJustifyCenter);
YGNodeStyleSetAlignContent(root_child0, YGAlignFlexEnd);
@@ -861,17 +862,17 @@ TEST(YogaTest, align_content_flex_end_wrapped_negative_space) {
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0, 80);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child1, 80);
YGNodeStyleSetHeight(root_child0_child1, 20);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child2, 80);
YGNodeStyleSetHeight(root_child0_child2, 20);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
@@ -935,9 +936,9 @@ TEST(YogaTest, align_content_flex_end_wrapped_negative_space) {
}
TEST(YogaTest, align_content_flex_end_wrapped_negative_space_gap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 60);
YGNodeStyleSetBorder(root, YGEdgeTop, 60);
@@ -946,7 +947,7 @@ TEST(YogaTest, align_content_flex_end_wrapped_negative_space_gap) {
YGNodeStyleSetWidth(root, 320);
YGNodeStyleSetHeight(root, 320);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root_child0, YGJustifyCenter);
YGNodeStyleSetAlignContent(root_child0, YGAlignFlexEnd);
@@ -956,17 +957,17 @@ TEST(YogaTest, align_content_flex_end_wrapped_negative_space_gap) {
YGNodeStyleSetGap(root_child0, YGGutterRow, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0, 80);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child1, 80);
YGNodeStyleSetHeight(root_child0_child1, 20);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child2, 80);
YGNodeStyleSetHeight(root_child0_child2, 20);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
@@ -1030,21 +1031,21 @@ TEST(YogaTest, align_content_flex_end_wrapped_negative_space_gap) {
}
TEST(YogaTest, align_content_center_nowrap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
@@ -1088,9 +1089,9 @@ TEST(YogaTest, align_content_center_nowrap) {
}
TEST(YogaTest, align_content_center_wrap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -1098,27 +1099,27 @@ TEST(YogaTest, align_content_center_wrap) {
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeStyleSetHeight(root_child3, 10);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeStyleSetHeight(root_child4, 10);
YGNodeInsertChild(root, root_child4, 4);
@@ -1192,9 +1193,9 @@ TEST(YogaTest, align_content_center_wrap) {
}
TEST(YogaTest, align_content_center_wrap_singleline) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -1202,12 +1203,12 @@ TEST(YogaTest, align_content_center_wrap_singleline) {
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
@@ -1251,9 +1252,9 @@ TEST(YogaTest, align_content_center_wrap_singleline) {
}
TEST(YogaTest, align_content_center_wrapped_negative_space) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 60);
YGNodeStyleSetBorder(root, YGEdgeTop, 60);
@@ -1262,7 +1263,7 @@ TEST(YogaTest, align_content_center_wrapped_negative_space) {
YGNodeStyleSetWidth(root, 320);
YGNodeStyleSetHeight(root, 320);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root_child0, YGJustifyCenter);
YGNodeStyleSetAlignContent(root_child0, YGAlignCenter);
@@ -1270,17 +1271,17 @@ TEST(YogaTest, align_content_center_wrapped_negative_space) {
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0, 80);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child1, 80);
YGNodeStyleSetHeight(root_child0_child1, 20);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child2, 80);
YGNodeStyleSetHeight(root_child0_child2, 20);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
@@ -1344,9 +1345,9 @@ TEST(YogaTest, align_content_center_wrapped_negative_space) {
}
TEST(YogaTest, align_content_center_wrapped_negative_space_gap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 60);
YGNodeStyleSetBorder(root, YGEdgeTop, 60);
@@ -1355,7 +1356,7 @@ TEST(YogaTest, align_content_center_wrapped_negative_space_gap) {
YGNodeStyleSetWidth(root, 320);
YGNodeStyleSetHeight(root, 320);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root_child0, YGJustifyCenter);
YGNodeStyleSetAlignContent(root_child0, YGAlignCenter);
@@ -1365,17 +1366,17 @@ TEST(YogaTest, align_content_center_wrapped_negative_space_gap) {
YGNodeStyleSetGap(root_child0, YGGutterRow, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0, 80);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child1, 80);
YGNodeStyleSetHeight(root_child0_child1, 20);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child2, 80);
YGNodeStyleSetHeight(root_child0_child2, 20);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
@@ -1439,21 +1440,21 @@ TEST(YogaTest, align_content_center_wrapped_negative_space_gap) {
}
TEST(YogaTest, align_content_space_between_nowrap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceBetween);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
@@ -1497,9 +1498,9 @@ TEST(YogaTest, align_content_space_between_nowrap) {
}
TEST(YogaTest, align_content_space_between_wrap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceBetween);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -1507,27 +1508,27 @@ TEST(YogaTest, align_content_space_between_wrap) {
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeStyleSetHeight(root_child3, 10);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeStyleSetHeight(root_child4, 10);
YGNodeInsertChild(root, root_child4, 4);
@@ -1601,9 +1602,9 @@ TEST(YogaTest, align_content_space_between_wrap) {
}
TEST(YogaTest, align_content_space_between_wrap_singleline) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceBetween);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -1611,12 +1612,12 @@ TEST(YogaTest, align_content_space_between_wrap_singleline) {
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
@@ -1660,9 +1661,9 @@ TEST(YogaTest, align_content_space_between_wrap_singleline) {
}
TEST(YogaTest, align_content_space_between_wrapped_negative_space) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 60);
YGNodeStyleSetBorder(root, YGEdgeTop, 60);
@@ -1671,7 +1672,7 @@ TEST(YogaTest, align_content_space_between_wrapped_negative_space) {
YGNodeStyleSetWidth(root, 320);
YGNodeStyleSetHeight(root, 320);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root_child0, YGJustifyCenter);
YGNodeStyleSetAlignContent(root_child0, YGAlignSpaceBetween);
@@ -1679,17 +1680,17 @@ TEST(YogaTest, align_content_space_between_wrapped_negative_space) {
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0, 80);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child1, 80);
YGNodeStyleSetHeight(root_child0_child1, 20);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child2, 80);
YGNodeStyleSetHeight(root_child0_child2, 20);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
@@ -1753,9 +1754,9 @@ TEST(YogaTest, align_content_space_between_wrapped_negative_space) {
}
TEST(YogaTest, align_content_space_between_wrapped_negative_space_row_reverse) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 60);
YGNodeStyleSetBorder(root, YGEdgeTop, 60);
@@ -1764,7 +1765,7 @@ TEST(YogaTest, align_content_space_between_wrapped_negative_space_row_reverse) {
YGNodeStyleSetWidth(root, 320);
YGNodeStyleSetHeight(root, 320);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetJustifyContent(root_child0, YGJustifyCenter);
YGNodeStyleSetAlignContent(root_child0, YGAlignSpaceBetween);
@@ -1772,17 +1773,17 @@ TEST(YogaTest, align_content_space_between_wrapped_negative_space_row_reverse) {
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0, 80);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child1, 80);
YGNodeStyleSetHeight(root_child0_child1, 20);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child2, 80);
YGNodeStyleSetHeight(root_child0_child2, 20);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
@@ -1846,9 +1847,9 @@ TEST(YogaTest, align_content_space_between_wrapped_negative_space_row_reverse) {
}
TEST(YogaTest, align_content_space_between_wrapped_negative_space_gap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 60);
YGNodeStyleSetBorder(root, YGEdgeTop, 60);
@@ -1857,7 +1858,7 @@ TEST(YogaTest, align_content_space_between_wrapped_negative_space_gap) {
YGNodeStyleSetWidth(root, 320);
YGNodeStyleSetHeight(root, 320);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root_child0, YGJustifyCenter);
YGNodeStyleSetAlignContent(root_child0, YGAlignSpaceBetween);
@@ -1867,17 +1868,17 @@ TEST(YogaTest, align_content_space_between_wrapped_negative_space_gap) {
YGNodeStyleSetGap(root_child0, YGGutterRow, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0, 80);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child1, 80);
YGNodeStyleSetHeight(root_child0_child1, 20);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child2, 80);
YGNodeStyleSetHeight(root_child0_child2, 20);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
@@ -1941,21 +1942,21 @@ TEST(YogaTest, align_content_space_between_wrapped_negative_space_gap) {
}
TEST(YogaTest, align_content_space_around_nowrap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceAround);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
@@ -1999,9 +2000,9 @@ TEST(YogaTest, align_content_space_around_nowrap) {
}
TEST(YogaTest, align_content_space_around_wrap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceAround);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -2009,27 +2010,27 @@ TEST(YogaTest, align_content_space_around_wrap) {
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeStyleSetHeight(root_child3, 10);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeStyleSetHeight(root_child4, 10);
YGNodeInsertChild(root, root_child4, 4);
@@ -2103,9 +2104,9 @@ TEST(YogaTest, align_content_space_around_wrap) {
}
TEST(YogaTest, align_content_space_around_wrap_singleline) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceAround);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -2113,12 +2114,12 @@ TEST(YogaTest, align_content_space_around_wrap_singleline) {
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
@@ -2162,9 +2163,9 @@ TEST(YogaTest, align_content_space_around_wrap_singleline) {
}
TEST(YogaTest, align_content_space_around_wrapped_negative_space) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 60);
YGNodeStyleSetBorder(root, YGEdgeTop, 60);
@@ -2173,7 +2174,7 @@ TEST(YogaTest, align_content_space_around_wrapped_negative_space) {
YGNodeStyleSetWidth(root, 320);
YGNodeStyleSetHeight(root, 320);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root_child0, YGJustifyCenter);
YGNodeStyleSetAlignContent(root_child0, YGAlignSpaceAround);
@@ -2181,17 +2182,17 @@ TEST(YogaTest, align_content_space_around_wrapped_negative_space) {
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0, 80);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child1, 80);
YGNodeStyleSetHeight(root_child0_child1, 20);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child2, 80);
YGNodeStyleSetHeight(root_child0_child2, 20);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
@@ -2255,9 +2256,9 @@ TEST(YogaTest, align_content_space_around_wrapped_negative_space) {
}
TEST(YogaTest, align_content_space_around_wrapped_negative_space_row_reverse) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 60);
YGNodeStyleSetBorder(root, YGEdgeTop, 60);
@@ -2266,7 +2267,7 @@ TEST(YogaTest, align_content_space_around_wrapped_negative_space_row_reverse) {
YGNodeStyleSetWidth(root, 320);
YGNodeStyleSetHeight(root, 320);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetJustifyContent(root_child0, YGJustifyCenter);
YGNodeStyleSetAlignContent(root_child0, YGAlignSpaceAround);
@@ -2274,17 +2275,17 @@ TEST(YogaTest, align_content_space_around_wrapped_negative_space_row_reverse) {
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0, 80);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child1, 80);
YGNodeStyleSetHeight(root_child0_child1, 20);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child2, 80);
YGNodeStyleSetHeight(root_child0_child2, 20);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
@@ -2348,9 +2349,9 @@ TEST(YogaTest, align_content_space_around_wrapped_negative_space_row_reverse) {
}
TEST(YogaTest, align_content_space_around_wrapped_negative_space_gap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 60);
YGNodeStyleSetBorder(root, YGEdgeTop, 60);
@@ -2359,7 +2360,7 @@ TEST(YogaTest, align_content_space_around_wrapped_negative_space_gap) {
YGNodeStyleSetWidth(root, 320);
YGNodeStyleSetHeight(root, 320);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root_child0, YGJustifyCenter);
YGNodeStyleSetAlignContent(root_child0, YGAlignSpaceAround);
@@ -2369,17 +2370,17 @@ TEST(YogaTest, align_content_space_around_wrapped_negative_space_gap) {
YGNodeStyleSetGap(root_child0, YGGutterRow, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0, 80);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child1, 80);
YGNodeStyleSetHeight(root_child0_child1, 20);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child2, 80);
YGNodeStyleSetHeight(root_child0_child2, 20);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
@@ -2443,21 +2444,21 @@ TEST(YogaTest, align_content_space_around_wrapped_negative_space_gap) {
}
TEST(YogaTest, align_content_space_evenly_nowrap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceEvenly);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
@@ -2501,9 +2502,9 @@ TEST(YogaTest, align_content_space_evenly_nowrap) {
}
TEST(YogaTest, align_content_space_evenly_wrap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceEvenly);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -2511,27 +2512,27 @@ TEST(YogaTest, align_content_space_evenly_wrap) {
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeStyleSetHeight(root_child3, 10);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeStyleSetHeight(root_child4, 10);
YGNodeInsertChild(root, root_child4, 4);
@@ -2605,9 +2606,9 @@ TEST(YogaTest, align_content_space_evenly_wrap) {
}
TEST(YogaTest, align_content_space_evenly_wrap_singleline) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceEvenly);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -2615,12 +2616,12 @@ TEST(YogaTest, align_content_space_evenly_wrap_singleline) {
YGNodeStyleSetWidth(root, 140);
YGNodeStyleSetHeight(root, 120);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
@@ -2664,9 +2665,9 @@ TEST(YogaTest, align_content_space_evenly_wrap_singleline) {
}
TEST(YogaTest, align_content_space_evenly_wrapped_negative_space) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 60);
YGNodeStyleSetBorder(root, YGEdgeTop, 60);
@@ -2675,7 +2676,7 @@ TEST(YogaTest, align_content_space_evenly_wrapped_negative_space) {
YGNodeStyleSetWidth(root, 320);
YGNodeStyleSetHeight(root, 320);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root_child0, YGJustifyCenter);
YGNodeStyleSetAlignContent(root_child0, YGAlignSpaceEvenly);
@@ -2683,17 +2684,17 @@ TEST(YogaTest, align_content_space_evenly_wrapped_negative_space) {
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0, 80);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child1, 80);
YGNodeStyleSetHeight(root_child0_child1, 20);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child2, 80);
YGNodeStyleSetHeight(root_child0_child2, 20);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
@@ -2757,9 +2758,9 @@ TEST(YogaTest, align_content_space_evenly_wrapped_negative_space) {
}
TEST(YogaTest, align_content_space_evenly_wrapped_negative_space_gap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 60);
YGNodeStyleSetBorder(root, YGEdgeTop, 60);
@@ -2768,7 +2769,7 @@ TEST(YogaTest, align_content_space_evenly_wrapped_negative_space_gap) {
YGNodeStyleSetWidth(root, 320);
YGNodeStyleSetHeight(root, 320);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root_child0, YGJustifyCenter);
YGNodeStyleSetAlignContent(root_child0, YGAlignSpaceEvenly);
@@ -2778,17 +2779,17 @@ TEST(YogaTest, align_content_space_evenly_wrapped_negative_space_gap) {
YGNodeStyleSetGap(root_child0, YGGutterRow, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0, 80);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child1, 80);
YGNodeStyleSetHeight(root_child0_child1, 20);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child2, 80);
YGNodeStyleSetHeight(root_child0_child2, 20);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
@@ -2852,32 +2853,32 @@ TEST(YogaTest, align_content_space_evenly_wrapped_negative_space_gap) {
}
TEST(YogaTest, align_content_stretch) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetWidth(root, 150);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -2950,9 +2951,9 @@ TEST(YogaTest, align_content_stretch) {
}
TEST(YogaTest, align_content_stretch_row) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -2960,23 +2961,23 @@ TEST(YogaTest, align_content_stretch_row) {
YGNodeStyleSetWidth(root, 150);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3049,9 +3050,9 @@ TEST(YogaTest, align_content_stretch_row) {
}
TEST(YogaTest, align_content_stretch_row_with_children) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -3059,29 +3060,29 @@ TEST(YogaTest, align_content_stretch_row_with_children) {
YGNodeStyleSetWidth(root, 150);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0, 1);
YGNodeStyleSetFlexShrink(root_child0_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0_child0, 0);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3164,9 +3165,9 @@ TEST(YogaTest, align_content_stretch_row_with_children) {
}
TEST(YogaTest, align_content_stretch_row_with_flex) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -3174,29 +3175,29 @@ TEST(YogaTest, align_content_stretch_row_with_flex) {
YGNodeStyleSetWidth(root, 150);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetFlexShrink(root_child1, 1);
YGNodeStyleSetFlexBasisPercent(root_child1, 0);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child3, 1);
YGNodeStyleSetFlexShrink(root_child3, 1);
YGNodeStyleSetFlexBasisPercent(root_child3, 0);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3269,9 +3270,9 @@ TEST(YogaTest, align_content_stretch_row_with_flex) {
}
TEST(YogaTest, align_content_stretch_row_with_flex_no_shrink) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -3279,28 +3280,28 @@ TEST(YogaTest, align_content_stretch_row_with_flex_no_shrink) {
YGNodeStyleSetWidth(root, 150);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetFlexShrink(root_child1, 1);
YGNodeStyleSetFlexBasisPercent(root_child1, 0);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child3, 1);
YGNodeStyleSetFlexBasisPercent(root_child3, 0);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3373,9 +3374,9 @@ TEST(YogaTest, align_content_stretch_row_with_flex_no_shrink) {
}
TEST(YogaTest, align_content_stretch_row_with_margin) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -3383,11 +3384,11 @@ TEST(YogaTest, align_content_stretch_row_with_margin) {
YGNodeStyleSetWidth(root, 150);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1, YGEdgeLeft, 10);
YGNodeStyleSetMargin(root_child1, YGEdgeTop, 10);
YGNodeStyleSetMargin(root_child1, YGEdgeRight, 10);
@@ -3395,11 +3396,11 @@ TEST(YogaTest, align_content_stretch_row_with_margin) {
YGNodeStyleSetWidth(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child3, YGEdgeLeft, 10);
YGNodeStyleSetMargin(root_child3, YGEdgeTop, 10);
YGNodeStyleSetMargin(root_child3, YGEdgeRight, 10);
@@ -3407,7 +3408,7 @@ TEST(YogaTest, align_content_stretch_row_with_margin) {
YGNodeStyleSetWidth(root_child3, 50);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3480,9 +3481,9 @@ TEST(YogaTest, align_content_stretch_row_with_margin) {
}
TEST(YogaTest, align_content_stretch_row_with_padding) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -3490,11 +3491,11 @@ TEST(YogaTest, align_content_stretch_row_with_padding) {
YGNodeStyleSetWidth(root, 150);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetPadding(root_child1, YGEdgeLeft, 10);
YGNodeStyleSetPadding(root_child1, YGEdgeTop, 10);
YGNodeStyleSetPadding(root_child1, YGEdgeRight, 10);
@@ -3502,11 +3503,11 @@ TEST(YogaTest, align_content_stretch_row_with_padding) {
YGNodeStyleSetWidth(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetPadding(root_child3, YGEdgeLeft, 10);
YGNodeStyleSetPadding(root_child3, YGEdgeTop, 10);
YGNodeStyleSetPadding(root_child3, YGEdgeRight, 10);
@@ -3514,7 +3515,7 @@ TEST(YogaTest, align_content_stretch_row_with_padding) {
YGNodeStyleSetWidth(root_child3, 50);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3587,9 +3588,9 @@ TEST(YogaTest, align_content_stretch_row_with_padding) {
}
TEST(YogaTest, align_content_stretch_row_with_single_row) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -3597,11 +3598,11 @@ TEST(YogaTest, align_content_stretch_row_with_single_row) {
YGNodeStyleSetWidth(root, 150);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3644,9 +3645,9 @@ TEST(YogaTest, align_content_stretch_row_with_single_row) {
}
TEST(YogaTest, align_content_stretch_row_with_fixed_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -3654,24 +3655,24 @@ TEST(YogaTest, align_content_stretch_row_with_fixed_height) {
YGNodeStyleSetWidth(root, 150);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 60);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3744,9 +3745,9 @@ TEST(YogaTest, align_content_stretch_row_with_fixed_height) {
}
TEST(YogaTest, align_content_stretch_row_with_max_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -3754,24 +3755,24 @@ TEST(YogaTest, align_content_stretch_row_with_max_height) {
YGNodeStyleSetWidth(root, 150);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetMaxHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3844,9 +3845,9 @@ TEST(YogaTest, align_content_stretch_row_with_max_height) {
}
TEST(YogaTest, align_content_stretch_row_with_min_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -3854,24 +3855,24 @@ TEST(YogaTest, align_content_stretch_row_with_min_height) {
YGNodeStyleSetWidth(root, 150);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetMinHeight(root_child1, 80);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3944,41 +3945,41 @@ TEST(YogaTest, align_content_stretch_row_with_min_height) {
}
TEST(YogaTest, align_content_stretch_column) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 150);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0, 1);
YGNodeStyleSetFlexShrink(root_child0_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0_child0, 0);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetFlexShrink(root_child1, 1);
YGNodeStyleSetFlexBasisPercent(root_child1, 0);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child3, 50);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -4061,13 +4062,13 @@ TEST(YogaTest, align_content_stretch_column) {
}
TEST(YogaTest, align_content_stretch_is_not_overriding_align_items) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root_child0, YGAlignStretch);
YGNodeStyleSetAlignItems(root_child0, YGAlignCenter);
@@ -4075,7 +4076,7 @@ TEST(YogaTest, align_content_stretch_is_not_overriding_align_items) {
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignContent(root_child0_child0, YGAlignStretch);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
@@ -4120,9 +4121,9 @@ TEST(YogaTest, align_content_stretch_is_not_overriding_align_items) {
}
TEST(YogaTest, align_content_stretch_with_min_cross_axis) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -4130,12 +4131,12 @@ TEST(YogaTest, align_content_stretch_with_min_cross_axis) {
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetMinHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 400);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 400);
YGNodeStyleSetHeight(root_child1, 200);
YGNodeInsertChild(root, root_child1, 1);
@@ -4179,9 +4180,9 @@ TEST(YogaTest, align_content_stretch_with_min_cross_axis) {
}
TEST(YogaTest, align_content_stretch_with_max_cross_axis) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -4189,12 +4190,12 @@ TEST(YogaTest, align_content_stretch_with_max_cross_axis) {
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetMaxHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 400);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 400);
YGNodeStyleSetHeight(root_child1, 200);
YGNodeInsertChild(root, root_child1, 1);
@@ -4238,9 +4239,9 @@ TEST(YogaTest, align_content_stretch_with_max_cross_axis) {
}
TEST(YogaTest, align_content_stretch_with_max_cross_axis_and_border_padding) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -4256,12 +4257,12 @@ TEST(YogaTest, align_content_stretch_with_max_cross_axis_and_border_padding) {
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetMaxHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 400);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 400);
YGNodeStyleSetHeight(root_child1, 200);
YGNodeInsertChild(root, root_child1, 1);
@@ -4305,9 +4306,9 @@ TEST(YogaTest, align_content_stretch_with_max_cross_axis_and_border_padding) {
}
TEST(YogaTest, align_content_space_evenly_with_min_cross_axis) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceEvenly);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -4315,12 +4316,12 @@ TEST(YogaTest, align_content_space_evenly_with_min_cross_axis) {
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetMinHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 400);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 400);
YGNodeStyleSetHeight(root_child1, 200);
YGNodeInsertChild(root, root_child1, 1);
@@ -4364,9 +4365,9 @@ TEST(YogaTest, align_content_space_evenly_with_min_cross_axis) {
}
TEST(YogaTest, align_content_space_evenly_with_max_cross_axis) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceEvenly);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -4374,12 +4375,12 @@ TEST(YogaTest, align_content_space_evenly_with_max_cross_axis) {
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetMaxHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 400);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 400);
YGNodeStyleSetHeight(root_child1, 200);
YGNodeInsertChild(root, root_child1, 1);
@@ -4423,9 +4424,9 @@ TEST(YogaTest, align_content_space_evenly_with_max_cross_axis) {
}
TEST(YogaTest, align_content_space_evenly_with_max_cross_axis_violated) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceEvenly);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -4433,12 +4434,12 @@ TEST(YogaTest, align_content_space_evenly_with_max_cross_axis_violated) {
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetMaxHeight(root, 300);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 400);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 400);
YGNodeStyleSetHeight(root_child1, 200);
YGNodeInsertChild(root, root_child1, 1);
@@ -4482,9 +4483,9 @@ TEST(YogaTest, align_content_space_evenly_with_max_cross_axis_violated) {
}
TEST(YogaTest, align_content_space_evenly_with_max_cross_axis_violated_padding_and_border) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceEvenly);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -4500,12 +4501,12 @@ TEST(YogaTest, align_content_space_evenly_with_max_cross_axis_violated_padding_a
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetMaxHeight(root, 300);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 400);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 400);
YGNodeStyleSetHeight(root_child1, 200);
YGNodeInsertChild(root, root_child1, 1);
@@ -4549,9 +4550,9 @@ TEST(YogaTest, align_content_space_evenly_with_max_cross_axis_violated_padding_a
}
TEST(YogaTest, align_content_space_around_and_align_items_flex_end_with_flex_wrap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceAround);
YGNodeStyleSetAlignItems(root, YGAlignFlexEnd);
@@ -4560,17 +4561,17 @@ TEST(YogaTest, align_content_space_around_and_align_items_flex_end_with_flex_wra
YGNodeStyleSetWidth(root, 300);
YGNodeStyleSetHeight(root, 300);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 150);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 120);
YGNodeStyleSetHeight(root_child1, 100);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 120);
YGNodeStyleSetHeight(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
@@ -4624,9 +4625,9 @@ TEST(YogaTest, align_content_space_around_and_align_items_flex_end_with_flex_wra
}
TEST(YogaTest, align_content_space_around_and_align_items_center_with_flex_wrap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceAround);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
@@ -4635,17 +4636,17 @@ TEST(YogaTest, align_content_space_around_and_align_items_center_with_flex_wrap)
YGNodeStyleSetWidth(root, 300);
YGNodeStyleSetHeight(root, 300);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 150);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 120);
YGNodeStyleSetHeight(root_child1, 100);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 120);
YGNodeStyleSetHeight(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
@@ -4699,9 +4700,9 @@ TEST(YogaTest, align_content_space_around_and_align_items_center_with_flex_wrap)
}
TEST(YogaTest, align_content_space_around_and_align_items_flex_start_with_flex_wrap) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceAround);
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
@@ -4710,17 +4711,17 @@ TEST(YogaTest, align_content_space_around_and_align_items_flex_start_with_flex_w
YGNodeStyleSetWidth(root, 300);
YGNodeStyleSetHeight(root, 300);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 150);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 120);
YGNodeStyleSetHeight(root_child1, 100);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 120);
YGNodeStyleSetHeight(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
@@ -4774,9 +4775,9 @@ TEST(YogaTest, align_content_space_around_and_align_items_flex_start_with_flex_w
}
TEST(YogaTest, align_content_flex_start_stretch_doesnt_influence_line_box_dim) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeLeft, 20);
@@ -4785,50 +4786,50 @@ TEST(YogaTest, align_content_flex_start_stretch_doesnt_influence_line_box_dim) {
YGNodeStyleSetPadding(root, YGEdgeBottom, 20);
YGNodeStyleSetWidth(root, 400);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child1, YGFlexDirectionRow);
YGNodeStyleSetFlexWrap(root_child1, YGWrapWrap);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetFlexShrink(root_child1, 1);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1_child0, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child1_child0, 30);
YGNodeStyleSetHeight(root_child1_child0, 30);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1_child1, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child1_child1, 30);
YGNodeStyleSetHeight(root_child1_child1, 30);
YGNodeInsertChild(root_child1, root_child1_child1, 1);
- const YGNodeRef root_child1_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1_child2, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child1_child2, 30);
YGNodeStyleSetHeight(root_child1_child2, 30);
YGNodeInsertChild(root_child1, root_child1_child2, 2);
- const YGNodeRef root_child1_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1_child3, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child1_child3, 30);
YGNodeStyleSetHeight(root_child1_child3, 30);
YGNodeInsertChild(root_child1, root_child1_child3, 3);
- const YGNodeRef root_child1_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1_child4, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child1_child4, 30);
YGNodeStyleSetHeight(root_child1_child4, 30);
YGNodeInsertChild(root_child1, root_child1_child4, 4);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child2, YGEdgeLeft, 20);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeStyleSetHeight(root_child2, 50);
@@ -4933,9 +4934,9 @@ TEST(YogaTest, align_content_flex_start_stretch_doesnt_influence_line_box_dim) {
}
TEST(YogaTest, align_content_stretch_stretch_does_influence_line_box_dim) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeLeft, 20);
@@ -4944,13 +4945,13 @@ TEST(YogaTest, align_content_stretch_stretch_does_influence_line_box_dim) {
YGNodeStyleSetPadding(root, YGEdgeBottom, 20);
YGNodeStyleSetWidth(root, 400);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child1, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root_child1, YGAlignStretch);
YGNodeStyleSetFlexWrap(root_child1, YGWrapWrap);
@@ -4958,37 +4959,37 @@ TEST(YogaTest, align_content_stretch_stretch_does_influence_line_box_dim) {
YGNodeStyleSetFlexShrink(root_child1, 1);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1_child0, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child1_child0, 30);
YGNodeStyleSetHeight(root_child1_child0, 30);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1_child1, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child1_child1, 30);
YGNodeStyleSetHeight(root_child1_child1, 30);
YGNodeInsertChild(root_child1, root_child1_child1, 1);
- const YGNodeRef root_child1_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1_child2, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child1_child2, 30);
YGNodeStyleSetHeight(root_child1_child2, 30);
YGNodeInsertChild(root_child1, root_child1_child2, 2);
- const YGNodeRef root_child1_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1_child3, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child1_child3, 30);
YGNodeStyleSetHeight(root_child1_child3, 30);
YGNodeInsertChild(root_child1, root_child1_child3, 3);
- const YGNodeRef root_child1_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1_child4, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child1_child4, 30);
YGNodeStyleSetHeight(root_child1_child4, 30);
YGNodeInsertChild(root_child1, root_child1_child4, 4);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child2, YGEdgeLeft, 20);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeStyleSetHeight(root_child2, 50);
@@ -5093,9 +5094,9 @@ TEST(YogaTest, align_content_stretch_stretch_does_influence_line_box_dim) {
}
TEST(YogaTest, align_content_space_evenly_stretch_does_influence_line_box_dim) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeLeft, 20);
@@ -5104,13 +5105,13 @@ TEST(YogaTest, align_content_space_evenly_stretch_does_influence_line_box_dim) {
YGNodeStyleSetPadding(root, YGEdgeBottom, 20);
YGNodeStyleSetWidth(root, 400);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child1, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root_child1, YGAlignStretch);
YGNodeStyleSetFlexWrap(root_child1, YGWrapWrap);
@@ -5118,37 +5119,37 @@ TEST(YogaTest, align_content_space_evenly_stretch_does_influence_line_box_dim) {
YGNodeStyleSetFlexShrink(root_child1, 1);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1_child0, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child1_child0, 30);
YGNodeStyleSetHeight(root_child1_child0, 30);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1_child1, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child1_child1, 30);
YGNodeStyleSetHeight(root_child1_child1, 30);
YGNodeInsertChild(root_child1, root_child1_child1, 1);
- const YGNodeRef root_child1_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1_child2, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child1_child2, 30);
YGNodeStyleSetHeight(root_child1_child2, 30);
YGNodeInsertChild(root_child1, root_child1_child2, 2);
- const YGNodeRef root_child1_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1_child3, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child1_child3, 30);
YGNodeStyleSetHeight(root_child1_child3, 30);
YGNodeInsertChild(root_child1, root_child1_child3, 3);
- const YGNodeRef root_child1_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1_child4, YGEdgeRight, 20);
YGNodeStyleSetWidth(root_child1_child4, 30);
YGNodeStyleSetHeight(root_child1_child4, 30);
YGNodeInsertChild(root_child1, root_child1_child4, 4);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child2, YGEdgeLeft, 20);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeStyleSetHeight(root_child2, 50);
diff --git a/tests/generated/YGAlignItemsTest.cpp b/tests/generated/YGAlignItemsTest.cpp
index a8e14b4058..4a4f48ecde 100644
--- a/tests/generated/YGAlignItemsTest.cpp
+++ b/tests/generated/YGAlignItemsTest.cpp
@@ -5,22 +5,23 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<<7cbfd8bdc47bc5e88f4982cb5787b878>>
+ * @generated SignedSource<<71295a398c89ea424490884a05e2c77c>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAlignItemsTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, align_items_stretch) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -53,15 +54,15 @@ TEST(YogaTest, align_items_stretch) {
}
TEST(YogaTest, align_items_center) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
@@ -95,15 +96,15 @@ TEST(YogaTest, align_items_center) {
}
TEST(YogaTest, align_items_flex_start) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
@@ -137,15 +138,15 @@ TEST(YogaTest, align_items_flex_start) {
}
TEST(YogaTest, align_items_flex_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignFlexEnd);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
@@ -179,21 +180,21 @@ TEST(YogaTest, align_items_flex_end) {
}
TEST(YogaTest, align_baseline) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
@@ -237,26 +238,26 @@ TEST(YogaTest, align_baseline) {
}
TEST(YogaTest, align_baseline_child) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child0, 50);
YGNodeStyleSetHeight(root_child1_child0, 10);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
@@ -310,43 +311,43 @@ TEST(YogaTest, align_baseline_child) {
}
TEST(YogaTest, align_baseline_child_multiline) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child1, YGFlexDirectionRow);
YGNodeStyleSetFlexWrap(root_child1, YGWrapWrap);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 25);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child0, 25);
YGNodeStyleSetHeight(root_child1_child0, 20);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child1, 25);
YGNodeStyleSetHeight(root_child1_child1, 10);
YGNodeInsertChild(root_child1, root_child1_child1, 1);
- const YGNodeRef root_child1_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child2, 25);
YGNodeStyleSetHeight(root_child1_child2, 20);
YGNodeInsertChild(root_child1, root_child1_child2, 2);
- const YGNodeRef root_child1_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child3, 25);
YGNodeStyleSetHeight(root_child1_child3, 10);
YGNodeInsertChild(root_child1, root_child1_child3, 3);
@@ -430,44 +431,44 @@ TEST(YogaTest, align_baseline_child_multiline) {
}
TEST(YogaTest, align_baseline_child_multiline_override) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child1, YGFlexDirectionRow);
YGNodeStyleSetFlexWrap(root_child1, YGWrapWrap);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 25);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child0, 25);
YGNodeStyleSetHeight(root_child1_child0, 20);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignSelf(root_child1_child1, YGAlignBaseline);
YGNodeStyleSetWidth(root_child1_child1, 25);
YGNodeStyleSetHeight(root_child1_child1, 10);
YGNodeInsertChild(root_child1, root_child1_child1, 1);
- const YGNodeRef root_child1_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child2, 25);
YGNodeStyleSetHeight(root_child1_child2, 20);
YGNodeInsertChild(root_child1, root_child1_child2, 2);
- const YGNodeRef root_child1_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignSelf(root_child1_child3, YGAlignBaseline);
YGNodeStyleSetWidth(root_child1_child3, 25);
YGNodeStyleSetHeight(root_child1_child3, 10);
@@ -552,43 +553,43 @@ TEST(YogaTest, align_baseline_child_multiline_override) {
}
TEST(YogaTest, align_baseline_child_multiline_no_override_on_secondline) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child1, YGFlexDirectionRow);
YGNodeStyleSetFlexWrap(root_child1, YGWrapWrap);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 25);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child0, 25);
YGNodeStyleSetHeight(root_child1_child0, 20);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child1, 25);
YGNodeStyleSetHeight(root_child1_child1, 10);
YGNodeInsertChild(root_child1, root_child1_child1, 1);
- const YGNodeRef root_child1_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child2, 25);
YGNodeStyleSetHeight(root_child1_child2, 20);
YGNodeInsertChild(root_child1, root_child1_child2, 2);
- const YGNodeRef root_child1_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignSelf(root_child1_child3, YGAlignBaseline);
YGNodeStyleSetWidth(root_child1_child3, 25);
YGNodeStyleSetHeight(root_child1_child3, 10);
@@ -673,27 +674,27 @@ TEST(YogaTest, align_baseline_child_multiline_no_override_on_secondline) {
}
TEST(YogaTest, align_baseline_child_top) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPosition(root_child0, YGEdgeTop, 10);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child0, 50);
YGNodeStyleSetHeight(root_child1_child0, 10);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
@@ -747,27 +748,27 @@ TEST(YogaTest, align_baseline_child_top) {
}
TEST(YogaTest, align_baseline_child_top2) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetPosition(root_child1, YGEdgeTop, 5);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child0, 50);
YGNodeStyleSetHeight(root_child1_child0, 10);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
@@ -821,31 +822,31 @@ TEST(YogaTest, align_baseline_child_top2) {
}
TEST(YogaTest, align_baseline_double_nested_child) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child0, 50);
YGNodeStyleSetHeight(root_child1_child0, 15);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
@@ -909,20 +910,20 @@ TEST(YogaTest, align_baseline_double_nested_child) {
}
TEST(YogaTest, align_baseline_column) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
@@ -966,16 +967,16 @@ TEST(YogaTest, align_baseline_column) {
}
TEST(YogaTest, align_baseline_child_margin) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 5);
@@ -984,12 +985,12 @@ TEST(YogaTest, align_baseline_child_margin) {
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1_child0, YGEdgeLeft, 1);
YGNodeStyleSetMargin(root_child1_child0, YGEdgeTop, 1);
YGNodeStyleSetMargin(root_child1_child0, YGEdgeRight, 1);
@@ -1047,9 +1048,9 @@ TEST(YogaTest, align_baseline_child_margin) {
}
TEST(YogaTest, align_baseline_child_padding) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -1060,12 +1061,12 @@ TEST(YogaTest, align_baseline_child_padding) {
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetPadding(root_child1, YGEdgeLeft, 5);
YGNodeStyleSetPadding(root_child1, YGEdgeTop, 5);
YGNodeStyleSetPadding(root_child1, YGEdgeRight, 5);
@@ -1074,7 +1075,7 @@ TEST(YogaTest, align_baseline_child_padding) {
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child0, 50);
YGNodeStyleSetHeight(root_child1_child0, 10);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
@@ -1128,9 +1129,9 @@ TEST(YogaTest, align_baseline_child_padding) {
}
TEST(YogaTest, align_baseline_multiline) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -1138,32 +1139,32 @@ TEST(YogaTest, align_baseline_multiline) {
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child0, 50);
YGNodeStyleSetHeight(root_child1_child0, 10);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeStyleSetHeight(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child2_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2_child0, 50);
YGNodeStyleSetHeight(root_child2_child0, 10);
YGNodeInsertChild(root_child2, root_child2_child0, 0);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeStyleSetHeight(root_child3, 50);
YGNodeInsertChild(root, root_child3, 3);
@@ -1249,41 +1250,41 @@ TEST(YogaTest, align_baseline_multiline) {
TEST(YogaTest, align_baseline_multiline_column) {
GTEST_SKIP();
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 30);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child0, 20);
YGNodeStyleSetHeight(root_child1_child0, 20);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 40);
YGNodeStyleSetHeight(root_child2, 70);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child2_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2_child0, 10);
YGNodeStyleSetHeight(root_child2_child0, 10);
YGNodeInsertChild(root_child2, root_child2_child0, 0);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeStyleSetHeight(root_child3, 20);
YGNodeInsertChild(root, root_child3, 3);
@@ -1369,41 +1370,41 @@ TEST(YogaTest, align_baseline_multiline_column) {
TEST(YogaTest, align_baseline_multiline_column2) {
GTEST_SKIP();
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 30);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child0, 20);
YGNodeStyleSetHeight(root_child1_child0, 20);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 40);
YGNodeStyleSetHeight(root_child2, 70);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child2_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2_child0, 10);
YGNodeStyleSetHeight(root_child2_child0, 10);
YGNodeInsertChild(root_child2, root_child2_child0, 0);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeStyleSetHeight(root_child3, 20);
YGNodeInsertChild(root, root_child3, 3);
@@ -1487,9 +1488,9 @@ TEST(YogaTest, align_baseline_multiline_column2) {
}
TEST(YogaTest, align_baseline_multiline_row_and_column) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignBaseline);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -1497,32 +1498,32 @@ TEST(YogaTest, align_baseline_multiline_row_and_column) {
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child0, 50);
YGNodeStyleSetHeight(root_child1_child0, 10);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeStyleSetHeight(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child2_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2_child0, 50);
YGNodeStyleSetHeight(root_child2_child0, 10);
YGNodeInsertChild(root_child2, root_child2_child0, 0);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 50);
YGNodeStyleSetHeight(root_child3, 20);
YGNodeInsertChild(root, root_child3, 3);
@@ -1606,20 +1607,20 @@ TEST(YogaTest, align_baseline_multiline_row_and_column) {
}
TEST(YogaTest, align_items_center_child_with_margin_bigger_than_parent) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 52);
YGNodeStyleSetHeight(root, 52);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root_child0, YGAlignCenter);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 10);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeRight, 10);
YGNodeStyleSetWidth(root_child0_child0, 52);
@@ -1665,20 +1666,20 @@ TEST(YogaTest, align_items_center_child_with_margin_bigger_than_parent) {
}
TEST(YogaTest, align_items_flex_end_child_with_margin_bigger_than_parent) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 52);
YGNodeStyleSetHeight(root, 52);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root_child0, YGAlignFlexEnd);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 10);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeRight, 10);
YGNodeStyleSetWidth(root_child0_child0, 52);
@@ -1724,20 +1725,20 @@ TEST(YogaTest, align_items_flex_end_child_with_margin_bigger_than_parent) {
}
TEST(YogaTest, align_items_center_child_without_margin_bigger_than_parent) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 52);
YGNodeStyleSetHeight(root, 52);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root_child0, YGAlignCenter);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 72);
YGNodeStyleSetHeight(root_child0_child0, 72);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
@@ -1781,20 +1782,20 @@ TEST(YogaTest, align_items_center_child_without_margin_bigger_than_parent) {
}
TEST(YogaTest, align_items_flex_end_child_without_margin_bigger_than_parent) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 52);
YGNodeStyleSetHeight(root, 52);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root_child0, YGAlignFlexEnd);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 72);
YGNodeStyleSetHeight(root_child0_child0, 72);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
@@ -1838,26 +1839,26 @@ TEST(YogaTest, align_items_flex_end_child_without_margin_bigger_than_parent) {
}
TEST(YogaTest, align_center_should_size_based_on_content) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root, YGEdgeTop, 20);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root_child0, YGJustifyCenter);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0, 1);
YGNodeStyleSetFlexShrink(root_child0_child0, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0_child0, 20);
YGNodeStyleSetHeight(root_child0_child0_child0, 20);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
@@ -1911,25 +1912,25 @@ TEST(YogaTest, align_center_should_size_based_on_content) {
}
TEST(YogaTest, align_stretch_should_size_based_on_parent) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root, YGEdgeTop, 20);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root_child0, YGJustifyCenter);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0, 1);
YGNodeStyleSetFlexShrink(root_child0_child0, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0_child0, 20);
YGNodeStyleSetHeight(root_child0_child0_child0, 20);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
@@ -1983,23 +1984,23 @@ TEST(YogaTest, align_stretch_should_size_based_on_parent) {
}
TEST(YogaTest, align_flex_start_with_shrinking_children) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root_child0, YGAlignFlexStart);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0, 1);
YGNodeStyleSetFlexShrink(root_child0_child0, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0_child0, 1);
YGNodeStyleSetFlexShrink(root_child0_child0_child0, 1);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
@@ -2053,22 +2054,22 @@ TEST(YogaTest, align_flex_start_with_shrinking_children) {
}
TEST(YogaTest, align_flex_start_with_stretching_children) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0, 1);
YGNodeStyleSetFlexShrink(root_child0_child0, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0_child0, 1);
YGNodeStyleSetFlexShrink(root_child0_child0_child0, 1);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
@@ -2122,23 +2123,23 @@ TEST(YogaTest, align_flex_start_with_stretching_children) {
}
TEST(YogaTest, align_flex_start_with_shrinking_children_with_stretch) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root_child0, YGAlignFlexStart);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0, 1);
YGNodeStyleSetFlexShrink(root_child0_child0, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0_child0, 1);
YGNodeStyleSetFlexShrink(root_child0_child0_child0, 1);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
@@ -2192,23 +2193,23 @@ TEST(YogaTest, align_flex_start_with_shrinking_children_with_stretch) {
}
TEST(YogaTest, align_flex_end_with_row_reverse) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignFlexEnd);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 75);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 3);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 5);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
@@ -2252,22 +2253,22 @@ TEST(YogaTest, align_flex_end_with_row_reverse) {
}
TEST(YogaTest, align_stretch_with_row_reverse) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 75);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 3);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 5);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
diff --git a/tests/generated/YGAlignSelfTest.cpp b/tests/generated/YGAlignSelfTest.cpp
index 4287a370fe..81da59d6f9 100644
--- a/tests/generated/YGAlignSelfTest.cpp
+++ b/tests/generated/YGAlignSelfTest.cpp
@@ -5,22 +5,23 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<>
+ * @generated SignedSource<<43d956746b16865dfacb7b25e8fe367f>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAlignSelfTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, align_self_center) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignSelf(root_child0, YGAlignCenter);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeStyleSetHeight(root_child0, 10);
@@ -55,14 +56,14 @@ TEST(YogaTest, align_self_center) {
}
TEST(YogaTest, align_self_flex_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignSelf(root_child0, YGAlignFlexEnd);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeStyleSetHeight(root_child0, 10);
@@ -97,14 +98,14 @@ TEST(YogaTest, align_self_flex_end) {
}
TEST(YogaTest, align_self_flex_start) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignSelf(root_child0, YGAlignFlexStart);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeStyleSetHeight(root_child0, 10);
@@ -139,15 +140,15 @@ TEST(YogaTest, align_self_flex_start) {
}
TEST(YogaTest, align_self_flex_end_override_flex_start) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignSelf(root_child0, YGAlignFlexEnd);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeStyleSetHeight(root_child0, 10);
@@ -182,27 +183,27 @@ TEST(YogaTest, align_self_flex_end_override_flex_start) {
}
TEST(YogaTest, align_self_baseline) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignSelf(root_child0, YGAlignBaseline);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignSelf(root_child1, YGAlignBaseline);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1_child0, 50);
YGNodeStyleSetHeight(root_child1_child0, 10);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
diff --git a/tests/generated/YGAndroidNewsFeed.cpp b/tests/generated/YGAndroidNewsFeed.cpp
index 060b77349e..ce21b45a61 100644
--- a/tests/generated/YGAndroidNewsFeed.cpp
+++ b/tests/generated/YGAndroidNewsFeed.cpp
@@ -5,33 +5,34 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<<8cfd20a845597bba085375ad4308cdc0>>
+ * @generated SignedSource<<98875d3d64ab8d1a568e81773281be5c>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAndroidNewsFeed.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, android_news_feed) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 1080);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignContent(root_child0_child0, YGAlignStretch);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignContent(root_child0_child0_child0, YGAlignStretch);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0_child0_child0, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root_child0_child0_child0_child0, YGAlignStretch);
YGNodeStyleSetAlignItems(root_child0_child0_child0_child0, YGAlignFlexStart);
@@ -39,18 +40,18 @@ TEST(YogaTest, android_news_feed) {
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeTop, 24);
YGNodeInsertChild(root_child0_child0_child0, root_child0_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0_child0_child0_child0, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root_child0_child0_child0_child0_child0, YGAlignStretch);
YGNodeInsertChild(root_child0_child0_child0_child0, root_child0_child0_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignContent(root_child0_child0_child0_child0_child0_child0, YGAlignStretch);
YGNodeStyleSetWidth(root_child0_child0_child0_child0_child0_child0, 120);
YGNodeStyleSetHeight(root_child0_child0_child0_child0_child0_child0, 120);
YGNodeInsertChild(root_child0_child0_child0_child0_child0, root_child0_child0_child0_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignContent(root_child0_child0_child0_child0_child1, YGAlignStretch);
YGNodeStyleSetFlexShrink(root_child0_child0_child0_child0_child1, 1);
YGNodeStyleSetMargin(root_child0_child0_child0_child0_child1, YGEdgeRight, 36);
@@ -60,22 +61,22 @@ TEST(YogaTest, android_news_feed) {
YGNodeStyleSetPadding(root_child0_child0_child0_child0_child1, YGEdgeBottom, 18);
YGNodeInsertChild(root_child0_child0_child0_child0, root_child0_child0_child0_child0_child1, 1);
- const YGNodeRef root_child0_child0_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0_child0_child0_child1_child0, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root_child0_child0_child0_child0_child1_child0, YGAlignStretch);
YGNodeStyleSetFlexShrink(root_child0_child0_child0_child0_child1_child0, 1);
YGNodeInsertChild(root_child0_child0_child0_child0_child1, root_child0_child0_child0_child0_child1_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0_child1_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0_child1_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignContent(root_child0_child0_child0_child0_child1_child1, YGAlignStretch);
YGNodeStyleSetFlexShrink(root_child0_child0_child0_child0_child1_child1, 1);
YGNodeInsertChild(root_child0_child0_child0_child0_child1, root_child0_child0_child0_child0_child1_child1, 1);
- const YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignContent(root_child0_child0_child1, YGAlignStretch);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child1, 1);
- const YGNodeRef root_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0_child1_child0, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root_child0_child0_child1_child0, YGAlignStretch);
YGNodeStyleSetAlignItems(root_child0_child0_child1_child0, YGAlignFlexStart);
@@ -83,18 +84,18 @@ TEST(YogaTest, android_news_feed) {
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeTop, 24);
YGNodeInsertChild(root_child0_child0_child1, root_child0_child0_child1_child0, 0);
- const YGNodeRef root_child0_child0_child1_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0_child1_child0_child0, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root_child0_child0_child1_child0_child0, YGAlignStretch);
YGNodeInsertChild(root_child0_child0_child1_child0, root_child0_child0_child1_child0_child0, 0);
- const YGNodeRef root_child0_child0_child1_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignContent(root_child0_child0_child1_child0_child0_child0, YGAlignStretch);
YGNodeStyleSetWidth(root_child0_child0_child1_child0_child0_child0, 72);
YGNodeStyleSetHeight(root_child0_child0_child1_child0_child0_child0, 72);
YGNodeInsertChild(root_child0_child0_child1_child0_child0, root_child0_child0_child1_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child1_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignContent(root_child0_child0_child1_child0_child1, YGAlignStretch);
YGNodeStyleSetFlexShrink(root_child0_child0_child1_child0_child1, 1);
YGNodeStyleSetMargin(root_child0_child0_child1_child0_child1, YGEdgeRight, 36);
@@ -104,13 +105,13 @@ TEST(YogaTest, android_news_feed) {
YGNodeStyleSetPadding(root_child0_child0_child1_child0_child1, YGEdgeBottom, 18);
YGNodeInsertChild(root_child0_child0_child1_child0, root_child0_child0_child1_child0_child1, 1);
- const YGNodeRef root_child0_child0_child1_child0_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1_child0_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0_child1_child0_child1_child0, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root_child0_child0_child1_child0_child1_child0, YGAlignStretch);
YGNodeStyleSetFlexShrink(root_child0_child0_child1_child0_child1_child0, 1);
YGNodeInsertChild(root_child0_child0_child1_child0_child1, root_child0_child0_child1_child0_child1_child0, 0);
- const YGNodeRef root_child0_child0_child1_child0_child1_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1_child0_child1_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignContent(root_child0_child0_child1_child0_child1_child1, YGAlignStretch);
YGNodeStyleSetFlexShrink(root_child0_child0_child1_child0_child1_child1, 1);
YGNodeInsertChild(root_child0_child0_child1_child0_child1, root_child0_child0_child1_child0_child1_child1, 1);
diff --git a/tests/generated/YGAspectRatioTest.cpp b/tests/generated/YGAspectRatioTest.cpp
index 48a9898651..21f24b676f 100644
--- a/tests/generated/YGAspectRatioTest.cpp
+++ b/tests/generated/YGAspectRatioTest.cpp
@@ -5,63 +5,64 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGAspectRatioTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, aspect_ratio_does_not_stretch_cross_axis_dim) {
GTEST_SKIP();
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 300);
YGNodeStyleSetHeight(root, 300);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetOverflow(root_child0, YGOverflowScroll);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 0);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0, YGFlexDirectionRow);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0_child0, 2);
YGNodeStyleSetFlexShrink(root_child0_child0_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0_child0_child0, 0);
YGNodeStyleSetAspectRatio(root_child0_child0_child0, 1 / 1);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0_child1, 5);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child1, 1);
- const YGNodeRef root_child0_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0_child2, 1);
YGNodeStyleSetFlexShrink(root_child0_child0_child2, 1);
YGNodeStyleSetFlexBasisPercent(root_child0_child0_child2, 0);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child2, 2);
- const YGNodeRef root_child0_child0_child2_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0_child2_child0, 1);
YGNodeStyleSetFlexShrink(root_child0_child0_child2_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0_child0_child2_child0, 0);
YGNodeStyleSetAspectRatio(root_child0_child0_child2_child0, 1 / 1);
YGNodeInsertChild(root_child0_child0_child2, root_child0_child0_child2_child0, 0);
- const YGNodeRef root_child0_child0_child2_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0_child2_child0_child0, 5);
YGNodeInsertChild(root_child0_child0_child2_child0, root_child0_child0_child2_child0_child0, 0);
- const YGNodeRef root_child0_child0_child2_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0_child2_child0_child1, 1);
YGNodeStyleSetFlexShrink(root_child0_child0_child2_child0_child1, 1);
YGNodeStyleSetFlexBasisPercent(root_child0_child0_child2_child0_child1, 0);
diff --git a/tests/generated/YGBorderTest.cpp b/tests/generated/YGBorderTest.cpp
index f2b72eb2a9..b775e8af89 100644
--- a/tests/generated/YGBorderTest.cpp
+++ b/tests/generated/YGBorderTest.cpp
@@ -5,17 +5,18 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<>
+ * @generated SignedSource<<6b9e472d3a0bac5e3a5501788c9971c6>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGBorderTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, border_no_size) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 10);
YGNodeStyleSetBorder(root, YGEdgeTop, 10);
@@ -41,16 +42,16 @@ TEST(YogaTest, border_no_size) {
}
TEST(YogaTest, border_container_match_child) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 10);
YGNodeStyleSetBorder(root, YGEdgeTop, 10);
YGNodeStyleSetBorder(root, YGEdgeRight, 10);
YGNodeStyleSetBorder(root, YGEdgeBottom, 10);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
@@ -84,9 +85,9 @@ TEST(YogaTest, border_container_match_child) {
}
TEST(YogaTest, border_flex_child) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 10);
YGNodeStyleSetBorder(root, YGEdgeTop, 10);
@@ -95,7 +96,7 @@ TEST(YogaTest, border_flex_child) {
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
@@ -129,9 +130,9 @@ TEST(YogaTest, border_flex_child) {
}
TEST(YogaTest, border_stretch_child) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 10);
YGNodeStyleSetBorder(root, YGEdgeTop, 10);
@@ -140,7 +141,7 @@ TEST(YogaTest, border_stretch_child) {
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -173,9 +174,9 @@ TEST(YogaTest, border_stretch_child) {
}
TEST(YogaTest, border_center_child) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -185,7 +186,7 @@ TEST(YogaTest, border_center_child) {
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
diff --git a/tests/generated/YGDimensionTest.cpp b/tests/generated/YGDimensionTest.cpp
index 6388fd7cd3..829f2b6a80 100644
--- a/tests/generated/YGDimensionTest.cpp
+++ b/tests/generated/YGDimensionTest.cpp
@@ -5,20 +5,21 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<>
+ * @generated SignedSource<<029b6e60daca98deb68e91f06cbd8c76>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGDimensionTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, wrap_child) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
@@ -52,15 +53,15 @@ TEST(YogaTest, wrap_child) {
}
TEST(YogaTest, wrap_grandchild) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
diff --git a/tests/generated/YGDisplayTest.cpp b/tests/generated/YGDisplayTest.cpp
index 3d9ef618f1..a7ab243d3c 100644
--- a/tests/generated/YGDisplayTest.cpp
+++ b/tests/generated/YGDisplayTest.cpp
@@ -5,27 +5,28 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<>
+ * @generated SignedSource<<69ab4deb447f7daa2a701ed648532b50>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGDisplayTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, display_none) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetDisplay(root_child1, YGDisplayNone);
YGNodeInsertChild(root, root_child1, 1);
@@ -69,19 +70,19 @@ TEST(YogaTest, display_none) {
}
TEST(YogaTest, display_none_fixed_size) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeStyleSetDisplay(root_child1, YGDisplayNone);
@@ -126,15 +127,15 @@ TEST(YogaTest, display_none_fixed_size) {
}
TEST(YogaTest, display_none_with_margin) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 10);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 10);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 10);
@@ -144,7 +145,7 @@ TEST(YogaTest, display_none_with_margin) {
YGNodeStyleSetDisplay(root_child0, YGDisplayNone);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -187,35 +188,35 @@ TEST(YogaTest, display_none_with_margin) {
}
TEST(YogaTest, display_none_with_child) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 0);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetFlexShrink(root_child1, 1);
YGNodeStyleSetFlexBasisPercent(root_child1, 0);
YGNodeStyleSetDisplay(root_child1, YGDisplayNone);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1_child0, 1);
YGNodeStyleSetFlexShrink(root_child1_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child1_child0, 0);
YGNodeStyleSetWidth(root_child1_child0, 20);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1);
YGNodeStyleSetFlexShrink(root_child2, 1);
YGNodeStyleSetFlexBasisPercent(root_child2, 0);
@@ -280,19 +281,19 @@ TEST(YogaTest, display_none_with_child) {
}
TEST(YogaTest, display_none_with_position) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetPosition(root_child1, YGEdgeTop, 10);
YGNodeStyleSetDisplay(root_child1, YGDisplayNone);
@@ -337,14 +338,14 @@ TEST(YogaTest, display_none_with_position) {
}
TEST(YogaTest, display_none_with_position_absolute) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
diff --git a/tests/generated/YGFlexDirectionTest.cpp b/tests/generated/YGFlexDirectionTest.cpp
index e64ef9091c..d7b249dede 100644
--- a/tests/generated/YGFlexDirectionTest.cpp
+++ b/tests/generated/YGFlexDirectionTest.cpp
@@ -5,29 +5,30 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<<4a6a69c4e9bfda6dc73198791f553e13>>
+ * @generated SignedSource<<52e047e144a63ab101701faf9b0cf06d>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGFlexDirectionTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, flex_direction_column_no_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -80,22 +81,22 @@ TEST(YogaTest, flex_direction_column_no_height) {
}
TEST(YogaTest, flex_direction_row_no_width) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -148,22 +149,22 @@ TEST(YogaTest, flex_direction_row_no_width) {
}
TEST(YogaTest, flex_direction_column) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -216,23 +217,23 @@ TEST(YogaTest, flex_direction_column) {
}
TEST(YogaTest, flex_direction_row) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -285,23 +286,23 @@ TEST(YogaTest, flex_direction_row) {
}
TEST(YogaTest, flex_direction_column_reverse) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionColumnReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -354,23 +355,23 @@ TEST(YogaTest, flex_direction_column_reverse) {
}
TEST(YogaTest, flex_direction_row_reverse) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRowReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -423,24 +424,24 @@ TEST(YogaTest, flex_direction_row_reverse) {
}
TEST(YogaTest, flex_direction_row_reverse_margin_left) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRowReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root, YGEdgeLeft, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -493,24 +494,24 @@ TEST(YogaTest, flex_direction_row_reverse_margin_left) {
}
TEST(YogaTest, flex_direction_row_reverse_margin_start) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRowReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root, YGEdgeStart, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -563,24 +564,24 @@ TEST(YogaTest, flex_direction_row_reverse_margin_start) {
}
TEST(YogaTest, flex_direction_row_reverse_margin_right) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRowReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root, YGEdgeRight, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -633,24 +634,24 @@ TEST(YogaTest, flex_direction_row_reverse_margin_right) {
}
TEST(YogaTest, flex_direction_row_reverse_margin_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRowReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root, YGEdgeEnd, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -703,24 +704,24 @@ TEST(YogaTest, flex_direction_row_reverse_margin_end) {
}
TEST(YogaTest, flex_direction_column_reverse_margin_top) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionColumnReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root, YGEdgeTop, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -773,24 +774,24 @@ TEST(YogaTest, flex_direction_column_reverse_margin_top) {
}
TEST(YogaTest, flex_direction_column_reverse_margin_bottom) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionColumnReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root, YGEdgeBottom, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -843,24 +844,24 @@ TEST(YogaTest, flex_direction_column_reverse_margin_bottom) {
}
TEST(YogaTest, flex_direction_row_reverse_padding_left) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRowReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeLeft, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -913,24 +914,24 @@ TEST(YogaTest, flex_direction_row_reverse_padding_left) {
}
TEST(YogaTest, flex_direction_row_reverse_padding_start) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRowReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeStart, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -983,24 +984,24 @@ TEST(YogaTest, flex_direction_row_reverse_padding_start) {
}
TEST(YogaTest, flex_direction_row_reverse_padding_right) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRowReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeRight, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1053,24 +1054,24 @@ TEST(YogaTest, flex_direction_row_reverse_padding_right) {
}
TEST(YogaTest, flex_direction_row_reverse_padding_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRowReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeEnd, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1123,24 +1124,24 @@ TEST(YogaTest, flex_direction_row_reverse_padding_end) {
}
TEST(YogaTest, flex_direction_column_reverse_padding_top) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionColumnReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeTop, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1193,24 +1194,24 @@ TEST(YogaTest, flex_direction_column_reverse_padding_top) {
}
TEST(YogaTest, flex_direction_column_reverse_padding_bottom) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionColumnReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeBottom, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1263,24 +1264,24 @@ TEST(YogaTest, flex_direction_column_reverse_padding_bottom) {
}
TEST(YogaTest, flex_direction_row_reverse_border_left) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRowReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeLeft, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1333,24 +1334,24 @@ TEST(YogaTest, flex_direction_row_reverse_border_left) {
}
TEST(YogaTest, flex_direction_row_reverse_border_start) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRowReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeStart, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1403,24 +1404,24 @@ TEST(YogaTest, flex_direction_row_reverse_border_start) {
}
TEST(YogaTest, flex_direction_row_reverse_border_right) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRowReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeRight, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1473,24 +1474,24 @@ TEST(YogaTest, flex_direction_row_reverse_border_right) {
}
TEST(YogaTest, flex_direction_row_reverse_border_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRowReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeEnd, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1543,24 +1544,24 @@ TEST(YogaTest, flex_direction_row_reverse_border_end) {
}
TEST(YogaTest, flex_direction_column_reverse_border_top) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionColumnReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeTop, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1613,24 +1614,24 @@ TEST(YogaTest, flex_direction_column_reverse_border_top) {
}
TEST(YogaTest, flex_direction_column_reverse_border_bottom) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionColumnReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root, YGEdgeBottom, 100);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1683,29 +1684,29 @@ TEST(YogaTest, flex_direction_column_reverse_border_bottom) {
}
TEST(YogaTest, flex_direction_row_reverse_pos_left) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetPosition(root_child0, YGEdgeLeft, 100);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1768,29 +1769,29 @@ TEST(YogaTest, flex_direction_row_reverse_pos_left) {
}
TEST(YogaTest, flex_direction_row_reverse_pos_start) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetPosition(root_child0, YGEdgeStart, 100);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1853,29 +1854,29 @@ TEST(YogaTest, flex_direction_row_reverse_pos_start) {
}
TEST(YogaTest, flex_direction_row_reverse_pos_right) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetPosition(root_child0, YGEdgeRight, 100);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1938,29 +1939,29 @@ TEST(YogaTest, flex_direction_row_reverse_pos_right) {
}
TEST(YogaTest, flex_direction_row_reverse_pos_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetPosition(root_child0, YGEdgeEnd, 100);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -2023,29 +2024,29 @@ TEST(YogaTest, flex_direction_row_reverse_pos_end) {
}
TEST(YogaTest, flex_direction_column_reverse_pos_top) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionColumnReverse);
YGNodeStyleSetPosition(root_child0, YGEdgeTop, 100);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -2108,29 +2109,29 @@ TEST(YogaTest, flex_direction_column_reverse_pos_top) {
}
TEST(YogaTest, flex_direction_column_reverse_pos_bottom) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionColumnReverse);
YGNodeStyleSetPosition(root_child0, YGEdgeBottom, 100);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -2193,31 +2194,31 @@ TEST(YogaTest, flex_direction_column_reverse_pos_bottom) {
}
TEST(YogaTest, flex_direction_row_reverse_inner_pos_left) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0, YGEdgeLeft, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -2280,31 +2281,31 @@ TEST(YogaTest, flex_direction_row_reverse_inner_pos_left) {
}
TEST(YogaTest, flex_direction_row_reverse_inner_pos_right) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0, YGEdgeRight, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -2367,31 +2368,31 @@ TEST(YogaTest, flex_direction_row_reverse_inner_pos_right) {
}
TEST(YogaTest, flex_direction_col_reverse_inner_pos_top) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionColumnReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0, YGEdgeTop, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -2454,31 +2455,31 @@ TEST(YogaTest, flex_direction_col_reverse_inner_pos_top) {
}
TEST(YogaTest, flex_direction_col_reverse_inner_pos_bottom) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionColumnReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0, YGEdgeBottom, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -2543,31 +2544,31 @@ TEST(YogaTest, flex_direction_col_reverse_inner_pos_bottom) {
TEST(YogaTest, flex_direction_row_reverse_inner_pos_start) {
GTEST_SKIP();
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0, YGEdgeStart, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -2632,31 +2633,31 @@ TEST(YogaTest, flex_direction_row_reverse_inner_pos_start) {
TEST(YogaTest, flex_direction_row_reverse_inner_pos_end) {
GTEST_SKIP();
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0, YGEdgeEnd, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -2719,31 +2720,31 @@ TEST(YogaTest, flex_direction_row_reverse_inner_pos_end) {
}
TEST(YogaTest, flex_direction_row_reverse_inner_margin_left) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -2806,31 +2807,31 @@ TEST(YogaTest, flex_direction_row_reverse_inner_margin_left) {
}
TEST(YogaTest, flex_direction_row_reverse_inner_margin_right) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeRight, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -2893,31 +2894,31 @@ TEST(YogaTest, flex_direction_row_reverse_inner_margin_right) {
}
TEST(YogaTest, flex_direction_col_reverse_inner_margin_top) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionColumnReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeTop, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -2980,31 +2981,31 @@ TEST(YogaTest, flex_direction_col_reverse_inner_margin_top) {
}
TEST(YogaTest, flex_direction_col_reverse_inner_margin_bottom) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionColumnReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeBottom, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3067,31 +3068,31 @@ TEST(YogaTest, flex_direction_col_reverse_inner_margin_bottom) {
}
TEST(YogaTest, flex_direction_row_reverse_inner_marign_start) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeStart, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3154,31 +3155,31 @@ TEST(YogaTest, flex_direction_row_reverse_inner_marign_start) {
}
TEST(YogaTest, flex_direction_row_reverse_inner_margin_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeEnd, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3241,31 +3242,31 @@ TEST(YogaTest, flex_direction_row_reverse_inner_margin_end) {
}
TEST(YogaTest, flex_direction_row_reverse_inner_border_left) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root_child0_child0, YGEdgeLeft, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3328,31 +3329,31 @@ TEST(YogaTest, flex_direction_row_reverse_inner_border_left) {
}
TEST(YogaTest, flex_direction_row_reverse_inner_border_right) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root_child0_child0, YGEdgeRight, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3415,31 +3416,31 @@ TEST(YogaTest, flex_direction_row_reverse_inner_border_right) {
}
TEST(YogaTest, flex_direction_col_reverse_inner_border_top) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionColumnReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root_child0_child0, YGEdgeTop, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3502,31 +3503,31 @@ TEST(YogaTest, flex_direction_col_reverse_inner_border_top) {
}
TEST(YogaTest, flex_direction_col_reverse_inner_border_bottom) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionColumnReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root_child0_child0, YGEdgeBottom, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3589,31 +3590,31 @@ TEST(YogaTest, flex_direction_col_reverse_inner_border_bottom) {
}
TEST(YogaTest, flex_direction_row_reverse_inner_border_start) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root_child0_child0, YGEdgeLeft, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3676,31 +3677,31 @@ TEST(YogaTest, flex_direction_row_reverse_inner_border_start) {
}
TEST(YogaTest, flex_direction_row_reverse_inner_border_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetBorder(root_child0_child0, YGEdgeRight, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3763,31 +3764,31 @@ TEST(YogaTest, flex_direction_row_reverse_inner_border_end) {
}
TEST(YogaTest, flex_direction_row_reverse_inner_padding_left) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root_child0_child0, YGEdgeLeft, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3850,31 +3851,31 @@ TEST(YogaTest, flex_direction_row_reverse_inner_padding_left) {
}
TEST(YogaTest, flex_direction_row_reverse_inner_padding_right) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root_child0_child0, YGEdgeRight, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -3937,31 +3938,31 @@ TEST(YogaTest, flex_direction_row_reverse_inner_padding_right) {
}
TEST(YogaTest, flex_direction_col_reverse_inner_padding_top) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionColumnReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root_child0_child0, YGEdgeTop, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -4024,31 +4025,31 @@ TEST(YogaTest, flex_direction_col_reverse_inner_padding_top) {
}
TEST(YogaTest, flex_direction_col_reverse_inner_padding_bottom) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionColumnReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root_child0_child0, YGEdgeBottom, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -4111,31 +4112,31 @@ TEST(YogaTest, flex_direction_col_reverse_inner_padding_bottom) {
}
TEST(YogaTest, flex_direction_row_reverse_inner_padding_start) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root_child0_child0, YGEdgeStart, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -4198,31 +4199,31 @@ TEST(YogaTest, flex_direction_row_reverse_inner_padding_start) {
}
TEST(YogaTest, flex_direction_row_reverse_inner_padding_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root_child0_child0, YGEdgeEnd, 10);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child2, 10);
YGNodeInsertChild(root_child0, root_child0_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -4283,3 +4284,47 @@ TEST(YogaTest, flex_direction_row_reverse_inner_padding_end) {
YGConfigFree(config);
}
+
+TEST(YogaTest, flex_direction_alternating_with_percent) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 200);
+ YGNodeStyleSetHeight(root, 300);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
+ YGNodeStyleSetPositionPercent(root_child0, YGEdgeLeft, 10);
+ YGNodeStyleSetPositionPercent(root_child0, YGEdgeTop, 10);
+ YGNodeStyleSetWidthPercent(root_child0, 50);
+ YGNodeStyleSetHeightPercent(root_child0, 50);
+ YGNodeInsertChild(root, root_child0, 0);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(20, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(30, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(150, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(120, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(30, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(150, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
diff --git a/tests/generated/YGFlexTest.cpp b/tests/generated/YGFlexTest.cpp
index 8d850e71e2..965b31453e 100644
--- a/tests/generated/YGFlexTest.cpp
+++ b/tests/generated/YGFlexTest.cpp
@@ -5,27 +5,28 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<<7404cb93674d4d8047468f8a8fd33d35>>
+ * @generated SignedSource<<66f3152eedefd8718b50d16ea931e255>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGFlexTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, flex_basis_flex_grow_column) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -68,21 +69,21 @@ TEST(YogaTest, flex_basis_flex_grow_column) {
}
TEST(YogaTest, flex_shrink_flex_grow_row) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetWidth(root_child0, 500);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexShrink(root_child1, 1);
YGNodeStyleSetWidth(root_child1, 500);
YGNodeStyleSetHeight(root_child1, 100);
@@ -127,21 +128,21 @@ TEST(YogaTest, flex_shrink_flex_grow_row) {
}
TEST(YogaTest, flex_shrink_flex_grow_child_flex_shrink_other_child) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetWidth(root_child0, 500);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetFlexShrink(root_child1, 1);
YGNodeStyleSetWidth(root_child1, 500);
@@ -187,20 +188,20 @@ TEST(YogaTest, flex_shrink_flex_grow_child_flex_shrink_other_child) {
}
TEST(YogaTest, flex_basis_flex_grow_row) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -243,19 +244,19 @@ TEST(YogaTest, flex_basis_flex_grow_row) {
}
TEST(YogaTest, flex_basis_flex_shrink_column) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexBasis(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -298,20 +299,20 @@ TEST(YogaTest, flex_basis_flex_shrink_column) {
}
TEST(YogaTest, flex_basis_flex_shrink_row) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexBasis(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -354,24 +355,24 @@ TEST(YogaTest, flex_basis_flex_shrink_row) {
}
TEST(YogaTest, flex_shrink_to_zero) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetHeight(root, 75);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexShrink(root_child1, 1);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeStyleSetHeight(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
@@ -425,25 +426,25 @@ TEST(YogaTest, flex_shrink_to_zero) {
}
TEST(YogaTest, flex_basis_overrides_main_size) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
@@ -497,17 +498,17 @@ TEST(YogaTest, flex_basis_overrides_main_size) {
}
TEST(YogaTest, flex_grow_shrink_at_most) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0, 1);
YGNodeStyleSetFlexShrink(root_child0_child0, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
@@ -551,23 +552,23 @@ TEST(YogaTest, flex_grow_shrink_at_most) {
}
TEST(YogaTest, flex_grow_less_than_factor_one) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 0.2f);
YGNodeStyleSetFlexBasis(root_child0, 40);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 0.2f);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 0.4f);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
diff --git a/tests/generated/YGFlexWrapTest.cpp b/tests/generated/YGFlexWrapTest.cpp
index 9fedc2cab1..3c08361fa7 100644
--- a/tests/generated/YGFlexWrapTest.cpp
+++ b/tests/generated/YGFlexWrapTest.cpp
@@ -5,37 +5,38 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<>
+ * @generated SignedSource<<736016d0832b2cf628b204cca95e0141>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGFlexWrapTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, wrap_column) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 30);
YGNodeStyleSetHeight(root_child0, 30);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 30);
YGNodeStyleSetHeight(root_child1, 30);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 30);
YGNodeStyleSetHeight(root_child2, 30);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 30);
YGNodeStyleSetHeight(root_child3, 30);
YGNodeInsertChild(root, root_child3, 3);
@@ -99,30 +100,30 @@ TEST(YogaTest, wrap_column) {
}
TEST(YogaTest, wrap_row) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetWidth(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 30);
YGNodeStyleSetHeight(root_child0, 30);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 30);
YGNodeStyleSetHeight(root_child1, 30);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 30);
YGNodeStyleSetHeight(root_child2, 30);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 30);
YGNodeStyleSetHeight(root_child3, 30);
YGNodeInsertChild(root, root_child3, 3);
@@ -186,31 +187,31 @@ TEST(YogaTest, wrap_row) {
}
TEST(YogaTest, wrap_row_align_items_flex_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignFlexEnd);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetWidth(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 30);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 30);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 30);
YGNodeStyleSetHeight(root_child2, 30);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 30);
YGNodeStyleSetHeight(root_child3, 30);
YGNodeInsertChild(root, root_child3, 3);
@@ -274,31 +275,31 @@ TEST(YogaTest, wrap_row_align_items_flex_end) {
}
TEST(YogaTest, wrap_row_align_items_center) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetWidth(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 30);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 30);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 30);
YGNodeStyleSetHeight(root_child2, 30);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 30);
YGNodeStyleSetHeight(root_child3, 30);
YGNodeInsertChild(root, root_child3, 3);
@@ -362,21 +363,21 @@ TEST(YogaTest, wrap_row_align_items_center) {
}
TEST(YogaTest, flex_wrap_children_with_min_main_overriding_flex_basis) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetWidth(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexBasis(root_child0, 50);
YGNodeStyleSetMinWidth(root_child0, 55);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexBasis(root_child1, 50);
YGNodeStyleSetMinWidth(root_child1, 55);
YGNodeStyleSetHeight(root_child1, 50);
@@ -421,27 +422,27 @@ TEST(YogaTest, flex_wrap_children_with_min_main_overriding_flex_basis) {
}
TEST(YogaTest, flex_wrap_wrap_to_child_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root_child0, YGAlignFlexStart);
YGNodeStyleSetFlexWrap(root_child0, YGWrapWrap);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0_child0, 100);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 100);
YGNodeStyleSetHeight(root_child1, 100);
YGNodeInsertChild(root, root_child1, 1);
@@ -505,20 +506,20 @@ TEST(YogaTest, flex_wrap_wrap_to_child_height) {
}
TEST(YogaTest, flex_wrap_align_stretch_fits_one_row) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetWidth(root, 150);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -561,35 +562,35 @@ TEST(YogaTest, flex_wrap_align_stretch_fits_one_row) {
}
TEST(YogaTest, wrap_reverse_row_align_content_flex_start) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrapReverse);
YGNodeStyleSetWidth(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 30);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 30);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 30);
YGNodeStyleSetHeight(root_child2, 30);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 30);
YGNodeStyleSetHeight(root_child3, 40);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 30);
YGNodeStyleSetHeight(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
@@ -663,36 +664,36 @@ TEST(YogaTest, wrap_reverse_row_align_content_flex_start) {
}
TEST(YogaTest, wrap_reverse_row_align_content_center) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrapReverse);
YGNodeStyleSetWidth(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 30);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 30);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 30);
YGNodeStyleSetHeight(root_child2, 30);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 30);
YGNodeStyleSetHeight(root_child3, 40);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 30);
YGNodeStyleSetHeight(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
@@ -766,35 +767,35 @@ TEST(YogaTest, wrap_reverse_row_align_content_center) {
}
TEST(YogaTest, wrap_reverse_row_single_line_different_size) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrapReverse);
YGNodeStyleSetWidth(root, 300);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 30);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 30);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 30);
YGNodeStyleSetHeight(root_child2, 30);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 30);
YGNodeStyleSetHeight(root_child3, 40);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 30);
YGNodeStyleSetHeight(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
@@ -868,36 +869,36 @@ TEST(YogaTest, wrap_reverse_row_single_line_different_size) {
}
TEST(YogaTest, wrap_reverse_row_align_content_stretch) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrapReverse);
YGNodeStyleSetWidth(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 30);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 30);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 30);
YGNodeStyleSetHeight(root_child2, 30);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 30);
YGNodeStyleSetHeight(root_child3, 40);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 30);
YGNodeStyleSetHeight(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
@@ -971,36 +972,36 @@ TEST(YogaTest, wrap_reverse_row_align_content_stretch) {
}
TEST(YogaTest, wrap_reverse_row_align_content_space_around) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceAround);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrapReverse);
YGNodeStyleSetWidth(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 30);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 30);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 30);
YGNodeStyleSetHeight(root_child2, 30);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 30);
YGNodeStyleSetHeight(root_child3, 40);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 30);
YGNodeStyleSetHeight(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
@@ -1074,36 +1075,36 @@ TEST(YogaTest, wrap_reverse_row_align_content_space_around) {
}
TEST(YogaTest, wrap_reverse_column_fixed_size) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrapReverse);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 30);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 30);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 30);
YGNodeStyleSetHeight(root_child2, 30);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 30);
YGNodeStyleSetHeight(root_child3, 40);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 30);
YGNodeStyleSetHeight(root_child4, 50);
YGNodeInsertChild(root, root_child4, 4);
@@ -1177,25 +1178,25 @@ TEST(YogaTest, wrap_reverse_column_fixed_size) {
}
TEST(YogaTest, wrapped_row_within_align_items_center) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetFlexWrap(root_child0, YGWrapWrap);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 150);
YGNodeStyleSetHeight(root_child0_child0, 80);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 80);
YGNodeStyleSetHeight(root_child0_child1, 80);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
@@ -1249,25 +1250,25 @@ TEST(YogaTest, wrapped_row_within_align_items_center) {
}
TEST(YogaTest, wrapped_row_within_align_items_flex_start) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetFlexWrap(root_child0, YGWrapWrap);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 150);
YGNodeStyleSetHeight(root_child0_child0, 80);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 80);
YGNodeStyleSetHeight(root_child0_child1, 80);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
@@ -1321,25 +1322,25 @@ TEST(YogaTest, wrapped_row_within_align_items_flex_start) {
}
TEST(YogaTest, wrapped_row_within_align_items_flex_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignFlexEnd);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetFlexWrap(root_child0, YGWrapWrap);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 150);
YGNodeStyleSetHeight(root_child0_child0, 80);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 80);
YGNodeStyleSetHeight(root_child0_child1, 80);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
@@ -1393,9 +1394,9 @@ TEST(YogaTest, wrapped_row_within_align_items_flex_end) {
}
TEST(YogaTest, wrapped_column_max_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetAlignContent(root, YGAlignCenter);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
@@ -1404,13 +1405,13 @@ TEST(YogaTest, wrapped_column_max_height) {
YGNodeStyleSetWidth(root, 700);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 500);
YGNodeStyleSetMaxHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1, YGEdgeLeft, 20);
YGNodeStyleSetMargin(root_child1, YGEdgeTop, 20);
YGNodeStyleSetMargin(root_child1, YGEdgeRight, 20);
@@ -1419,7 +1420,7 @@ TEST(YogaTest, wrapped_column_max_height) {
YGNodeStyleSetHeight(root_child1, 200);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 100);
YGNodeStyleSetHeight(root_child2, 100);
YGNodeInsertChild(root, root_child2, 2);
@@ -1473,9 +1474,9 @@ TEST(YogaTest, wrapped_column_max_height) {
}
TEST(YogaTest, wrapped_column_max_height_flex) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetAlignContent(root, YGAlignCenter);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
@@ -1484,7 +1485,7 @@ TEST(YogaTest, wrapped_column_max_height_flex) {
YGNodeStyleSetWidth(root, 700);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 0);
@@ -1493,7 +1494,7 @@ TEST(YogaTest, wrapped_column_max_height_flex) {
YGNodeStyleSetMaxHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetFlexShrink(root_child1, 1);
YGNodeStyleSetFlexBasisPercent(root_child1, 0);
@@ -1505,7 +1506,7 @@ TEST(YogaTest, wrapped_column_max_height_flex) {
YGNodeStyleSetHeight(root_child1, 200);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 100);
YGNodeStyleSetHeight(root_child2, 100);
YGNodeInsertChild(root, root_child2, 2);
@@ -1559,32 +1560,32 @@ TEST(YogaTest, wrapped_column_max_height_flex) {
}
TEST(YogaTest, wrap_nodes_with_content_sizing_overflowing_margin) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetFlexWrap(root_child0, YGWrapWrap);
YGNodeStyleSetWidth(root_child0, 85);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0_child0, 40);
YGNodeStyleSetHeight(root_child0_child0_child0, 40);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child1, YGEdgeRight, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1_child0, 40);
YGNodeStyleSetHeight(root_child0_child1_child0, 40);
YGNodeInsertChild(root_child0_child1, root_child0_child1_child0, 0);
@@ -1658,32 +1659,32 @@ TEST(YogaTest, wrap_nodes_with_content_sizing_overflowing_margin) {
}
TEST(YogaTest, wrap_nodes_with_content_sizing_margin_cross) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetFlexWrap(root_child0, YGWrapWrap);
YGNodeStyleSetWidth(root_child0, 70);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0_child0, 40);
YGNodeStyleSetHeight(root_child0_child0_child0, 40);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child1, YGEdgeTop, 10);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child0_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1_child0, 40);
YGNodeStyleSetHeight(root_child0_child1_child0, 40);
YGNodeInsertChild(root_child0_child1, root_child0_child1_child0, 0);
@@ -1757,21 +1758,21 @@ TEST(YogaTest, wrap_nodes_with_content_sizing_margin_cross) {
}
TEST(YogaTest, wrap_with_min_cross_axis) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetMinHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 400);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 400);
YGNodeStyleSetHeight(root_child1, 200);
YGNodeInsertChild(root, root_child1, 1);
@@ -1815,21 +1816,21 @@ TEST(YogaTest, wrap_with_min_cross_axis) {
}
TEST(YogaTest, wrap_with_max_cross_axis) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetMaxHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 400);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 400);
YGNodeStyleSetHeight(root_child1, 200);
YGNodeInsertChild(root, root_child1, 1);
@@ -1873,14 +1874,14 @@ TEST(YogaTest, wrap_with_max_cross_axis) {
}
TEST(YogaTest, nowrap_expands_flexline_box_to_min_cross) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMinHeight(root, 400);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 0);
@@ -1915,15 +1916,15 @@ TEST(YogaTest, nowrap_expands_flexline_box_to_min_cross) {
}
TEST(YogaTest, wrap_does_not_impose_min_cross_onto_single_flexline) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
YGNodeStyleSetMinHeight(root, 400);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 0);
diff --git a/tests/generated/YGGapTest.cpp b/tests/generated/YGGapTest.cpp
index 06cb8ae449..e459a40325 100644
--- a/tests/generated/YGGapTest.cpp
+++ b/tests/generated/YGGapTest.cpp
@@ -5,17 +5,18 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<<708ff5088d96b0a989669c1d86006e37>>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGGapTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, column_gap_flexible) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 80);
@@ -23,19 +24,19 @@ TEST(YogaTest, column_gap_flexible) {
YGNodeStyleSetGap(root, YGGutterColumn, 10);
YGNodeStyleSetGap(root, YGGutterRow, 20);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 0);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetFlexShrink(root_child1, 1);
YGNodeStyleSetFlexBasisPercent(root_child1, 0);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1);
YGNodeStyleSetFlexShrink(root_child2, 1);
YGNodeStyleSetFlexBasisPercent(root_child2, 0);
@@ -90,24 +91,24 @@ TEST(YogaTest, column_gap_flexible) {
}
TEST(YogaTest, column_gap_inflexible) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 80);
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetGap(root, YGGutterColumn, 10);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -160,26 +161,26 @@ TEST(YogaTest, column_gap_inflexible) {
}
TEST(YogaTest, column_gap_mixed_flexible) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 80);
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetGap(root, YGGutterColumn, 10);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetFlexShrink(root_child1, 1);
YGNodeStyleSetFlexBasisPercent(root_child1, 0);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -232,16 +233,16 @@ TEST(YogaTest, column_gap_mixed_flexible) {
}
TEST(YogaTest, column_gap_child_margins) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 80);
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetGap(root, YGGutterColumn, 10);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 0);
@@ -249,7 +250,7 @@ TEST(YogaTest, column_gap_child_margins) {
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 2);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetFlexShrink(root_child1, 1);
YGNodeStyleSetFlexBasisPercent(root_child1, 0);
@@ -257,7 +258,7 @@ TEST(YogaTest, column_gap_child_margins) {
YGNodeStyleSetMargin(root_child1, YGEdgeRight, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1);
YGNodeStyleSetFlexShrink(root_child2, 1);
YGNodeStyleSetFlexBasisPercent(root_child2, 0);
@@ -314,9 +315,9 @@ TEST(YogaTest, column_gap_child_margins) {
}
TEST(YogaTest, column_row_gap_wrapping) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
@@ -324,47 +325,47 @@ TEST(YogaTest, column_row_gap_wrapping) {
YGNodeStyleSetGap(root, YGGutterColumn, 10);
YGNodeStyleSetGap(root, YGGutterRow, 20);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeStyleSetHeight(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 20);
YGNodeStyleSetHeight(root_child3, 20);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 20);
YGNodeStyleSetHeight(root_child4, 20);
YGNodeInsertChild(root, root_child4, 4);
- const YGNodeRef root_child5 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child5 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child5, 20);
YGNodeStyleSetHeight(root_child5, 20);
YGNodeInsertChild(root, root_child5, 5);
- const YGNodeRef root_child6 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child6 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child6, 20);
YGNodeStyleSetHeight(root_child6, 20);
YGNodeInsertChild(root, root_child6, 6);
- const YGNodeRef root_child7 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child7 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child7, 20);
YGNodeStyleSetHeight(root_child7, 20);
YGNodeInsertChild(root, root_child7, 7);
- const YGNodeRef root_child8 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child8 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child8, 20);
YGNodeStyleSetHeight(root_child8, 20);
YGNodeInsertChild(root, root_child8, 8);
@@ -478,9 +479,9 @@ TEST(YogaTest, column_row_gap_wrapping) {
}
TEST(YogaTest, column_gap_start_index) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
@@ -488,23 +489,23 @@ TEST(YogaTest, column_gap_start_index) {
YGNodeStyleSetGap(root, YGGutterColumn, 10);
YGNodeStyleSetGap(root, YGGutterRow, 20);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeStyleSetHeight(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 20);
YGNodeStyleSetHeight(root_child3, 20);
YGNodeInsertChild(root, root_child3, 3);
@@ -568,24 +569,24 @@ TEST(YogaTest, column_gap_start_index) {
}
TEST(YogaTest, column_gap_justify_flex_start) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetGap(root, YGGutterColumn, 10);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -638,9 +639,9 @@ TEST(YogaTest, column_gap_justify_flex_start) {
}
TEST(YogaTest, column_gap_justify_center) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -648,15 +649,15 @@ TEST(YogaTest, column_gap_justify_center) {
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetGap(root, YGGutterColumn, 10);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -709,9 +710,9 @@ TEST(YogaTest, column_gap_justify_center) {
}
TEST(YogaTest, column_gap_justify_flex_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root, YGJustifyFlexEnd);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -719,15 +720,15 @@ TEST(YogaTest, column_gap_justify_flex_end) {
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetGap(root, YGGutterColumn, 10);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -780,9 +781,9 @@ TEST(YogaTest, column_gap_justify_flex_end) {
}
TEST(YogaTest, column_gap_justify_space_between) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root, YGJustifySpaceBetween);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -790,15 +791,15 @@ TEST(YogaTest, column_gap_justify_space_between) {
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetGap(root, YGGutterColumn, 10);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -851,9 +852,9 @@ TEST(YogaTest, column_gap_justify_space_between) {
}
TEST(YogaTest, column_gap_justify_space_around) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root, YGJustifySpaceAround);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -861,15 +862,15 @@ TEST(YogaTest, column_gap_justify_space_around) {
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetGap(root, YGGutterColumn, 10);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -922,9 +923,9 @@ TEST(YogaTest, column_gap_justify_space_around) {
}
TEST(YogaTest, column_gap_justify_space_evenly) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root, YGJustifySpaceEvenly);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -932,15 +933,15 @@ TEST(YogaTest, column_gap_justify_space_evenly) {
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetGap(root, YGGutterColumn, 10);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -993,9 +994,9 @@ TEST(YogaTest, column_gap_justify_space_evenly) {
}
TEST(YogaTest, column_gap_wrap_align_flex_start) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
@@ -1004,32 +1005,32 @@ TEST(YogaTest, column_gap_wrap_align_flex_start) {
YGNodeStyleSetGap(root, YGGutterColumn, 10);
YGNodeStyleSetGap(root, YGGutterRow, 20);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeStyleSetHeight(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 20);
YGNodeStyleSetHeight(root_child3, 20);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 20);
YGNodeStyleSetHeight(root_child4, 20);
YGNodeInsertChild(root, root_child4, 4);
- const YGNodeRef root_child5 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child5 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child5, 20);
YGNodeStyleSetHeight(root_child5, 20);
YGNodeInsertChild(root, root_child5, 5);
@@ -1113,9 +1114,9 @@ TEST(YogaTest, column_gap_wrap_align_flex_start) {
}
TEST(YogaTest, column_gap_wrap_align_center) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -1125,32 +1126,32 @@ TEST(YogaTest, column_gap_wrap_align_center) {
YGNodeStyleSetGap(root, YGGutterColumn, 10);
YGNodeStyleSetGap(root, YGGutterRow, 20);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeStyleSetHeight(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 20);
YGNodeStyleSetHeight(root_child3, 20);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 20);
YGNodeStyleSetHeight(root_child4, 20);
YGNodeInsertChild(root, root_child4, 4);
- const YGNodeRef root_child5 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child5 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child5, 20);
YGNodeStyleSetHeight(root_child5, 20);
YGNodeInsertChild(root, root_child5, 5);
@@ -1234,9 +1235,9 @@ TEST(YogaTest, column_gap_wrap_align_center) {
}
TEST(YogaTest, column_gap_wrap_align_flex_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignFlexEnd);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -1246,32 +1247,32 @@ TEST(YogaTest, column_gap_wrap_align_flex_end) {
YGNodeStyleSetGap(root, YGGutterColumn, 10);
YGNodeStyleSetGap(root, YGGutterRow, 20);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeStyleSetHeight(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 20);
YGNodeStyleSetHeight(root_child3, 20);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 20);
YGNodeStyleSetHeight(root_child4, 20);
YGNodeInsertChild(root, root_child4, 4);
- const YGNodeRef root_child5 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child5 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child5, 20);
YGNodeStyleSetHeight(root_child5, 20);
YGNodeInsertChild(root, root_child5, 5);
@@ -1355,9 +1356,9 @@ TEST(YogaTest, column_gap_wrap_align_flex_end) {
}
TEST(YogaTest, column_gap_wrap_align_space_between) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceBetween);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -1367,32 +1368,32 @@ TEST(YogaTest, column_gap_wrap_align_space_between) {
YGNodeStyleSetGap(root, YGGutterColumn, 10);
YGNodeStyleSetGap(root, YGGutterRow, 20);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeStyleSetHeight(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 20);
YGNodeStyleSetHeight(root_child3, 20);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 20);
YGNodeStyleSetHeight(root_child4, 20);
YGNodeInsertChild(root, root_child4, 4);
- const YGNodeRef root_child5 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child5 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child5, 20);
YGNodeStyleSetHeight(root_child5, 20);
YGNodeInsertChild(root, root_child5, 5);
@@ -1476,9 +1477,9 @@ TEST(YogaTest, column_gap_wrap_align_space_between) {
}
TEST(YogaTest, column_gap_wrap_align_space_around) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignSpaceAround);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -1488,32 +1489,32 @@ TEST(YogaTest, column_gap_wrap_align_space_around) {
YGNodeStyleSetGap(root, YGGutterColumn, 10);
YGNodeStyleSetGap(root, YGGutterRow, 20);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeStyleSetHeight(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 20);
YGNodeStyleSetHeight(root_child3, 20);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 20);
YGNodeStyleSetHeight(root_child4, 20);
YGNodeInsertChild(root, root_child4, 4);
- const YGNodeRef root_child5 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child5 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child5, 20);
YGNodeStyleSetHeight(root_child5, 20);
YGNodeInsertChild(root, root_child5, 5);
@@ -1597,9 +1598,9 @@ TEST(YogaTest, column_gap_wrap_align_space_around) {
}
TEST(YogaTest, column_gap_wrap_align_stretch) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -1608,27 +1609,27 @@ TEST(YogaTest, column_gap_wrap_align_stretch) {
YGNodeStyleSetHeight(root, 300);
YGNodeStyleSetGap(root, YGGutterColumn, 5);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMinWidth(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetMinWidth(root_child1, 60);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1);
YGNodeStyleSetMinWidth(root_child2, 60);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child3, 1);
YGNodeStyleSetMinWidth(root_child3, 60);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child4, 1);
YGNodeStyleSetMinWidth(root_child4, 60);
YGNodeInsertChild(root, root_child4, 4);
@@ -1702,23 +1703,23 @@ TEST(YogaTest, column_gap_wrap_align_stretch) {
}
TEST(YogaTest, column_gap_determines_parent_width) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetGap(root, YGGutterColumn, 10);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 30);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1771,9 +1772,9 @@ TEST(YogaTest, column_gap_determines_parent_width) {
}
TEST(YogaTest, row_gap_align_items_stretch) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -1783,27 +1784,27 @@ TEST(YogaTest, row_gap_align_items_stretch) {
YGNodeStyleSetGap(root, YGGutterColumn, 10);
YGNodeStyleSetGap(root, YGGutterRow, 20);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 20);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 20);
YGNodeInsertChild(root, root_child4, 4);
- const YGNodeRef root_child5 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child5 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child5, 20);
YGNodeInsertChild(root, root_child5, 5);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1886,9 +1887,9 @@ TEST(YogaTest, row_gap_align_items_stretch) {
}
TEST(YogaTest, row_gap_align_items_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignFlexEnd);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -1898,27 +1899,27 @@ TEST(YogaTest, row_gap_align_items_end) {
YGNodeStyleSetGap(root, YGGutterColumn, 10);
YGNodeStyleSetGap(root, YGGutterRow, 20);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child3, 20);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child4, 20);
YGNodeInsertChild(root, root_child4, 4);
- const YGNodeRef root_child5 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child5 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child5, 20);
YGNodeInsertChild(root, root_child5, 5);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -2001,15 +2002,15 @@ TEST(YogaTest, row_gap_align_items_end) {
}
TEST(YogaTest, row_gap_column_child_margins) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 200);
YGNodeStyleSetGap(root, YGGutterRow, 10);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 0);
@@ -2017,7 +2018,7 @@ TEST(YogaTest, row_gap_column_child_margins) {
YGNodeStyleSetMargin(root_child0, YGEdgeBottom, 2);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetFlexShrink(root_child1, 1);
YGNodeStyleSetFlexBasisPercent(root_child1, 0);
@@ -2025,7 +2026,7 @@ TEST(YogaTest, row_gap_column_child_margins) {
YGNodeStyleSetMargin(root_child1, YGEdgeBottom, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1);
YGNodeStyleSetFlexShrink(root_child2, 1);
YGNodeStyleSetFlexBasisPercent(root_child2, 0);
@@ -2082,9 +2083,9 @@ TEST(YogaTest, row_gap_column_child_margins) {
}
TEST(YogaTest, row_gap_row_wrap_child_margins) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexWrap(root, YGWrapWrap);
@@ -2092,19 +2093,19 @@ TEST(YogaTest, row_gap_row_wrap_child_margins) {
YGNodeStyleSetHeight(root, 200);
YGNodeStyleSetGap(root, YGGutterRow, 10);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 2);
YGNodeStyleSetMargin(root_child0, YGEdgeBottom, 2);
YGNodeStyleSetWidth(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child1, YGEdgeTop, 10);
YGNodeStyleSetMargin(root_child1, YGEdgeBottom, 10);
YGNodeStyleSetWidth(root_child1, 60);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child2, YGEdgeTop, 15);
YGNodeStyleSetMargin(root_child2, YGEdgeBottom, 15);
YGNodeStyleSetWidth(root_child2, 60);
@@ -2159,22 +2160,22 @@ TEST(YogaTest, row_gap_row_wrap_child_margins) {
}
TEST(YogaTest, row_gap_determines_parent_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetGap(root, YGGutterRow, 10);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child2, 30);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -2225,3 +2226,932 @@ TEST(YogaTest, row_gap_determines_parent_height) {
YGConfigFree(config);
}
+
+TEST(YogaTest, row_gap_percent_wrapping) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetFlexWrap(root, YGWrapWrap);
+ YGNodeStyleSetPadding(root, YGEdgeLeft, 10);
+ YGNodeStyleSetPadding(root, YGEdgeTop, 10);
+ YGNodeStyleSetPadding(root, YGEdgeRight, 10);
+ YGNodeStyleSetPadding(root, YGEdgeBottom, 10);
+ YGNodeStyleSetWidth(root, 300);
+ YGNodeStyleSetHeight(root, 700);
+ YGNodeStyleSetGapPercent(root, YGGutterColumn, 10);
+ YGNodeStyleSetGapPercent(root, YGGutterRow, 10);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child0, 100);
+ YGNodeStyleSetHeight(root_child0, 100);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child1, 100);
+ YGNodeStyleSetHeight(root_child1, 100);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child2, 100);
+ YGNodeStyleSetHeight(root_child2, 100);
+ YGNodeInsertChild(root, root_child2, 2);
+
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child3, 100);
+ YGNodeStyleSetHeight(root_child3, 100);
+ YGNodeInsertChild(root, root_child3, 3);
+
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child4, 100);
+ YGNodeStyleSetHeight(root_child4, 100);
+ YGNodeInsertChild(root, root_child4, 4);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(700, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(138, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(178, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child2));
+
+ ASSERT_FLOAT_EQ(138, YGNodeLayoutGetLeft(root_child3));
+ ASSERT_FLOAT_EQ(178, YGNodeLayoutGetTop(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child3));
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root_child4));
+ ASSERT_FLOAT_EQ(346, YGNodeLayoutGetTop(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child4));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(700, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(190, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(62, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(190, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(178, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child2));
+
+ ASSERT_FLOAT_EQ(62, YGNodeLayoutGetLeft(root_child3));
+ ASSERT_FLOAT_EQ(178, YGNodeLayoutGetTop(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child3));
+
+ ASSERT_FLOAT_EQ(190, YGNodeLayoutGetLeft(root_child4));
+ ASSERT_FLOAT_EQ(346, YGNodeLayoutGetTop(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child4));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, row_gap_percent_determines_parent_height) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetFlexWrap(root, YGWrapWrap);
+ YGNodeStyleSetWidth(root, 300);
+ YGNodeStyleSetGapPercent(root, YGGutterColumn, 10);
+ YGNodeStyleSetGapPercent(root, YGGutterRow, 10);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child0, 100);
+ YGNodeStyleSetHeight(root_child0, 100);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child1, 100);
+ YGNodeStyleSetHeight(root_child1, 100);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child2, 100);
+ YGNodeStyleSetHeight(root_child2, 100);
+ YGNodeInsertChild(root, root_child2, 2);
+
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child3, 100);
+ YGNodeStyleSetHeight(root_child3, 100);
+ YGNodeInsertChild(root, root_child3, 3);
+
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child4, 100);
+ YGNodeStyleSetHeight(root_child4, 100);
+ YGNodeInsertChild(root, root_child4, 4);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(130, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child2));
+
+ ASSERT_FLOAT_EQ(130, YGNodeLayoutGetLeft(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetTop(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child3));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child4));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetTop(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child4));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(70, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child2));
+
+ ASSERT_FLOAT_EQ(70, YGNodeLayoutGetLeft(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetTop(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child3));
+
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetLeft(root_child4));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetTop(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child4));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, row_gap_percent_wrapping_with_both_content_padding_and_item_padding) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetFlexWrap(root, YGWrapWrap);
+ YGNodeStyleSetPadding(root, YGEdgeLeft, 10);
+ YGNodeStyleSetPadding(root, YGEdgeTop, 10);
+ YGNodeStyleSetPadding(root, YGEdgeRight, 10);
+ YGNodeStyleSetPadding(root, YGEdgeBottom, 10);
+ YGNodeStyleSetWidth(root, 300);
+ YGNodeStyleSetHeight(root, 700);
+ YGNodeStyleSetGapPercent(root, YGGutterColumn, 10);
+ YGNodeStyleSetGapPercent(root, YGGutterRow, 10);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetPadding(root_child0, YGEdgeLeft, 10);
+ YGNodeStyleSetPadding(root_child0, YGEdgeTop, 10);
+ YGNodeStyleSetPadding(root_child0, YGEdgeRight, 10);
+ YGNodeStyleSetPadding(root_child0, YGEdgeBottom, 10);
+ YGNodeStyleSetWidth(root_child0, 100);
+ YGNodeStyleSetHeight(root_child0, 100);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetPadding(root_child1, YGEdgeLeft, 10);
+ YGNodeStyleSetPadding(root_child1, YGEdgeTop, 10);
+ YGNodeStyleSetPadding(root_child1, YGEdgeRight, 10);
+ YGNodeStyleSetPadding(root_child1, YGEdgeBottom, 10);
+ YGNodeStyleSetWidth(root_child1, 100);
+ YGNodeStyleSetHeight(root_child1, 100);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetPadding(root_child2, YGEdgeLeft, 10);
+ YGNodeStyleSetPadding(root_child2, YGEdgeTop, 10);
+ YGNodeStyleSetPadding(root_child2, YGEdgeRight, 10);
+ YGNodeStyleSetPadding(root_child2, YGEdgeBottom, 10);
+ YGNodeStyleSetWidth(root_child2, 100);
+ YGNodeStyleSetHeight(root_child2, 100);
+ YGNodeInsertChild(root, root_child2, 2);
+
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetPadding(root_child3, YGEdgeLeft, 10);
+ YGNodeStyleSetPadding(root_child3, YGEdgeTop, 10);
+ YGNodeStyleSetPadding(root_child3, YGEdgeRight, 10);
+ YGNodeStyleSetPadding(root_child3, YGEdgeBottom, 10);
+ YGNodeStyleSetWidth(root_child3, 100);
+ YGNodeStyleSetHeight(root_child3, 100);
+ YGNodeInsertChild(root, root_child3, 3);
+
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetPadding(root_child4, YGEdgeLeft, 10);
+ YGNodeStyleSetPadding(root_child4, YGEdgeTop, 10);
+ YGNodeStyleSetPadding(root_child4, YGEdgeRight, 10);
+ YGNodeStyleSetPadding(root_child4, YGEdgeBottom, 10);
+ YGNodeStyleSetWidth(root_child4, 100);
+ YGNodeStyleSetHeight(root_child4, 100);
+ YGNodeInsertChild(root, root_child4, 4);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(700, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(138, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(178, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child2));
+
+ ASSERT_FLOAT_EQ(138, YGNodeLayoutGetLeft(root_child3));
+ ASSERT_FLOAT_EQ(178, YGNodeLayoutGetTop(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child3));
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root_child4));
+ ASSERT_FLOAT_EQ(346, YGNodeLayoutGetTop(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child4));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(700, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(190, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(62, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(190, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(178, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child2));
+
+ ASSERT_FLOAT_EQ(62, YGNodeLayoutGetLeft(root_child3));
+ ASSERT_FLOAT_EQ(178, YGNodeLayoutGetTop(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child3));
+
+ ASSERT_FLOAT_EQ(190, YGNodeLayoutGetLeft(root_child4));
+ ASSERT_FLOAT_EQ(346, YGNodeLayoutGetTop(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child4));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, row_gap_percent_wrapping_with_both_content_padding) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetFlexWrap(root, YGWrapWrap);
+ YGNodeStyleSetPadding(root, YGEdgeLeft, 10);
+ YGNodeStyleSetPadding(root, YGEdgeTop, 10);
+ YGNodeStyleSetPadding(root, YGEdgeRight, 10);
+ YGNodeStyleSetPadding(root, YGEdgeBottom, 10);
+ YGNodeStyleSetWidth(root, 300);
+ YGNodeStyleSetHeight(root, 700);
+ YGNodeStyleSetGapPercent(root, YGGutterColumn, 10);
+ YGNodeStyleSetGapPercent(root, YGGutterRow, 10);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child0, 100);
+ YGNodeStyleSetHeight(root_child0, 100);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child1, 100);
+ YGNodeStyleSetHeight(root_child1, 100);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child2, 100);
+ YGNodeStyleSetHeight(root_child2, 100);
+ YGNodeInsertChild(root, root_child2, 2);
+
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child3, 100);
+ YGNodeStyleSetHeight(root_child3, 100);
+ YGNodeInsertChild(root, root_child3, 3);
+
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child4, 100);
+ YGNodeStyleSetHeight(root_child4, 100);
+ YGNodeInsertChild(root, root_child4, 4);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(700, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(138, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(178, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child2));
+
+ ASSERT_FLOAT_EQ(138, YGNodeLayoutGetLeft(root_child3));
+ ASSERT_FLOAT_EQ(178, YGNodeLayoutGetTop(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child3));
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root_child4));
+ ASSERT_FLOAT_EQ(346, YGNodeLayoutGetTop(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child4));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(700, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(190, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(62, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(190, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(178, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child2));
+
+ ASSERT_FLOAT_EQ(62, YGNodeLayoutGetLeft(root_child3));
+ ASSERT_FLOAT_EQ(178, YGNodeLayoutGetTop(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child3));
+
+ ASSERT_FLOAT_EQ(190, YGNodeLayoutGetLeft(root_child4));
+ ASSERT_FLOAT_EQ(346, YGNodeLayoutGetTop(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child4));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, row_gap_percent_wrapping_with_content_margin) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetFlexWrap(root, YGWrapWrap);
+ YGNodeStyleSetMargin(root, YGEdgeLeft, 10);
+ YGNodeStyleSetMargin(root, YGEdgeTop, 10);
+ YGNodeStyleSetMargin(root, YGEdgeRight, 10);
+ YGNodeStyleSetMargin(root, YGEdgeBottom, 10);
+ YGNodeStyleSetWidth(root, 300);
+ YGNodeStyleSetHeight(root, 700);
+ YGNodeStyleSetGapPercent(root, YGGutterColumn, 10);
+ YGNodeStyleSetGapPercent(root, YGGutterRow, 10);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child0, 100);
+ YGNodeStyleSetHeight(root_child0, 100);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child1, 100);
+ YGNodeStyleSetHeight(root_child1, 100);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child2, 100);
+ YGNodeStyleSetHeight(root_child2, 100);
+ YGNodeInsertChild(root, root_child2, 2);
+
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child3, 100);
+ YGNodeStyleSetHeight(root_child3, 100);
+ YGNodeInsertChild(root, root_child3, 3);
+
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child4, 100);
+ YGNodeStyleSetHeight(root_child4, 100);
+ YGNodeInsertChild(root, root_child4, 4);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(700, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(130, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(170, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child2));
+
+ ASSERT_FLOAT_EQ(130, YGNodeLayoutGetLeft(root_child3));
+ ASSERT_FLOAT_EQ(170, YGNodeLayoutGetTop(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child3));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child4));
+ ASSERT_FLOAT_EQ(340, YGNodeLayoutGetTop(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child4));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(700, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(70, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(170, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child2));
+
+ ASSERT_FLOAT_EQ(70, YGNodeLayoutGetLeft(root_child3));
+ ASSERT_FLOAT_EQ(170, YGNodeLayoutGetTop(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child3));
+
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetLeft(root_child4));
+ ASSERT_FLOAT_EQ(340, YGNodeLayoutGetTop(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child4));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, row_gap_percent_wrapping_with_content_margin_and_padding) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetFlexWrap(root, YGWrapWrap);
+ YGNodeStyleSetMargin(root, YGEdgeLeft, 10);
+ YGNodeStyleSetMargin(root, YGEdgeTop, 10);
+ YGNodeStyleSetMargin(root, YGEdgeRight, 10);
+ YGNodeStyleSetMargin(root, YGEdgeBottom, 10);
+ YGNodeStyleSetPadding(root, YGEdgeLeft, 10);
+ YGNodeStyleSetPadding(root, YGEdgeTop, 10);
+ YGNodeStyleSetPadding(root, YGEdgeRight, 10);
+ YGNodeStyleSetPadding(root, YGEdgeBottom, 10);
+ YGNodeStyleSetWidth(root, 300);
+ YGNodeStyleSetHeight(root, 700);
+ YGNodeStyleSetGapPercent(root, YGGutterColumn, 10);
+ YGNodeStyleSetGapPercent(root, YGGutterRow, 10);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child0, 100);
+ YGNodeStyleSetHeight(root_child0, 100);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child1, 100);
+ YGNodeStyleSetHeight(root_child1, 100);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child2, 100);
+ YGNodeStyleSetHeight(root_child2, 100);
+ YGNodeInsertChild(root, root_child2, 2);
+
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child3, 100);
+ YGNodeStyleSetHeight(root_child3, 100);
+ YGNodeInsertChild(root, root_child3, 3);
+
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child4, 100);
+ YGNodeStyleSetHeight(root_child4, 100);
+ YGNodeInsertChild(root, root_child4, 4);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(700, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(138, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(178, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child2));
+
+ ASSERT_FLOAT_EQ(138, YGNodeLayoutGetLeft(root_child3));
+ ASSERT_FLOAT_EQ(178, YGNodeLayoutGetTop(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child3));
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root_child4));
+ ASSERT_FLOAT_EQ(346, YGNodeLayoutGetTop(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child4));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(700, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(190, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(62, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(190, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(178, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child2));
+
+ ASSERT_FLOAT_EQ(62, YGNodeLayoutGetLeft(root_child3));
+ ASSERT_FLOAT_EQ(178, YGNodeLayoutGetTop(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child3));
+
+ ASSERT_FLOAT_EQ(190, YGNodeLayoutGetLeft(root_child4));
+ ASSERT_FLOAT_EQ(346, YGNodeLayoutGetTop(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child4));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, row_gap_percent_wrapping_with_flexible_content) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 300);
+ YGNodeStyleSetHeight(root, 300);
+ YGNodeStyleSetGapPercent(root, YGGutterColumn, 10);
+ YGNodeStyleSetGapPercent(root, YGGutterRow, 10);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexGrow(root_child0, 1);
+ YGNodeStyleSetFlexShrink(root_child0, 1);
+ YGNodeStyleSetFlexBasisPercent(root_child0, 0);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexGrow(root_child1, 1);
+ YGNodeStyleSetFlexShrink(root_child1, 1);
+ YGNodeStyleSetFlexBasisPercent(root_child1, 0);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexGrow(root_child2, 1);
+ YGNodeStyleSetFlexShrink(root_child2, 1);
+ YGNodeStyleSetFlexBasisPercent(root_child2, 0);
+ YGNodeInsertChild(root, root_child2, 2);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(80, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(110, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(80, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(220, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(80, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(220, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(80, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(110, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(80, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(80, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, row_gap_percent_wrapping_with_mixed_flexible_content) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 300);
+ YGNodeStyleSetHeight(root, 300);
+ YGNodeStyleSetGapPercent(root, YGGutterColumn, 10);
+ YGNodeStyleSetGapPercent(root, YGGutterRow, 10);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child0, 10);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexGrow(root_child1, 1);
+ YGNodeStyleSetFlexShrink(root_child1, 1);
+ YGNodeStyleSetFlexBasisPercent(root_child1, 0);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidthPercent(root_child2, 10);
+ YGNodeInsertChild(root, root_child2, 2);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(270, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(30, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(290, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(60, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(30, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, row_gap_percent_wrapping_with_min_width) {
+ GTEST_SKIP();
+
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetFlexWrap(root, YGWrapWrap);
+ YGNodeStyleSetMinWidth(root, 300);
+ YGNodeStyleSetGapPercent(root, YGGutterColumn, 10);
+ YGNodeStyleSetGapPercent(root, YGGutterRow, 10);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child0, 100);
+ YGNodeStyleSetHeight(root_child0, 100);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child1, 100);
+ YGNodeStyleSetHeight(root_child1, 100);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child2, 100);
+ YGNodeStyleSetHeight(root_child2, 100);
+ YGNodeInsertChild(root, root_child2, 2);
+
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child3, 100);
+ YGNodeStyleSetHeight(root_child3, 100);
+ YGNodeInsertChild(root, root_child3, 3);
+
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child4, 100);
+ YGNodeStyleSetHeight(root_child4, 100);
+ YGNodeInsertChild(root, root_child4, 4);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(130, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child2));
+
+ ASSERT_FLOAT_EQ(130, YGNodeLayoutGetLeft(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetTop(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child3));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child4));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetTop(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child4));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(300, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(70, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child2));
+
+ ASSERT_FLOAT_EQ(70, YGNodeLayoutGetLeft(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetTop(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child3));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child3));
+
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetLeft(root_child4));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetTop(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child4));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child4));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
diff --git a/tests/generated/YGIntrinsicSizeTest.cpp b/tests/generated/YGIntrinsicSizeTest.cpp
new file mode 100644
index 0000000000..6fa3fd67b7
--- /dev/null
+++ b/tests/generated/YGIntrinsicSizeTest.cpp
@@ -0,0 +1,497 @@
+/*
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ * clang-format off
+ * @generated SignedSource<<112035ed7718c93e29fefe32eb90f7d5>>
+ * generated by gentest/gentest-driver.ts from gentest/fixtures/YGIntrinsicSizeTest.html
+ */
+
+#include
+#include
+#include "../util/TestUtil.h"
+
+TEST(YogaTest, contains_inner_text_long_word) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 2000);
+ YGNodeStyleSetHeight(root, 2000);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
+ YGNodeInsertChild(root, root_child0, 0);
+ YGNodeSetContext(root_child0, (void*)"LoremipsumdolorsitametconsecteturadipiscingelitSedeleifasdfettortoracauctorFuscerhoncusipsumtemporerosaliquamconsequatPraesentsoda");
+ YGNodeSetMeasureFunc(root_child0, &facebook::yoga::test::IntrinsicSizeMeasure);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(1300, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(700, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(1300, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(10, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, contains_inner_text_no_width_no_height) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 2000);
+ YGNodeStyleSetHeight(root, 2000);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
+ YGNodeInsertChild(root, root_child0, 0);
+ YGNodeSetContext(root_child0, (void*)"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum.");
+ YGNodeSetMeasureFunc(root_child0, &facebook::yoga::test::IntrinsicSizeMeasure);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(70, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(70, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, contains_inner_text_no_width_no_height_long_word_in_paragraph) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 2000);
+ YGNodeStyleSetHeight(root, 2000);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
+ YGNodeInsertChild(root, root_child0, 0);
+ YGNodeSetContext(root_child0, (void*)"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus loremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumloremipsumlorem Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum.");
+ YGNodeSetMeasureFunc(root_child0, &facebook::yoga::test::IntrinsicSizeMeasure);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(70, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(70, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, contains_inner_text_fixed_width) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 2000);
+ YGNodeStyleSetHeight(root, 2000);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
+ YGNodeStyleSetWidth(root_child0, 100);
+ YGNodeInsertChild(root, root_child0, 0);
+ YGNodeSetContext(root_child0, (void*)"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum.");
+ YGNodeSetMeasureFunc(root_child0, &facebook::yoga::test::IntrinsicSizeMeasure);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(1290, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(1900, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(1290, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, contains_inner_text_no_width_fixed_height) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 2000);
+ YGNodeStyleSetHeight(root, 2000);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
+ YGNodeStyleSetHeight(root_child0, 20);
+ YGNodeInsertChild(root, root_child0, 0);
+ YGNodeSetContext(root_child0, (void*)"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum.");
+ YGNodeSetMeasureFunc(root_child0, &facebook::yoga::test::IntrinsicSizeMeasure);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(20, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(20, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, contains_inner_text_fixed_width_fixed_height) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 2000);
+ YGNodeStyleSetHeight(root, 2000);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
+ YGNodeStyleSetWidth(root_child0, 50);
+ YGNodeStyleSetHeight(root_child0, 20);
+ YGNodeInsertChild(root, root_child0, 0);
+ YGNodeSetContext(root_child0, (void*)"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum.");
+ YGNodeSetMeasureFunc(root_child0, &facebook::yoga::test::IntrinsicSizeMeasure);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(20, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(1950, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(20, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, contains_inner_text_max_width_max_height) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 2000);
+ YGNodeStyleSetHeight(root, 2000);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
+ YGNodeStyleSetMaxWidth(root_child0, 50);
+ YGNodeStyleSetMaxHeight(root_child0, 20);
+ YGNodeInsertChild(root, root_child0, 0);
+ YGNodeSetContext(root_child0, (void*)"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum.");
+ YGNodeSetMeasureFunc(root_child0, &facebook::yoga::test::IntrinsicSizeMeasure);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(20, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(1950, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(20, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, contains_inner_text_max_width) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 2000);
+ YGNodeStyleSetHeight(root, 2000);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
+ YGNodeStyleSetMaxWidth(root_child0, 100);
+ YGNodeInsertChild(root, root_child0, 0);
+ YGNodeSetContext(root_child0, (void*)"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum.");
+ YGNodeSetMeasureFunc(root_child0, &facebook::yoga::test::IntrinsicSizeMeasure);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(1290, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(1900, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(1290, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, contains_inner_text_fixed_width_shorter_text) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 2000);
+ YGNodeStyleSetHeight(root, 2000);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
+ YGNodeStyleSetWidth(root_child0, 100);
+ YGNodeInsertChild(root, root_child0, 0);
+ YGNodeSetContext(root_child0, (void*)"Lorem ipsum");
+ YGNodeSetMeasureFunc(root_child0, &facebook::yoga::test::IntrinsicSizeMeasure);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(20, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(1900, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(20, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, contains_inner_text_fixed_height_shorter_text) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 2000);
+ YGNodeStyleSetHeight(root, 2000);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
+ YGNodeStyleSetHeight(root_child0, 100);
+ YGNodeInsertChild(root, root_child0, 0);
+ YGNodeSetContext(root_child0, (void*)"Lorem ipsum");
+ YGNodeSetMeasureFunc(root_child0, &facebook::yoga::test::IntrinsicSizeMeasure);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(110, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(1890, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(110, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, contains_inner_text_max_height) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 2000);
+ YGNodeStyleSetHeight(root, 2000);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
+ YGNodeStyleSetMaxHeight(root_child0, 20);
+ YGNodeInsertChild(root, root_child0, 0);
+ YGNodeSetContext(root_child0, (void*)"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifasd et tortor ac auctor. Integer at volutpat libero, sed elementum dui interdum id. Aliquam consectetur massa vel neque aliquet, quis consequat risus fringilla. Fusce rhoncus ipsum tempor eros aliquam, vel tempus metus ullamcorper. Nam at nulla sed tellus vestibulum fringilla vel sit amet ligula. Proin velit lectus, euismod sit amet quam vel ultricies dolor, vitae finibus lorem ipsum. Pellentesque molestie at mi sit amet dictum. Donec vehicula lacinia felis sit amet consectetur. Praesent sodales enim sapien, sed varius ipsum pellentesque vel. Aenean eu mi eu justo tincidunt finibus vel sit amet ipsum. Sed bibasdum purus vel ipsum sagittis, quis fermentum dolor lobortis. Etiam vulputate eleifasd lectus vel varius. Phasellus imperdiet lectus sit amet ipsum egestas, ut bibasdum ipsum malesuada. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed mollis eros sit amet elit porttitor, vel venenatis turpis venenatis. Nulla tempus tortor at eros efficitur, sit amet dapibus ipsum malesuada. Ut at mauris sed nunc malesuada convallis. Duis id sem vel magna varius eleifasd vel at est. Donec eget orci a ipsum tempor lobortis. Sed at consectetur ipsum.");
+ YGNodeSetMeasureFunc(root_child0, &facebook::yoga::test::IntrinsicSizeMeasure);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(20, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(2000, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(20, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
diff --git a/tests/generated/YGJustifyContentTest.cpp b/tests/generated/YGJustifyContentTest.cpp
index db93eb8027..0552bd4931 100644
--- a/tests/generated/YGJustifyContentTest.cpp
+++ b/tests/generated/YGJustifyContentTest.cpp
@@ -5,31 +5,32 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<<6fd9f96e80468c69192ce2a29444b734>>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGJustifyContentTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, justify_content_row_flex_start) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 102);
YGNodeStyleSetHeight(root, 102);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -82,24 +83,24 @@ TEST(YogaTest, justify_content_row_flex_start) {
}
TEST(YogaTest, justify_content_row_flex_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root, YGJustifyFlexEnd);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 102);
YGNodeStyleSetHeight(root, 102);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -152,24 +153,24 @@ TEST(YogaTest, justify_content_row_flex_end) {
}
TEST(YogaTest, justify_content_row_center) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 102);
YGNodeStyleSetHeight(root, 102);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -222,24 +223,24 @@ TEST(YogaTest, justify_content_row_center) {
}
TEST(YogaTest, justify_content_row_space_between) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root, YGJustifySpaceBetween);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 102);
YGNodeStyleSetHeight(root, 102);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -292,24 +293,24 @@ TEST(YogaTest, justify_content_row_space_between) {
}
TEST(YogaTest, justify_content_row_space_around) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root, YGJustifySpaceAround);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 102);
YGNodeStyleSetHeight(root, 102);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -362,22 +363,22 @@ TEST(YogaTest, justify_content_row_space_around) {
}
TEST(YogaTest, justify_content_column_flex_start) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 102);
YGNodeStyleSetHeight(root, 102);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -430,23 +431,23 @@ TEST(YogaTest, justify_content_column_flex_start) {
}
TEST(YogaTest, justify_content_column_flex_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyFlexEnd);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 102);
YGNodeStyleSetHeight(root, 102);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -499,23 +500,23 @@ TEST(YogaTest, justify_content_column_flex_end) {
}
TEST(YogaTest, justify_content_column_center) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 102);
YGNodeStyleSetHeight(root, 102);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -568,23 +569,23 @@ TEST(YogaTest, justify_content_column_center) {
}
TEST(YogaTest, justify_content_column_space_between) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifySpaceBetween);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 102);
YGNodeStyleSetHeight(root, 102);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -637,23 +638,23 @@ TEST(YogaTest, justify_content_column_space_between) {
}
TEST(YogaTest, justify_content_column_space_around) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifySpaceAround);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 102);
YGNodeStyleSetHeight(root, 102);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -706,16 +707,16 @@ TEST(YogaTest, justify_content_column_space_around) {
}
TEST(YogaTest, justify_content_row_min_width_and_margin) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root, YGEdgeLeft, 100);
YGNodeStyleSetMinWidth(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
@@ -749,9 +750,9 @@ TEST(YogaTest, justify_content_row_min_width_and_margin) {
}
TEST(YogaTest, justify_content_row_max_width_and_margin) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -759,7 +760,7 @@ TEST(YogaTest, justify_content_row_max_width_and_margin) {
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetMaxWidth(root, 80);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
@@ -793,15 +794,15 @@ TEST(YogaTest, justify_content_row_max_width_and_margin) {
}
TEST(YogaTest, justify_content_column_min_height_and_margin) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root, YGEdgeTop, 100);
YGNodeStyleSetMinHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
@@ -835,16 +836,16 @@ TEST(YogaTest, justify_content_column_min_height_and_margin) {
}
TEST(YogaTest, justify_content_column_max_height_and_margin) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root, YGEdgeTop, 100);
YGNodeStyleSetHeight(root, 100);
YGNodeStyleSetMaxHeight(root, 80);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
@@ -878,23 +879,23 @@ TEST(YogaTest, justify_content_column_max_height_and_margin) {
}
TEST(YogaTest, justify_content_column_space_evenly) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifySpaceEvenly);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 102);
YGNodeStyleSetHeight(root, 102);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -947,24 +948,24 @@ TEST(YogaTest, justify_content_column_space_evenly) {
}
TEST(YogaTest, justify_content_row_space_evenly) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root, YGJustifySpaceEvenly);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 102);
YGNodeStyleSetHeight(root, 102);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1017,20 +1018,20 @@ TEST(YogaTest, justify_content_row_space_evenly) {
}
TEST(YogaTest, justify_content_min_width_with_padding_child_width_greater_than_parent) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 1000);
YGNodeStyleSetHeight(root, 1584);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root_child0, YGAlignStretch);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root_child0_child0, YGJustifyCenter);
YGNodeStyleSetAlignContent(root_child0_child0, YGAlignStretch);
@@ -1039,7 +1040,7 @@ TEST(YogaTest, justify_content_min_width_with_padding_child_width_greater_than_p
YGNodeStyleSetMinWidth(root_child0_child0, 400);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0_child0, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root_child0_child0_child0, YGAlignStretch);
YGNodeStyleSetWidth(root_child0_child0_child0, 300);
@@ -1095,20 +1096,20 @@ TEST(YogaTest, justify_content_min_width_with_padding_child_width_greater_than_p
}
TEST(YogaTest, justify_content_min_width_with_padding_child_width_lower_than_parent) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignContent(root, YGAlignStretch);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 1080);
YGNodeStyleSetHeight(root, 1584);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root_child0, YGAlignStretch);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root_child0_child0, YGJustifyCenter);
YGNodeStyleSetAlignContent(root_child0_child0, YGAlignStretch);
@@ -1117,7 +1118,7 @@ TEST(YogaTest, justify_content_min_width_with_padding_child_width_lower_than_par
YGNodeStyleSetMinWidth(root_child0_child0, 400);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0_child0, YGFlexDirectionRow);
YGNodeStyleSetAlignContent(root_child0_child0_child0, YGAlignStretch);
YGNodeStyleSetWidth(root_child0_child0_child0, 199);
@@ -1173,25 +1174,25 @@ TEST(YogaTest, justify_content_min_width_with_padding_child_width_lower_than_par
}
TEST(YogaTest, justify_content_space_between_indefinite_container_dim_with_free_space) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 300);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root_child0, YGJustifySpaceBetween);
YGNodeStyleSetMinWidth(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0, 50);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 50);
YGNodeStyleSetHeight(root_child0_child1, 50);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
@@ -1245,23 +1246,23 @@ TEST(YogaTest, justify_content_space_between_indefinite_container_dim_with_free_
}
TEST(YogaTest, justify_content_flex_start_row_reverse) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRowReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1314,23 +1315,23 @@ TEST(YogaTest, justify_content_flex_start_row_reverse) {
}
TEST(YogaTest, justify_content_flex_end_row_reverse) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRowReverse);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1381,3 +1382,633 @@ TEST(YogaTest, justify_content_flex_end_row_reverse) {
YGConfigFree(config);
}
+
+TEST(YogaTest, justify_content_overflow_row_flex_start) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 102);
+ YGNodeStyleSetHeight(root, 102);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child0, 40);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child1, 40);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child2, 40);
+ YGNodeInsertChild(root, root_child2, 2);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(80, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(62, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(22, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(-18, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, justify_content_overflow_row_flex_end) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetJustifyContent(root, YGJustifyFlexEnd);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 102);
+ YGNodeStyleSetHeight(root, 102);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child0, 40);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child1, 40);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child2, 40);
+ YGNodeInsertChild(root, root_child2, 2);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(-18, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(22, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(62, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(80, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, justify_content_overflow_row_center) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 102);
+ YGNodeStyleSetHeight(root, 102);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child0, 40);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child1, 40);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child2, 40);
+ YGNodeInsertChild(root, root_child2, 2);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(-9, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(31, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(71, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(71, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(31, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(-9, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, justify_content_overflow_row_space_between) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetJustifyContent(root, YGJustifySpaceBetween);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 102);
+ YGNodeStyleSetHeight(root, 102);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child0, 40);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child1, 40);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child2, 40);
+ YGNodeInsertChild(root, root_child2, 2);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(80, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(62, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(22, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(-18, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, justify_content_overflow_row_space_around) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetJustifyContent(root, YGJustifySpaceAround);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 102);
+ YGNodeStyleSetHeight(root, 102);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child0, 40);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child1, 40);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child2, 40);
+ YGNodeInsertChild(root, root_child2, 2);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(80, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(62, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(22, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(-18, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, justify_content_overflow_row_space_evenly) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetJustifyContent(root, YGJustifySpaceEvenly);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 102);
+ YGNodeStyleSetHeight(root, 102);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child0, 40);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child1, 40);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child2, 40);
+ YGNodeInsertChild(root, root_child2, 2);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(80, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(62, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(22, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(-18, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, justify_content_overflow_row_reverse_space_around) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRowReverse);
+ YGNodeStyleSetJustifyContent(root, YGJustifySpaceAround);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 102);
+ YGNodeStyleSetHeight(root, 102);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child0, 40);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child1, 40);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child2, 40);
+ YGNodeInsertChild(root, root_child2, 2);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(62, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(22, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(-18, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(80, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, justify_content_overflow_row_reverse_space_evenly) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRowReverse);
+ YGNodeStyleSetJustifyContent(root, YGJustifySpaceEvenly);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 102);
+ YGNodeStyleSetHeight(root, 102);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child0, 40);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child1, 40);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child2, 40);
+ YGNodeInsertChild(root, root_child2, 2);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(62, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(22, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(-18, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(80, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
+
+TEST(YogaTest, justify_content_overflow_row_space_evenly_auto_margin) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
+ YGNodeStyleSetJustifyContent(root, YGJustifySpaceEvenly);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 102);
+ YGNodeStyleSetHeight(root, 102);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetMarginAuto(root_child0, YGEdgeRight);
+ YGNodeStyleSetWidth(root_child0, 40);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child1, 40);
+ YGNodeInsertChild(root, root_child1, 1);
+
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child2, 40);
+ YGNodeInsertChild(root, root_child2, 2);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(80, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(62, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(22, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child1));
+
+ ASSERT_FLOAT_EQ(-18, YGNodeLayoutGetLeft(root_child2));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2));
+ ASSERT_FLOAT_EQ(40, YGNodeLayoutGetWidth(root_child2));
+ ASSERT_FLOAT_EQ(102, YGNodeLayoutGetHeight(root_child2));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
diff --git a/tests/generated/YGMarginTest.cpp b/tests/generated/YGMarginTest.cpp
index e0f05793ca..f9b5093795 100644
--- a/tests/generated/YGMarginTest.cpp
+++ b/tests/generated/YGMarginTest.cpp
@@ -5,23 +5,24 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<<52e260344bf94a7d6afb0066b8b9e1b9>>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGMarginTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, margin_start) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeStart, 10);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
@@ -55,14 +56,14 @@ TEST(YogaTest, margin_start) {
}
TEST(YogaTest, margin_top) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 10);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
@@ -96,16 +97,16 @@ TEST(YogaTest, margin_top) {
}
TEST(YogaTest, margin_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root, YGJustifyFlexEnd);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeEnd, 10);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
@@ -139,15 +140,15 @@ TEST(YogaTest, margin_end) {
}
TEST(YogaTest, margin_bottom) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyFlexEnd);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeBottom, 10);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
@@ -181,15 +182,15 @@ TEST(YogaTest, margin_bottom) {
}
TEST(YogaTest, margin_and_flex_row) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMargin(root_child0, YGEdgeStart, 10);
YGNodeStyleSetMargin(root_child0, YGEdgeEnd, 10);
@@ -224,14 +225,14 @@ TEST(YogaTest, margin_and_flex_row) {
}
TEST(YogaTest, margin_and_flex_column) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 10);
YGNodeStyleSetMargin(root_child0, YGEdgeBottom, 10);
@@ -266,15 +267,15 @@ TEST(YogaTest, margin_and_flex_column) {
}
TEST(YogaTest, margin_and_stretch_row) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 10);
YGNodeStyleSetMargin(root_child0, YGEdgeBottom, 10);
@@ -309,14 +310,14 @@ TEST(YogaTest, margin_and_stretch_row) {
}
TEST(YogaTest, margin_and_stretch_column) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMargin(root_child0, YGEdgeStart, 10);
YGNodeStyleSetMargin(root_child0, YGEdgeEnd, 10);
@@ -351,20 +352,20 @@ TEST(YogaTest, margin_and_stretch_column) {
}
TEST(YogaTest, margin_with_sibling_row) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMargin(root_child0, YGEdgeEnd, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -407,19 +408,19 @@ TEST(YogaTest, margin_with_sibling_row) {
}
TEST(YogaTest, margin_with_sibling_column) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMargin(root_child0, YGEdgeBottom, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -462,21 +463,21 @@ TEST(YogaTest, margin_with_sibling_column) {
}
TEST(YogaTest, margin_auto_bottom) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeBottom);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
@@ -520,21 +521,21 @@ TEST(YogaTest, margin_auto_bottom) {
}
TEST(YogaTest, margin_auto_top) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeTop);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
@@ -578,22 +579,22 @@ TEST(YogaTest, margin_auto_top) {
}
TEST(YogaTest, margin_auto_bottom_and_top) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeTop);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeBottom);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
@@ -637,22 +638,22 @@ TEST(YogaTest, margin_auto_bottom_and_top) {
}
TEST(YogaTest, margin_auto_bottom_and_top_justify_center) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeTop);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeBottom);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
@@ -696,27 +697,27 @@ TEST(YogaTest, margin_auto_bottom_and_top_justify_center) {
}
TEST(YogaTest, margin_auto_multiple_children_column) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeTop);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child1, YGEdgeTop);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeStyleSetHeight(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
@@ -770,28 +771,28 @@ TEST(YogaTest, margin_auto_multiple_children_column) {
}
TEST(YogaTest, margin_auto_multiple_children_row) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeRight);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child1, YGEdgeRight);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeStyleSetHeight(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
@@ -845,23 +846,23 @@ TEST(YogaTest, margin_auto_multiple_children_row) {
}
TEST(YogaTest, margin_auto_left_and_right_column) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeLeft);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeRight);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
@@ -905,21 +906,21 @@ TEST(YogaTest, margin_auto_left_and_right_column) {
}
TEST(YogaTest, margin_auto_left_and_right) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeLeft);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeRight);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
@@ -963,23 +964,23 @@ TEST(YogaTest, margin_auto_left_and_right) {
}
TEST(YogaTest, margin_auto_start_and_end_column) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeStart);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeEnd);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
@@ -1023,21 +1024,21 @@ TEST(YogaTest, margin_auto_start_and_end_column) {
}
TEST(YogaTest, margin_auto_start_and_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeStart);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeEnd);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
@@ -1081,22 +1082,22 @@ TEST(YogaTest, margin_auto_start_and_end) {
}
TEST(YogaTest, margin_auto_left_and_right_column_and_center) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeLeft);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeRight);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
@@ -1140,21 +1141,21 @@ TEST(YogaTest, margin_auto_left_and_right_column_and_center) {
}
TEST(YogaTest, margin_auto_left) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeLeft);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
@@ -1198,21 +1199,21 @@ TEST(YogaTest, margin_auto_left) {
}
TEST(YogaTest, margin_auto_right) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeRight);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
@@ -1256,22 +1257,22 @@ TEST(YogaTest, margin_auto_right) {
}
TEST(YogaTest, margin_auto_left_and_right_stretch) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeLeft);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeRight);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
@@ -1315,21 +1316,21 @@ TEST(YogaTest, margin_auto_left_and_right_stretch) {
}
TEST(YogaTest, margin_auto_top_and_bottom_stretch) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeTop);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeBottom);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
@@ -1373,14 +1374,14 @@ TEST(YogaTest, margin_auto_top_and_bottom_stretch) {
}
TEST(YogaTest, margin_should_not_be_part_of_max_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 250);
YGNodeStyleSetHeight(root, 250);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 20);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
@@ -1416,14 +1417,14 @@ TEST(YogaTest, margin_should_not_be_part_of_max_height) {
}
TEST(YogaTest, margin_should_not_be_part_of_max_width) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 250);
YGNodeStyleSetHeight(root, 250);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 20);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetMaxWidth(root_child0, 100);
@@ -1459,15 +1460,15 @@ TEST(YogaTest, margin_should_not_be_part_of_max_width) {
}
TEST(YogaTest, margin_auto_left_right_child_bigger_than_parent) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 52);
YGNodeStyleSetHeight(root, 52);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeLeft);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeRight);
YGNodeStyleSetWidth(root_child0, 72);
@@ -1503,15 +1504,15 @@ TEST(YogaTest, margin_auto_left_right_child_bigger_than_parent) {
}
TEST(YogaTest, margin_auto_left_child_bigger_than_parent) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 52);
YGNodeStyleSetHeight(root, 52);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeLeft);
YGNodeStyleSetWidth(root_child0, 72);
YGNodeStyleSetHeight(root_child0, 72);
@@ -1546,15 +1547,15 @@ TEST(YogaTest, margin_auto_left_child_bigger_than_parent) {
}
TEST(YogaTest, margin_fix_left_auto_right_child_bigger_than_parent) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 52);
YGNodeStyleSetHeight(root, 52);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 10);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeRight);
YGNodeStyleSetWidth(root_child0, 72);
@@ -1590,15 +1591,15 @@ TEST(YogaTest, margin_fix_left_auto_right_child_bigger_than_parent) {
}
TEST(YogaTest, margin_auto_left_fix_right_child_bigger_than_parent) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 52);
YGNodeStyleSetHeight(root, 52);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeLeft);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 10);
YGNodeStyleSetWidth(root_child0, 72);
@@ -1634,22 +1635,22 @@ TEST(YogaTest, margin_auto_left_fix_right_child_bigger_than_parent) {
}
TEST(YogaTest, margin_auto_top_stretching_child) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 0);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeTop);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
@@ -1693,22 +1694,22 @@ TEST(YogaTest, margin_auto_top_stretching_child) {
}
TEST(YogaTest, margin_auto_left_stretching_child) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 0);
YGNodeStyleSetMarginAuto(root_child0, YGEdgeLeft);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
@@ -1750,3 +1751,61 @@ TEST(YogaTest, margin_auto_left_stretching_child) {
YGConfigFree(config);
}
+
+TEST(YogaTest, margin_auto_overflowing_container) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetAlignItems(root, YGAlignCenter);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetWidth(root, 200);
+ YGNodeStyleSetHeight(root, 200);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetMarginAuto(root_child0, YGEdgeBottom);
+ YGNodeStyleSetWidth(root_child0, 50);
+ YGNodeStyleSetHeight(root_child0, 150);
+ YGNodeInsertChild(root, root_child0, 0);
+
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidth(root_child1, 50);
+ YGNodeStyleSetHeight(root_child1, 150);
+ YGNodeInsertChild(root, root_child1, 1);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(75, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(150, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(75, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(150, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(150, YGNodeLayoutGetHeight(root_child1));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(75, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(150, YGNodeLayoutGetHeight(root_child0));
+
+ ASSERT_FLOAT_EQ(75, YGNodeLayoutGetLeft(root_child1));
+ ASSERT_FLOAT_EQ(150, YGNodeLayoutGetTop(root_child1));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child1));
+ ASSERT_FLOAT_EQ(150, YGNodeLayoutGetHeight(root_child1));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
diff --git a/tests/generated/YGMinMaxDimensionTest.cpp b/tests/generated/YGMinMaxDimensionTest.cpp
index 16f48ee683..bbb4b40a92 100644
--- a/tests/generated/YGMinMaxDimensionTest.cpp
+++ b/tests/generated/YGMinMaxDimensionTest.cpp
@@ -5,22 +5,23 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<<998364a400f51a125600fadd87ada1e0>>
+ * @generated SignedSource<<0054f2d41727e7a0707701c6d7640cb6>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGMinMaxDimensionTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, max_width) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMaxWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
@@ -54,15 +55,15 @@ TEST(YogaTest, max_width) {
}
TEST(YogaTest, max_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeStyleSetMaxHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
@@ -98,19 +99,19 @@ TEST(YogaTest, max_height) {
TEST(YogaTest, min_height) {
GTEST_SKIP();
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMinHeight(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -155,20 +156,20 @@ TEST(YogaTest, min_height) {
TEST(YogaTest, min_width) {
GTEST_SKIP();
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMinWidth(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -211,16 +212,16 @@ TEST(YogaTest, min_width) {
}
TEST(YogaTest, justify_content_min_max) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetMinHeight(root, 100);
YGNodeStyleSetMaxHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 60);
YGNodeStyleSetHeight(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
@@ -254,16 +255,16 @@ TEST(YogaTest, justify_content_min_max) {
}
TEST(YogaTest, align_items_min_max) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMinWidth(root, 100);
YGNodeStyleSetMaxWidth(root, 200);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 60);
YGNodeStyleSetHeight(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
@@ -297,25 +298,25 @@ TEST(YogaTest, align_items_min_max) {
}
TEST(YogaTest, justify_content_overflow_min_max) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMinHeight(root, 100);
YGNodeStyleSetMaxHeight(root, 110);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 50);
YGNodeStyleSetHeight(root_child2, 50);
YGNodeInsertChild(root, root_child2, 2);
@@ -369,20 +370,20 @@ TEST(YogaTest, justify_content_overflow_min_max) {
}
TEST(YogaTest, flex_grow_to_min) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetMinHeight(root, 100);
YGNodeStyleSetMaxHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -425,20 +426,20 @@ TEST(YogaTest, flex_grow_to_min) {
}
TEST(YogaTest, flex_grow_in_at_most_container) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0, 1);
YGNodeStyleSetFlexBasis(root_child0_child0, 0);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
@@ -482,13 +483,13 @@ TEST(YogaTest, flex_grow_in_at_most_container) {
}
TEST(YogaTest, flex_grow_child) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 0);
YGNodeStyleSetHeight(root_child0, 100);
@@ -523,18 +524,18 @@ TEST(YogaTest, flex_grow_child) {
}
TEST(YogaTest, flex_grow_within_constrained_min_max_column) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMinHeight(root, 100);
YGNodeStyleSetMaxHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -577,19 +578,19 @@ TEST(YogaTest, flex_grow_within_constrained_min_max_column) {
}
TEST(YogaTest, flex_grow_within_max_width) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetMaxWidth(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0, 1);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
@@ -633,19 +634,19 @@ TEST(YogaTest, flex_grow_within_max_width) {
}
TEST(YogaTest, flex_grow_within_constrained_max_width) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetMaxWidth(root_child0, 300);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0, 1);
YGNodeStyleSetHeight(root_child0_child0, 20);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
@@ -689,21 +690,21 @@ TEST(YogaTest, flex_grow_within_constrained_max_width) {
}
TEST(YogaTest, flex_root_ignored) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetFlexGrow(root, 1);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetMinHeight(root, 100);
YGNodeStyleSetMaxHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child1, 100);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -746,26 +747,26 @@ TEST(YogaTest, flex_root_ignored) {
}
TEST(YogaTest, flex_grow_root_minimized) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetMinHeight(root, 100);
YGNodeStyleSetMaxHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMinHeight(root_child0, 100);
YGNodeStyleSetMaxHeight(root_child0, 500);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0, 1);
YGNodeStyleSetFlexBasis(root_child0_child0, 200);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child0_child1, 100);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -818,25 +819,25 @@ TEST(YogaTest, flex_grow_root_minimized) {
}
TEST(YogaTest, flex_grow_height_maximized) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMinHeight(root_child0, 100);
YGNodeStyleSetMaxHeight(root_child0, 500);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0, 1);
YGNodeStyleSetFlexBasis(root_child0_child0, 200);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child0_child1, 100);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -889,19 +890,19 @@ TEST(YogaTest, flex_grow_height_maximized) {
}
TEST(YogaTest, flex_grow_within_constrained_min_row) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMinWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -944,17 +945,17 @@ TEST(YogaTest, flex_grow_within_constrained_min_row) {
}
TEST(YogaTest, flex_grow_within_constrained_min_column) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMinHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -997,24 +998,24 @@ TEST(YogaTest, flex_grow_within_constrained_min_column) {
}
TEST(YogaTest, flex_grow_within_constrained_max_row) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetMaxWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexShrink(root_child0_child0, 1);
YGNodeStyleSetFlexBasis(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child1, 50);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1067,19 +1068,19 @@ TEST(YogaTest, flex_grow_within_constrained_max_row) {
}
TEST(YogaTest, flex_grow_within_constrained_max_column) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetMaxHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child1, 50);
YGNodeInsertChild(root, root_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1122,21 +1123,21 @@ TEST(YogaTest, flex_grow_within_constrained_max_column) {
}
TEST(YogaTest, child_min_max_width_flexing) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 120);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 0);
YGNodeStyleSetMinWidth(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetFlexBasisPercent(root_child1, 50);
YGNodeStyleSetMaxWidth(root_child1, 20);
@@ -1181,9 +1182,9 @@ TEST(YogaTest, child_min_max_width_flexing) {
}
TEST(YogaTest, min_width_overrides_width) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 50);
YGNodeStyleSetMinWidth(root, 100);
@@ -1207,9 +1208,9 @@ TEST(YogaTest, min_width_overrides_width) {
}
TEST(YogaTest, max_width_overrides_width) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetMaxWidth(root, 100);
@@ -1233,9 +1234,9 @@ TEST(YogaTest, max_width_overrides_width) {
}
TEST(YogaTest, min_height_overrides_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetHeight(root, 50);
YGNodeStyleSetMinHeight(root, 100);
@@ -1259,9 +1260,9 @@ TEST(YogaTest, min_height_overrides_height) {
}
TEST(YogaTest, max_height_overrides_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetHeight(root, 200);
YGNodeStyleSetMaxHeight(root, 100);
@@ -1285,15 +1286,15 @@ TEST(YogaTest, max_height_overrides_height) {
}
TEST(YogaTest, min_max_percent_no_width_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMinWidthPercent(root_child0, 10);
YGNodeStyleSetMaxWidthPercent(root_child0, 10);
YGNodeStyleSetMinHeightPercent(root_child0, 10);
diff --git a/tests/generated/YGPaddingTest.cpp b/tests/generated/YGPaddingTest.cpp
index 10b10e2e58..30365c061a 100644
--- a/tests/generated/YGPaddingTest.cpp
+++ b/tests/generated/YGPaddingTest.cpp
@@ -5,17 +5,18 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<<32fe835176961bebfe905dfd47874f5c>>
+ * @generated SignedSource<<6b47783e0e0befdd02efbfa83da49403>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGPaddingTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, padding_no_size) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeLeft, 10);
YGNodeStyleSetPadding(root, YGEdgeTop, 10);
@@ -41,16 +42,16 @@ TEST(YogaTest, padding_no_size) {
}
TEST(YogaTest, padding_container_match_child) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeLeft, 10);
YGNodeStyleSetPadding(root, YGEdgeTop, 10);
YGNodeStyleSetPadding(root, YGEdgeRight, 10);
YGNodeStyleSetPadding(root, YGEdgeBottom, 10);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
@@ -84,9 +85,9 @@ TEST(YogaTest, padding_container_match_child) {
}
TEST(YogaTest, padding_flex_child) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeLeft, 10);
YGNodeStyleSetPadding(root, YGEdgeTop, 10);
@@ -95,7 +96,7 @@ TEST(YogaTest, padding_flex_child) {
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
@@ -129,9 +130,9 @@ TEST(YogaTest, padding_flex_child) {
}
TEST(YogaTest, padding_stretch_child) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPadding(root, YGEdgeLeft, 10);
YGNodeStyleSetPadding(root, YGEdgeTop, 10);
@@ -140,7 +141,7 @@ TEST(YogaTest, padding_stretch_child) {
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -173,9 +174,9 @@ TEST(YogaTest, padding_stretch_child) {
}
TEST(YogaTest, padding_center_child) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
@@ -185,7 +186,7 @@ TEST(YogaTest, padding_center_child) {
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
@@ -219,16 +220,16 @@ TEST(YogaTest, padding_center_child) {
}
TEST(YogaTest, child_with_padding_align_end) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyFlexEnd);
YGNodeStyleSetAlignItems(root, YGAlignFlexEnd);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPadding(root_child0, YGEdgeLeft, 20);
YGNodeStyleSetPadding(root_child0, YGEdgeTop, 20);
YGNodeStyleSetPadding(root_child0, YGEdgeRight, 20);
@@ -264,3 +265,46 @@ TEST(YogaTest, child_with_padding_align_end) {
YGConfigFree(config);
}
+
+TEST(YogaTest, physical_and_relative_edge_defined) {
+ YGConfigRef config = YGConfigNew();
+
+ YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
+ YGNodeStyleSetPadding(root, YGEdgeLeft, 20);
+ YGNodeStyleSetPadding(root, YGEdgeEnd, 50);
+ YGNodeStyleSetWidth(root, 200);
+ YGNodeStyleSetHeight(root, 200);
+
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeStyleSetWidthPercent(root_child0, 100);
+ YGNodeStyleSetHeight(root_child0, 50);
+ YGNodeInsertChild(root, root_child0, 0);
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(20, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(130, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL);
+
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetWidth(root));
+ ASSERT_FLOAT_EQ(200, YGNodeLayoutGetHeight(root));
+
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetLeft(root_child0));
+ ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0));
+ ASSERT_FLOAT_EQ(150, YGNodeLayoutGetWidth(root_child0));
+ ASSERT_FLOAT_EQ(50, YGNodeLayoutGetHeight(root_child0));
+
+ YGNodeFreeRecursive(root);
+
+ YGConfigFree(config);
+}
diff --git a/tests/generated/YGPercentageTest.cpp b/tests/generated/YGPercentageTest.cpp
index 495f3bd605..a8262f4169 100644
--- a/tests/generated/YGPercentageTest.cpp
+++ b/tests/generated/YGPercentageTest.cpp
@@ -5,23 +5,24 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<<91a0bc08c0b7dd04b272bfd47744d6fe>>
+ * @generated SignedSource<<6b01edcfd82ee39d61cfcadd0b312a36>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGPercentageTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, percentage_width_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0, 30);
YGNodeStyleSetHeightPercent(root_child0, 30);
YGNodeInsertChild(root, root_child0, 0);
@@ -55,15 +56,15 @@ TEST(YogaTest, percentage_width_height) {
}
TEST(YogaTest, percentage_position_left_top) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 400);
YGNodeStyleSetHeight(root, 400);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionPercent(root_child0, YGEdgeLeft, 10);
YGNodeStyleSetPositionPercent(root_child0, YGEdgeTop, 20);
YGNodeStyleSetWidthPercent(root_child0, 45);
@@ -99,15 +100,15 @@ TEST(YogaTest, percentage_position_left_top) {
}
TEST(YogaTest, percentage_position_bottom_right) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 500);
YGNodeStyleSetHeight(root, 500);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionPercent(root_child0, YGEdgeRight, 20);
YGNodeStyleSetPositionPercent(root_child0, YGEdgeBottom, 10);
YGNodeStyleSetWidthPercent(root_child0, 55);
@@ -143,20 +144,20 @@ TEST(YogaTest, percentage_position_bottom_right) {
}
TEST(YogaTest, percentage_flex_basis) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetFlexBasisPercent(root_child1, 25);
YGNodeInsertChild(root, root_child1, 1);
@@ -200,19 +201,19 @@ TEST(YogaTest, percentage_flex_basis) {
}
TEST(YogaTest, percentage_flex_basis_cross) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetFlexBasisPercent(root_child1, 25);
YGNodeInsertChild(root, root_child1, 1);
@@ -258,19 +259,19 @@ TEST(YogaTest, percentage_flex_basis_cross) {
TEST(YogaTest, percentage_flex_basis_cross_min_height) {
GTEST_SKIP();
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMinHeightPercent(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 2);
YGNodeStyleSetMinHeightPercent(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
@@ -314,21 +315,21 @@ TEST(YogaTest, percentage_flex_basis_cross_min_height) {
}
TEST(YogaTest, percentage_flex_basis_main_max_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 10);
YGNodeStyleSetMaxHeightPercent(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 4);
YGNodeStyleSetFlexBasisPercent(root_child1, 10);
YGNodeStyleSetMaxHeightPercent(root_child1, 20);
@@ -373,20 +374,20 @@ TEST(YogaTest, percentage_flex_basis_main_max_height) {
}
TEST(YogaTest, percentage_flex_basis_cross_max_height) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 10);
YGNodeStyleSetMaxHeightPercent(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 4);
YGNodeStyleSetFlexBasisPercent(root_child1, 10);
YGNodeStyleSetMaxHeightPercent(root_child1, 20);
@@ -431,21 +432,21 @@ TEST(YogaTest, percentage_flex_basis_cross_max_height) {
}
TEST(YogaTest, percentage_flex_basis_main_max_width) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 15);
YGNodeStyleSetMaxWidthPercent(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 4);
YGNodeStyleSetFlexBasisPercent(root_child1, 10);
YGNodeStyleSetMaxWidthPercent(root_child1, 20);
@@ -490,20 +491,20 @@ TEST(YogaTest, percentage_flex_basis_main_max_width) {
}
TEST(YogaTest, percentage_flex_basis_cross_max_width) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 10);
YGNodeStyleSetMaxWidthPercent(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 4);
YGNodeStyleSetFlexBasisPercent(root_child1, 15);
YGNodeStyleSetMaxWidthPercent(root_child1, 20);
@@ -548,21 +549,21 @@ TEST(YogaTest, percentage_flex_basis_cross_max_width) {
}
TEST(YogaTest, percentage_flex_basis_main_min_width) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 15);
YGNodeStyleSetMinWidthPercent(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 4);
YGNodeStyleSetFlexBasisPercent(root_child1, 10);
YGNodeStyleSetMinWidthPercent(root_child1, 20);
@@ -607,20 +608,20 @@ TEST(YogaTest, percentage_flex_basis_main_min_width) {
}
TEST(YogaTest, percentage_flex_basis_cross_min_width) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 10);
YGNodeStyleSetMinWidthPercent(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 4);
YGNodeStyleSetFlexBasisPercent(root_child1, 15);
YGNodeStyleSetMinWidthPercent(root_child1, 20);
@@ -665,14 +666,14 @@ TEST(YogaTest, percentage_flex_basis_cross_min_width) {
}
TEST(YogaTest, percentage_multiple_nested_with_padding_margin_and_percentage_values) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasisPercent(root_child0, 10);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 5);
@@ -686,7 +687,7 @@ TEST(YogaTest, percentage_multiple_nested_with_padding_margin_and_percentage_val
YGNodeStyleSetMinWidthPercent(root_child0, 60);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 5);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeRight, 5);
@@ -698,7 +699,7 @@ TEST(YogaTest, percentage_multiple_nested_with_padding_margin_and_percentage_val
YGNodeStyleSetWidthPercent(root_child0_child0, 50);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginPercent(root_child0_child0_child0, YGEdgeLeft, 5);
YGNodeStyleSetMarginPercent(root_child0_child0_child0, YGEdgeTop, 5);
YGNodeStyleSetMarginPercent(root_child0_child0_child0, YGEdgeRight, 5);
@@ -710,7 +711,7 @@ TEST(YogaTest, percentage_multiple_nested_with_padding_margin_and_percentage_val
YGNodeStyleSetWidthPercent(root_child0_child0_child0, 45);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 4);
YGNodeStyleSetFlexBasisPercent(root_child1, 15);
YGNodeStyleSetMinWidthPercent(root_child1, 20);
@@ -775,14 +776,14 @@ TEST(YogaTest, percentage_multiple_nested_with_padding_margin_and_percentage_val
}
TEST(YogaTest, percentage_margin_should_calculate_based_only_on_width) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetMarginPercent(root_child0, YGEdgeLeft, 10);
YGNodeStyleSetMarginPercent(root_child0, YGEdgeTop, 10);
@@ -790,7 +791,7 @@ TEST(YogaTest, percentage_margin_should_calculate_based_only_on_width) {
YGNodeStyleSetMarginPercent(root_child0, YGEdgeBottom, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
@@ -834,14 +835,14 @@ TEST(YogaTest, percentage_margin_should_calculate_based_only_on_width) {
}
TEST(YogaTest, percentage_padding_should_calculate_based_only_on_width) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetPaddingPercent(root_child0, YGEdgeLeft, 10);
YGNodeStyleSetPaddingPercent(root_child0, YGEdgeTop, 10);
@@ -849,7 +850,7 @@ TEST(YogaTest, percentage_padding_should_calculate_based_only_on_width) {
YGNodeStyleSetPaddingPercent(root_child0, YGEdgeBottom, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 10);
YGNodeStyleSetHeight(root_child0_child0, 10);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
@@ -893,14 +894,14 @@ TEST(YogaTest, percentage_padding_should_calculate_based_only_on_width) {
}
TEST(YogaTest, percentage_absolute_position) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPositionPercent(root_child0, YGEdgeLeft, 30);
YGNodeStyleSetPositionPercent(root_child0, YGEdgeTop, 10);
@@ -937,12 +938,12 @@ TEST(YogaTest, percentage_absolute_position) {
}
TEST(YogaTest, percentage_width_height_undefined_parent_size) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0, 50);
YGNodeStyleSetHeightPercent(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
@@ -976,27 +977,27 @@ TEST(YogaTest, percentage_width_height_undefined_parent_size) {
}
TEST(YogaTest, percent_within_flex_grow) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 350);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child1_child0, 100);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child2, 100);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1059,30 +1060,30 @@ TEST(YogaTest, percent_within_flex_grow) {
}
TEST(YogaTest, percentage_container_in_wrapping_container) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
YGNodeStyleSetAlignItems(root, YGAlignCenter);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 200);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0, YGFlexDirectionRow);
YGNodeStyleSetJustifyContent(root_child0_child0, YGJustifyCenter);
YGNodeStyleSetWidthPercent(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0_child0, 50);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0_child1, 50);
YGNodeStyleSetHeight(root_child0_child0_child1, 50);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child1, 1);
@@ -1146,14 +1147,14 @@ TEST(YogaTest, percentage_container_in_wrapping_container) {
}
TEST(YogaTest, percent_absolute_position) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 60);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPositionPercent(root_child0, YGEdgeLeft, 50);
@@ -1161,11 +1162,11 @@ TEST(YogaTest, percent_absolute_position) {
YGNodeStyleSetHeight(root_child0, 50);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child1, 100);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -1218,16 +1219,16 @@ TEST(YogaTest, percent_absolute_position) {
}
TEST(YogaTest, percent_of_minmax_main) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMinWidth(root, 60);
YGNodeStyleSetMaxWidth(root, 60);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
@@ -1263,15 +1264,15 @@ TEST(YogaTest, percent_of_minmax_main) {
TEST(YogaTest, percent_of_min_main) {
GTEST_SKIP();
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMinWidth(root, 60);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
@@ -1307,25 +1308,25 @@ TEST(YogaTest, percent_of_min_main) {
TEST(YogaTest, percent_of_min_main_multiple) {
GTEST_SKIP();
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMinWidth(root, 60);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child1, 50);
YGNodeStyleSetHeight(root_child1, 20);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child2, 50);
YGNodeStyleSetHeight(root_child2, 20);
YGNodeInsertChild(root, root_child2, 2);
@@ -1381,15 +1382,15 @@ TEST(YogaTest, percent_of_min_main_multiple) {
TEST(YogaTest, percent_of_max_main) {
GTEST_SKIP();
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMaxWidth(root, 60);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
@@ -1423,15 +1424,15 @@ TEST(YogaTest, percent_of_max_main) {
}
TEST(YogaTest, percent_of_minmax_cross_stretched) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMinWidth(root, 60);
YGNodeStyleSetMaxWidth(root, 60);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
@@ -1465,15 +1466,15 @@ TEST(YogaTest, percent_of_minmax_cross_stretched) {
}
TEST(YogaTest, percent_absolute_of_minmax_cross_stretched) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMinWidth(root, 60);
YGNodeStyleSetMaxWidth(root, 60);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidthPercent(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
@@ -1508,16 +1509,16 @@ TEST(YogaTest, percent_absolute_of_minmax_cross_stretched) {
}
TEST(YogaTest, percent_of_minmax_cross_unstretched) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMinWidth(root, 60);
YGNodeStyleSetMaxWidth(root, 60);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
@@ -1553,15 +1554,15 @@ TEST(YogaTest, percent_of_minmax_cross_unstretched) {
TEST(YogaTest, percent_of_min_cross_unstretched) {
GTEST_SKIP();
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMinWidth(root, 60);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
@@ -1595,15 +1596,15 @@ TEST(YogaTest, percent_of_min_cross_unstretched) {
}
TEST(YogaTest, percent_of_max_cross_unstretched) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetMaxWidth(root, 60);
YGNodeStyleSetHeight(root, 50);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
diff --git a/tests/generated/YGRoundingTest.cpp b/tests/generated/YGRoundingTest.cpp
index 55a918c07b..1ec813de50 100644
--- a/tests/generated/YGRoundingTest.cpp
+++ b/tests/generated/YGRoundingTest.cpp
@@ -5,31 +5,32 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGRoundingTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, rounding_flex_basis_flex_grow_row_width_of_100) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -82,31 +83,31 @@ TEST(YogaTest, rounding_flex_basis_flex_grow_row_width_of_100) {
}
TEST(YogaTest, rounding_flex_basis_flex_grow_row_prime_number_width) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 113);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1);
YGNodeInsertChild(root, root_child2, 2);
- const YGNodeRef root_child3 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child3 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child3, 1);
YGNodeInsertChild(root, root_child3, 3);
- const YGNodeRef root_child4 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child4 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child4, 1);
YGNodeInsertChild(root, root_child4, 4);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -179,24 +180,24 @@ TEST(YogaTest, rounding_flex_basis_flex_grow_row_prime_number_width) {
}
TEST(YogaTest, rounding_flex_basis_flex_shrink_row) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 101);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexShrink(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexBasis(root_child1, 25);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexBasis(root_child2, 25);
YGNodeInsertChild(root, root_child2, 2);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
@@ -249,25 +250,25 @@ TEST(YogaTest, rounding_flex_basis_flex_shrink_row) {
}
TEST(YogaTest, rounding_flex_basis_overrides_main_size) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 113);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
@@ -321,25 +322,25 @@ TEST(YogaTest, rounding_flex_basis_overrides_main_size) {
}
TEST(YogaTest, rounding_total_fractial) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 87.4f);
YGNodeStyleSetHeight(root, 113.4f);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 0.7f);
YGNodeStyleSetFlexBasis(root_child0, 50.3f);
YGNodeStyleSetHeight(root_child0, 20.3f);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1.6f);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1.1f);
YGNodeStyleSetHeight(root_child2, 10.7f);
YGNodeInsertChild(root, root_child2, 2);
@@ -393,39 +394,39 @@ TEST(YogaTest, rounding_total_fractial) {
}
TEST(YogaTest, rounding_total_fractial_nested) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 87.4f);
YGNodeStyleSetHeight(root, 113.4f);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 0.7f);
YGNodeStyleSetFlexBasis(root_child0, 50.3f);
YGNodeStyleSetHeight(root_child0, 20.3f);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child0, 1);
YGNodeStyleSetFlexBasis(root_child0_child0, 0.3f);
YGNodeStyleSetPosition(root_child0_child0, YGEdgeBottom, 13.3f);
YGNodeStyleSetHeight(root_child0_child0, 9.9f);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0_child1, 4);
YGNodeStyleSetFlexBasis(root_child0_child1, 0.3f);
YGNodeStyleSetPosition(root_child0_child1, YGEdgeTop, 13.3f);
YGNodeStyleSetHeight(root_child0_child1, 1.1f);
YGNodeInsertChild(root_child0, root_child0_child1, 1);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1.6f);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1.1f);
YGNodeStyleSetHeight(root_child2, 10.7f);
YGNodeInsertChild(root, root_child2, 2);
@@ -499,25 +500,25 @@ TEST(YogaTest, rounding_total_fractial_nested) {
}
TEST(YogaTest, rounding_fractial_input_1) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 113.4f);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
@@ -571,25 +572,25 @@ TEST(YogaTest, rounding_fractial_input_1) {
}
TEST(YogaTest, rounding_fractial_input_2) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 113.6f);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
@@ -643,26 +644,26 @@ TEST(YogaTest, rounding_fractial_input_2) {
}
TEST(YogaTest, rounding_fractial_input_3) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root, YGEdgeTop, 0.3f);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 113.4f);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
@@ -716,26 +717,26 @@ TEST(YogaTest, rounding_fractial_input_3) {
}
TEST(YogaTest, rounding_fractial_input_4) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root, YGEdgeTop, 0.7f);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 113.4f);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetFlexBasis(root_child0, 50);
YGNodeStyleSetHeight(root_child0, 20);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
@@ -789,29 +790,29 @@ TEST(YogaTest, rounding_fractial_input_4) {
}
TEST(YogaTest, rounding_inner_node_controversy_horizontal) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 320);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetHeight(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetHeight(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1_child0, 1);
YGNodeStyleSetHeight(root_child1_child0, 10);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1);
YGNodeStyleSetHeight(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
@@ -875,28 +876,28 @@ TEST(YogaTest, rounding_inner_node_controversy_horizontal) {
}
TEST(YogaTest, rounding_inner_node_controversy_vertical) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetHeight(root, 320);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetWidth(root_child0, 10);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetWidth(root_child1, 10);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1_child0, 1);
YGNodeStyleSetWidth(root_child1_child0, 10);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1);
YGNodeStyleSetWidth(root_child2, 10);
YGNodeInsertChild(root, root_child2, 2);
@@ -960,45 +961,45 @@ TEST(YogaTest, rounding_inner_node_controversy_vertical) {
}
TEST(YogaTest, rounding_inner_node_controversy_combined) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 640);
YGNodeStyleSetHeight(root, 320);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child0, 1);
YGNodeStyleSetHeightPercent(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1, 1);
YGNodeStyleSetHeightPercent(root_child1, 100);
YGNodeInsertChild(root, root_child1, 1);
- const YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1_child0, 1);
YGNodeStyleSetWidthPercent(root_child1_child0, 100);
YGNodeInsertChild(root_child1, root_child1_child0, 0);
- const YGNodeRef root_child1_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1_child1, 1);
YGNodeStyleSetWidthPercent(root_child1_child1, 100);
YGNodeInsertChild(root_child1, root_child1_child1, 1);
- const YGNodeRef root_child1_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1_child1_child0, 1);
YGNodeStyleSetWidthPercent(root_child1_child1_child0, 100);
YGNodeInsertChild(root_child1_child1, root_child1_child1_child0, 0);
- const YGNodeRef root_child1_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child1_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child1_child2, 1);
YGNodeStyleSetWidthPercent(root_child1_child2, 100);
YGNodeInsertChild(root_child1, root_child1_child2, 2);
- const YGNodeRef root_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexGrow(root_child2, 1);
YGNodeStyleSetHeightPercent(root_child2, 100);
YGNodeInsertChild(root, root_child2, 2);
diff --git a/tests/generated/YGSizeOverflowTest.cpp b/tests/generated/YGSizeOverflowTest.cpp
index 2e300c4caf..efd3010a89 100644
--- a/tests/generated/YGSizeOverflowTest.cpp
+++ b/tests/generated/YGSizeOverflowTest.cpp
@@ -5,25 +5,26 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<>
+ * @generated SignedSource<>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGSizeOverflowTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, nested_overflowing_child) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 200);
YGNodeStyleSetHeight(root_child0_child0, 200);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
@@ -67,19 +68,19 @@ TEST(YogaTest, nested_overflowing_child) {
}
TEST(YogaTest, nested_overflowing_child_in_constraint_parent) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeStyleSetHeight(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 200);
YGNodeStyleSetHeight(root_child0_child0, 200);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
@@ -123,18 +124,18 @@ TEST(YogaTest, nested_overflowing_child_in_constraint_parent) {
}
TEST(YogaTest, parent_wrap_child_size_overflowing_parent) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 100);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 200);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
diff --git a/tests/generated/YGStaticPositionTest.cpp b/tests/generated/YGStaticPositionTest.cpp
index 24fa0fcfd8..edb544fd7a 100644
--- a/tests/generated/YGStaticPositionTest.cpp
+++ b/tests/generated/YGStaticPositionTest.cpp
@@ -5,20 +5,21 @@
* LICENSE file in the root directory of this source tree.
*
* clang-format off
- * @generated SignedSource<>
+ * @generated SignedSource<<03c511300b41c81c3592dd5df34bc2b9>>
* generated by gentest/gentest-driver.ts from gentest/fixtures/YGStaticPositionTest.html
*/
#include
#include
+#include "../util/TestUtil.h"
TEST(YogaTest, static_position_insets_have_no_effect_left_top) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeStatic);
YGNodeStyleSetPosition(root_child0, YGEdgeLeft, 50);
YGNodeStyleSetPosition(root_child0, YGEdgeTop, 50);
@@ -55,12 +56,12 @@ TEST(YogaTest, static_position_insets_have_no_effect_left_top) {
}
TEST(YogaTest, static_position_insets_have_no_effect_right_bottom) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeStatic);
YGNodeStyleSetPosition(root_child0, YGEdgeRight, 50);
YGNodeStyleSetPosition(root_child0, YGEdgeBottom, 50);
@@ -97,24 +98,24 @@ TEST(YogaTest, static_position_insets_have_no_effect_right_bottom) {
}
TEST(YogaTest, static_position_absolute_child_insets_relative_to_positioned_ancestor) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 100);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeLeft, 50);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeTop, 50);
@@ -171,24 +172,24 @@ TEST(YogaTest, static_position_absolute_child_insets_relative_to_positioned_ance
}
TEST(YogaTest, static_position_absolute_child_insets_relative_to_positioned_ancestor_row_reverse) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeLeft, 50);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeTop, 50);
@@ -245,25 +246,25 @@ TEST(YogaTest, static_position_absolute_child_insets_relative_to_positioned_ance
}
TEST(YogaTest, column_reverse_static_position_absolute_child_insets_relative_to_positioned_ancestor_row_reverse) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0, YGFlexDirectionColumnReverse);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeLeft, 50);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeTop, 50);
@@ -320,24 +321,24 @@ TEST(YogaTest, column_reverse_static_position_absolute_child_insets_relative_to_
}
TEST(YogaTest, static_position_absolute_child_insets_relative_to_positioned_ancestor_row) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeTop, 50);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeRight, 50);
@@ -394,25 +395,25 @@ TEST(YogaTest, static_position_absolute_child_insets_relative_to_positioned_ance
}
TEST(YogaTest, column_reverse_static_position_absolute_child_insets_relative_to_positioned_ancestor_row) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionRow);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0, YGFlexDirectionColumnReverse);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeTop, 50);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeRight, 50);
@@ -469,24 +470,24 @@ TEST(YogaTest, column_reverse_static_position_absolute_child_insets_relative_to_
}
TEST(YogaTest, static_position_absolute_child_insets_relative_to_positioned_ancestor_column_reverse) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionColumnReverse);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeTop, 50);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeRight, 50);
@@ -543,25 +544,25 @@ TEST(YogaTest, static_position_absolute_child_insets_relative_to_positioned_ance
}
TEST(YogaTest, column_reverse_static_position_absolute_child_insets_relative_to_positioned_ancestor_column_reverse) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0, YGFlexDirectionColumnReverse);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0, YGFlexDirectionColumnReverse);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeTop, 50);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeRight, 50);
@@ -618,45 +619,45 @@ TEST(YogaTest, column_reverse_static_position_absolute_child_insets_relative_to_
}
TEST(YogaTest, static_position_absolute_child_insets_relative_to_positioned_ancestor_deep) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 100);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeLeft, 100);
YGNodeStyleSetWidth(root_child0_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0_child0, 100);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeLeft, 100);
YGNodeStyleSetWidth(root_child0_child0_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0_child0_child0, 100);
YGNodeInsertChild(root_child0_child0_child0, root_child0_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0_child0_child0_child0, YGEdgeLeft, 100);
YGNodeStyleSetWidth(root_child0_child0_child0_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0_child0_child0_child0, 100);
YGNodeInsertChild(root_child0_child0_child0_child0, root_child0_child0_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0_child0_child0_child0_child0, YGEdgeLeft, 50);
YGNodeStyleSetPosition(root_child0_child0_child0_child0_child0_child0, YGEdgeTop, 50);
@@ -743,23 +744,23 @@ TEST(YogaTest, static_position_absolute_child_insets_relative_to_positioned_ance
}
TEST(YogaTest, static_position_absolute_child_width_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidthPercent(root_child0_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0_child0, 50);
@@ -814,23 +815,23 @@ TEST(YogaTest, static_position_absolute_child_width_percentage) {
}
TEST(YogaTest, static_position_relative_child_width_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0_child0, 50);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
@@ -884,23 +885,23 @@ TEST(YogaTest, static_position_relative_child_width_percentage) {
}
TEST(YogaTest, static_position_static_child_width_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidthPercent(root_child0_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0_child0, 50);
@@ -955,23 +956,23 @@ TEST(YogaTest, static_position_static_child_width_percentage) {
}
TEST(YogaTest, static_position_absolute_child_height_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
YGNodeStyleSetHeightPercent(root_child0_child0_child0, 50);
@@ -1026,23 +1027,23 @@ TEST(YogaTest, static_position_absolute_child_height_percentage) {
}
TEST(YogaTest, static_position_relative_child_height_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
YGNodeStyleSetHeightPercent(root_child0_child0_child0, 50);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
@@ -1096,23 +1097,23 @@ TEST(YogaTest, static_position_relative_child_height_percentage) {
}
TEST(YogaTest, static_position_static_child_height_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
YGNodeStyleSetHeightPercent(root_child0_child0_child0, 50);
@@ -1167,23 +1168,23 @@ TEST(YogaTest, static_position_static_child_height_percentage) {
}
TEST(YogaTest, static_position_absolute_child_left_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPositionPercent(root_child0_child0_child0, YGEdgeLeft, 50);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
@@ -1239,23 +1240,23 @@ TEST(YogaTest, static_position_absolute_child_left_percentage) {
}
TEST(YogaTest, static_position_relative_child_left_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionPercent(root_child0_child0_child0, YGEdgeLeft, 50);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0_child0, 50);
@@ -1310,23 +1311,23 @@ TEST(YogaTest, static_position_relative_child_left_percentage) {
}
TEST(YogaTest, static_position_static_child_left_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetPositionPercent(root_child0_child0_child0, YGEdgeLeft, 50);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
@@ -1382,23 +1383,23 @@ TEST(YogaTest, static_position_static_child_left_percentage) {
}
TEST(YogaTest, static_position_absolute_child_right_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPositionPercent(root_child0_child0_child0, YGEdgeRight, 50);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
@@ -1454,23 +1455,23 @@ TEST(YogaTest, static_position_absolute_child_right_percentage) {
}
TEST(YogaTest, static_position_relative_child_right_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionPercent(root_child0_child0_child0, YGEdgeRight, 50);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0_child0, 50);
@@ -1525,23 +1526,23 @@ TEST(YogaTest, static_position_relative_child_right_percentage) {
}
TEST(YogaTest, static_position_static_child_right_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetPositionPercent(root_child0_child0_child0, YGEdgeRight, 50);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
@@ -1597,23 +1598,23 @@ TEST(YogaTest, static_position_static_child_right_percentage) {
}
TEST(YogaTest, static_position_absolute_child_top_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPositionPercent(root_child0_child0_child0, YGEdgeTop, 50);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
@@ -1669,23 +1670,23 @@ TEST(YogaTest, static_position_absolute_child_top_percentage) {
}
TEST(YogaTest, static_position_relative_child_top_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionPercent(root_child0_child0_child0, YGEdgeTop, 50);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0_child0, 50);
@@ -1740,23 +1741,23 @@ TEST(YogaTest, static_position_relative_child_top_percentage) {
}
TEST(YogaTest, static_position_static_child_top_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetPositionPercent(root_child0_child0_child0, YGEdgeTop, 50);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
@@ -1812,23 +1813,23 @@ TEST(YogaTest, static_position_static_child_top_percentage) {
}
TEST(YogaTest, static_position_absolute_child_bottom_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPositionPercent(root_child0_child0_child0, YGEdgeBottom, 50);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
@@ -1884,23 +1885,23 @@ TEST(YogaTest, static_position_absolute_child_bottom_percentage) {
}
TEST(YogaTest, static_position_relative_child_bottom_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionPercent(root_child0_child0_child0, YGEdgeBottom, 50);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0_child0, 50);
@@ -1955,23 +1956,23 @@ TEST(YogaTest, static_position_relative_child_bottom_percentage) {
}
TEST(YogaTest, static_position_static_child_bottom_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetPositionPercent(root_child0_child0_child0, YGEdgeBottom, 50);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
@@ -2027,23 +2028,23 @@ TEST(YogaTest, static_position_static_child_bottom_percentage) {
}
TEST(YogaTest, static_position_absolute_child_margin_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetMarginPercent(root_child0_child0_child0, YGEdgeLeft, 50);
YGNodeStyleSetMarginPercent(root_child0_child0_child0, YGEdgeTop, 50);
@@ -2102,23 +2103,23 @@ TEST(YogaTest, static_position_absolute_child_margin_percentage) {
}
TEST(YogaTest, static_position_relative_child_margin_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMarginPercent(root_child0_child0_child0, YGEdgeLeft, 50);
YGNodeStyleSetMarginPercent(root_child0_child0_child0, YGEdgeTop, 50);
YGNodeStyleSetMarginPercent(root_child0_child0_child0, YGEdgeRight, 50);
@@ -2176,23 +2177,23 @@ TEST(YogaTest, static_position_relative_child_margin_percentage) {
}
TEST(YogaTest, static_position_static_child_margin_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMarginPercent(root_child0_child0_child0, YGEdgeLeft, 50);
YGNodeStyleSetMarginPercent(root_child0_child0_child0, YGEdgeTop, 50);
@@ -2251,23 +2252,23 @@ TEST(YogaTest, static_position_static_child_margin_percentage) {
}
TEST(YogaTest, static_position_absolute_child_padding_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPaddingPercent(root_child0_child0_child0, YGEdgeLeft, 50);
YGNodeStyleSetPaddingPercent(root_child0_child0_child0, YGEdgeTop, 50);
@@ -2326,23 +2327,23 @@ TEST(YogaTest, static_position_absolute_child_padding_percentage) {
}
TEST(YogaTest, static_position_relative_child_padding_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPaddingPercent(root_child0_child0_child0, YGEdgeLeft, 50);
YGNodeStyleSetPaddingPercent(root_child0_child0_child0, YGEdgeTop, 50);
YGNodeStyleSetPaddingPercent(root_child0_child0_child0, YGEdgeRight, 50);
@@ -2400,23 +2401,23 @@ TEST(YogaTest, static_position_relative_child_padding_percentage) {
}
TEST(YogaTest, static_position_static_child_padding_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetPaddingPercent(root_child0_child0_child0, YGEdgeLeft, 50);
YGNodeStyleSetPaddingPercent(root_child0_child0_child0, YGEdgeTop, 50);
@@ -2475,23 +2476,23 @@ TEST(YogaTest, static_position_static_child_padding_percentage) {
}
TEST(YogaTest, static_position_absolute_child_border_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0_child0, 50);
@@ -2546,23 +2547,23 @@ TEST(YogaTest, static_position_absolute_child_border_percentage) {
}
TEST(YogaTest, static_position_relative_child_border_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0_child0, 50);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
@@ -2616,23 +2617,23 @@ TEST(YogaTest, static_position_relative_child_border_percentage) {
}
TEST(YogaTest, static_position_static_child_border_percentage) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidth(root_child0, 200);
YGNodeStyleSetHeight(root_child0, 200);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0_child0, 50);
@@ -2687,12 +2688,12 @@ TEST(YogaTest, static_position_static_child_border_percentage) {
}
TEST(YogaTest, static_position_absolute_child_containing_block_padding_box) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPadding(root_child0, YGEdgeLeft, 100);
YGNodeStyleSetPadding(root_child0, YGEdgeTop, 100);
YGNodeStyleSetPadding(root_child0, YGEdgeRight, 100);
@@ -2701,13 +2702,13 @@ TEST(YogaTest, static_position_absolute_child_containing_block_padding_box) {
YGNodeStyleSetHeight(root_child0, 400);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidthPercent(root_child0_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0_child0, 50);
@@ -2762,12 +2763,12 @@ TEST(YogaTest, static_position_absolute_child_containing_block_padding_box) {
}
TEST(YogaTest, static_position_relative_child_containing_block_padding_box) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPadding(root_child0, YGEdgeLeft, 100);
YGNodeStyleSetPadding(root_child0, YGEdgeTop, 100);
YGNodeStyleSetPadding(root_child0, YGEdgeRight, 100);
@@ -2776,13 +2777,13 @@ TEST(YogaTest, static_position_relative_child_containing_block_padding_box) {
YGNodeStyleSetHeight(root_child0, 400);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0_child0, 50);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
@@ -2836,12 +2837,12 @@ TEST(YogaTest, static_position_relative_child_containing_block_padding_box) {
}
TEST(YogaTest, static_position_static_child_containing_block_padding_box) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPadding(root_child0, YGEdgeLeft, 100);
YGNodeStyleSetPadding(root_child0, YGEdgeTop, 100);
YGNodeStyleSetPadding(root_child0, YGEdgeRight, 100);
@@ -2850,13 +2851,13 @@ TEST(YogaTest, static_position_static_child_containing_block_padding_box) {
YGNodeStyleSetHeight(root_child0, 400);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidthPercent(root_child0_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0_child0, 50);
@@ -2911,12 +2912,12 @@ TEST(YogaTest, static_position_static_child_containing_block_padding_box) {
}
TEST(YogaTest, static_position_absolute_child_containing_block_content_box) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPadding(root_child0, YGEdgeLeft, 100);
YGNodeStyleSetPadding(root_child0, YGEdgeTop, 100);
YGNodeStyleSetPadding(root_child0, YGEdgeRight, 100);
@@ -2925,7 +2926,7 @@ TEST(YogaTest, static_position_absolute_child_containing_block_content_box) {
YGNodeStyleSetHeight(root_child0, 400);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidthPercent(root_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0, 50);
@@ -2970,12 +2971,12 @@ TEST(YogaTest, static_position_absolute_child_containing_block_content_box) {
}
TEST(YogaTest, static_position_relative_child_containing_block_content_box) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPadding(root_child0, YGEdgeLeft, 100);
YGNodeStyleSetPadding(root_child0, YGEdgeTop, 100);
YGNodeStyleSetPadding(root_child0, YGEdgeRight, 100);
@@ -2984,7 +2985,7 @@ TEST(YogaTest, static_position_relative_child_containing_block_content_box) {
YGNodeStyleSetHeight(root_child0, 400);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetWidthPercent(root_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0, 50);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
@@ -3028,12 +3029,12 @@ TEST(YogaTest, static_position_relative_child_containing_block_content_box) {
}
TEST(YogaTest, static_position_static_child_containing_block_content_box) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPadding(root_child0, YGEdgeLeft, 100);
YGNodeStyleSetPadding(root_child0, YGEdgeTop, 100);
YGNodeStyleSetPadding(root_child0, YGEdgeRight, 100);
@@ -3042,7 +3043,7 @@ TEST(YogaTest, static_position_static_child_containing_block_content_box) {
YGNodeStyleSetHeight(root_child0, 400);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidthPercent(root_child0_child0, 50);
YGNodeStyleSetHeight(root_child0_child0, 50);
@@ -3087,12 +3088,12 @@ TEST(YogaTest, static_position_static_child_containing_block_content_box) {
}
TEST(YogaTest, static_position_containing_block_padding_and_border) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPadding(root_child0, YGEdgeLeft, 9);
YGNodeStyleSetPadding(root_child0, YGEdgeTop, 8);
YGNodeStyleSetPadding(root_child0, YGEdgeRight, 1);
@@ -3105,13 +3106,13 @@ TEST(YogaTest, static_position_containing_block_padding_and_border) {
YGNodeStyleSetHeight(root_child0, 400);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetWidth(root_child0_child0, 100);
YGNodeStyleSetHeight(root_child0_child0, 100);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetWidthPercent(root_child0_child0_child0, 41);
YGNodeStyleSetHeightPercent(root_child0_child0_child0, 61);
@@ -3166,12 +3167,12 @@ TEST(YogaTest, static_position_containing_block_padding_and_border) {
}
TEST(YogaTest, static_position_amalgamation) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 4);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 9);
@@ -3188,7 +3189,7 @@ TEST(YogaTest, static_position_amalgamation) {
YGNodeStyleSetHeight(root_child0, 500);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 8);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeTop, 6);
@@ -3206,7 +3207,7 @@ TEST(YogaTest, static_position_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0, 200);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeLeft, 2);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeRight, 12);
@@ -3275,12 +3276,12 @@ TEST(YogaTest, static_position_amalgamation) {
}
TEST(YogaTest, static_position_no_position_amalgamation) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 4);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 9);
@@ -3297,7 +3298,7 @@ TEST(YogaTest, static_position_no_position_amalgamation) {
YGNodeStyleSetHeight(root_child0, 500);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 8);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeTop, 6);
@@ -3315,7 +3316,7 @@ TEST(YogaTest, static_position_no_position_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0, 200);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeTop, 12);
@@ -3382,12 +3383,12 @@ TEST(YogaTest, static_position_no_position_amalgamation) {
}
TEST(YogaTest, static_position_zero_for_inset_amalgamation) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 4);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 9);
@@ -3404,7 +3405,7 @@ TEST(YogaTest, static_position_zero_for_inset_amalgamation) {
YGNodeStyleSetHeight(root_child0, 500);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 8);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeTop, 6);
@@ -3422,7 +3423,7 @@ TEST(YogaTest, static_position_zero_for_inset_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0, 200);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPositionPercent(root_child0_child0_child0, YGEdgeLeft, 0);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeLeft, 9);
@@ -3490,12 +3491,12 @@ TEST(YogaTest, static_position_zero_for_inset_amalgamation) {
}
TEST(YogaTest, static_position_start_inset_amalgamation) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 4);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 9);
@@ -3512,7 +3513,7 @@ TEST(YogaTest, static_position_start_inset_amalgamation) {
YGNodeStyleSetHeight(root_child0, 500);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 8);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeTop, 6);
@@ -3530,7 +3531,7 @@ TEST(YogaTest, static_position_start_inset_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0, 200);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeStart, 12);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeLeft, 9);
@@ -3598,12 +3599,12 @@ TEST(YogaTest, static_position_start_inset_amalgamation) {
}
TEST(YogaTest, static_position_end_inset_amalgamation) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 4);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 9);
@@ -3620,7 +3621,7 @@ TEST(YogaTest, static_position_end_inset_amalgamation) {
YGNodeStyleSetHeight(root_child0, 500);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 8);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeTop, 6);
@@ -3638,7 +3639,7 @@ TEST(YogaTest, static_position_end_inset_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0, 200);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeEnd, 4);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeLeft, 9);
@@ -3706,12 +3707,12 @@ TEST(YogaTest, static_position_end_inset_amalgamation) {
}
TEST(YogaTest, static_position_row_reverse_amalgamation) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 4);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 9);
@@ -3726,7 +3727,7 @@ TEST(YogaTest, static_position_row_reverse_amalgamation) {
YGNodeStyleSetBorder(root_child0, YGEdgeBottom, 8);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0, YGFlexDirectionRowReverse);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 8);
@@ -3743,7 +3744,7 @@ TEST(YogaTest, static_position_row_reverse_amalgamation) {
YGNodeStyleSetBorder(root_child0_child0, YGEdgeBottom, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeTop, 12);
@@ -3760,7 +3761,7 @@ TEST(YogaTest, static_position_row_reverse_amalgamation) {
YGNodeStyleSetHeightPercent(root_child0_child0_child0, 12);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeRight, 4);
@@ -3836,12 +3837,12 @@ TEST(YogaTest, static_position_row_reverse_amalgamation) {
}
TEST(YogaTest, static_position_column_reverse_amalgamation) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 4);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 9);
@@ -3856,7 +3857,7 @@ TEST(YogaTest, static_position_column_reverse_amalgamation) {
YGNodeStyleSetBorder(root_child0, YGEdgeBottom, 8);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetFlexDirection(root_child0_child0, YGFlexDirectionColumnReverse);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 8);
@@ -3873,7 +3874,7 @@ TEST(YogaTest, static_position_column_reverse_amalgamation) {
YGNodeStyleSetBorder(root_child0_child0, YGEdgeBottom, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeTop, 12);
@@ -3890,7 +3891,7 @@ TEST(YogaTest, static_position_column_reverse_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child0, 21);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeRight, 4);
@@ -3966,12 +3967,12 @@ TEST(YogaTest, static_position_column_reverse_amalgamation) {
}
TEST(YogaTest, static_position_justify_flex_start_amalgamation) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 4);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 9);
@@ -3986,7 +3987,7 @@ TEST(YogaTest, static_position_justify_flex_start_amalgamation) {
YGNodeStyleSetBorder(root_child0, YGEdgeBottom, 8);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 8);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeTop, 6);
@@ -4002,7 +4003,7 @@ TEST(YogaTest, static_position_justify_flex_start_amalgamation) {
YGNodeStyleSetBorder(root_child0_child0, YGEdgeBottom, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeTop, 12);
@@ -4019,7 +4020,7 @@ TEST(YogaTest, static_position_justify_flex_start_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child0, 21);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeRight, 4);
@@ -4036,7 +4037,7 @@ TEST(YogaTest, static_position_justify_flex_start_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0_child0_child0, 50);
YGNodeInsertChild(root_child0_child0_child0, root_child0_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeRight, 4);
@@ -4052,7 +4053,7 @@ TEST(YogaTest, static_position_justify_flex_start_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child1, 10);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child1, 1);
- const YGNodeRef root_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeRight, 4);
@@ -4069,7 +4070,7 @@ TEST(YogaTest, static_position_justify_flex_start_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0_child1_child0, 50);
YGNodeInsertChild(root_child0_child0_child1, root_child0_child0_child1_child0, 0);
- const YGNodeRef root_child0_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeRight, 4);
@@ -4085,7 +4086,7 @@ TEST(YogaTest, static_position_justify_flex_start_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child2, 10);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child2, 2);
- const YGNodeRef root_child0_child0_child2_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeRight, 4);
@@ -4201,12 +4202,12 @@ TEST(YogaTest, static_position_justify_flex_start_amalgamation) {
}
TEST(YogaTest, static_position_justify_flex_start_position_set_amalgamation) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 4);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 9);
@@ -4221,7 +4222,7 @@ TEST(YogaTest, static_position_justify_flex_start_position_set_amalgamation) {
YGNodeStyleSetBorder(root_child0, YGEdgeBottom, 8);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 8);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeTop, 6);
@@ -4237,7 +4238,7 @@ TEST(YogaTest, static_position_justify_flex_start_position_set_amalgamation) {
YGNodeStyleSetBorder(root_child0_child0, YGEdgeBottom, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeRight, 30);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeLeft, 9);
@@ -4255,7 +4256,7 @@ TEST(YogaTest, static_position_justify_flex_start_position_set_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child0, 21);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeRight, 4);
@@ -4272,7 +4273,7 @@ TEST(YogaTest, static_position_justify_flex_start_position_set_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0_child0_child0, 50);
YGNodeInsertChild(root_child0_child0_child0, root_child0_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeRight, 4);
@@ -4288,7 +4289,7 @@ TEST(YogaTest, static_position_justify_flex_start_position_set_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child1, 10);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child1, 1);
- const YGNodeRef root_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeRight, 4);
@@ -4305,7 +4306,7 @@ TEST(YogaTest, static_position_justify_flex_start_position_set_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0_child1_child0, 50);
YGNodeInsertChild(root_child0_child0_child1, root_child0_child0_child1_child0, 0);
- const YGNodeRef root_child0_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeRight, 4);
@@ -4321,7 +4322,7 @@ TEST(YogaTest, static_position_justify_flex_start_position_set_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child2, 10);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child2, 2);
- const YGNodeRef root_child0_child0_child2_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeRight, 4);
@@ -4437,12 +4438,12 @@ TEST(YogaTest, static_position_justify_flex_start_position_set_amalgamation) {
}
TEST(YogaTest, static_position_no_definite_size_amalgamation) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 4);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 9);
@@ -4457,7 +4458,7 @@ TEST(YogaTest, static_position_no_definite_size_amalgamation) {
YGNodeStyleSetBorder(root_child0, YGEdgeBottom, 8);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 8);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeTop, 6);
@@ -4473,7 +4474,7 @@ TEST(YogaTest, static_position_no_definite_size_amalgamation) {
YGNodeStyleSetBorder(root_child0_child0, YGEdgeBottom, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPositionPercent(root_child0_child0_child0, YGEdgeLeft, 23);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeLeft, 9);
@@ -4490,7 +4491,7 @@ TEST(YogaTest, static_position_no_definite_size_amalgamation) {
YGNodeStyleSetBorder(root_child0_child0_child0, YGEdgeBottom, 9);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeRight, 4);
@@ -4566,12 +4567,12 @@ TEST(YogaTest, static_position_no_definite_size_amalgamation) {
}
TEST(YogaTest, static_position_both_insets_set_amalgamation) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 4);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 9);
@@ -4586,7 +4587,7 @@ TEST(YogaTest, static_position_both_insets_set_amalgamation) {
YGNodeStyleSetBorder(root_child0, YGEdgeBottom, 8);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 8);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeTop, 6);
@@ -4602,7 +4603,7 @@ TEST(YogaTest, static_position_both_insets_set_amalgamation) {
YGNodeStyleSetBorder(root_child0_child0, YGEdgeBottom, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetPositionPercent(root_child0_child0_child0, YGEdgeLeft, 23);
YGNodeStyleSetPosition(root_child0_child0_child0, YGEdgeRight, 13);
@@ -4620,7 +4621,7 @@ TEST(YogaTest, static_position_both_insets_set_amalgamation) {
YGNodeStyleSetBorder(root_child0_child0_child0, YGEdgeBottom, 9);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeRight, 4);
@@ -4696,12 +4697,12 @@ TEST(YogaTest, static_position_both_insets_set_amalgamation) {
}
TEST(YogaTest, static_position_justify_center_amalgamation) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 4);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 9);
@@ -4716,7 +4717,7 @@ TEST(YogaTest, static_position_justify_center_amalgamation) {
YGNodeStyleSetBorder(root_child0, YGEdgeBottom, 8);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root_child0_child0, YGJustifyCenter);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 8);
@@ -4733,7 +4734,7 @@ TEST(YogaTest, static_position_justify_center_amalgamation) {
YGNodeStyleSetBorder(root_child0_child0, YGEdgeBottom, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeTop, 12);
@@ -4750,7 +4751,7 @@ TEST(YogaTest, static_position_justify_center_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child0, 21);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeRight, 4);
@@ -4767,7 +4768,7 @@ TEST(YogaTest, static_position_justify_center_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0_child0_child0, 50);
YGNodeInsertChild(root_child0_child0_child0, root_child0_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeRight, 4);
@@ -4783,7 +4784,7 @@ TEST(YogaTest, static_position_justify_center_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child1, 10);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child1, 1);
- const YGNodeRef root_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeRight, 4);
@@ -4800,7 +4801,7 @@ TEST(YogaTest, static_position_justify_center_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0_child1_child0, 50);
YGNodeInsertChild(root_child0_child0_child1, root_child0_child0_child1_child0, 0);
- const YGNodeRef root_child0_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeRight, 4);
@@ -4816,7 +4817,7 @@ TEST(YogaTest, static_position_justify_center_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child2, 10);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child2, 2);
- const YGNodeRef root_child0_child0_child2_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeRight, 4);
@@ -4932,12 +4933,12 @@ TEST(YogaTest, static_position_justify_center_amalgamation) {
}
TEST(YogaTest, static_position_justify_flex_end_amalgamation) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 4);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 9);
@@ -4952,7 +4953,7 @@ TEST(YogaTest, static_position_justify_flex_end_amalgamation) {
YGNodeStyleSetBorder(root_child0, YGEdgeBottom, 8);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetJustifyContent(root_child0_child0, YGJustifyFlexEnd);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 8);
@@ -4969,7 +4970,7 @@ TEST(YogaTest, static_position_justify_flex_end_amalgamation) {
YGNodeStyleSetBorder(root_child0_child0, YGEdgeBottom, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeTop, 12);
@@ -4986,7 +4987,7 @@ TEST(YogaTest, static_position_justify_flex_end_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child0, 21);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeRight, 4);
@@ -5003,7 +5004,7 @@ TEST(YogaTest, static_position_justify_flex_end_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0_child0_child0, 50);
YGNodeInsertChild(root_child0_child0_child0, root_child0_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeRight, 4);
@@ -5019,7 +5020,7 @@ TEST(YogaTest, static_position_justify_flex_end_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child1, 10);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child1, 1);
- const YGNodeRef root_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeRight, 4);
@@ -5036,7 +5037,7 @@ TEST(YogaTest, static_position_justify_flex_end_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0_child1_child0, 50);
YGNodeInsertChild(root_child0_child0_child1, root_child0_child0_child1_child0, 0);
- const YGNodeRef root_child0_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeRight, 4);
@@ -5052,7 +5053,7 @@ TEST(YogaTest, static_position_justify_flex_end_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child2, 10);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child2, 2);
- const YGNodeRef root_child0_child0_child2_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeRight, 4);
@@ -5168,12 +5169,12 @@ TEST(YogaTest, static_position_justify_flex_end_amalgamation) {
}
TEST(YogaTest, static_position_align_flex_start_amalgamation) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 4);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 9);
@@ -5188,7 +5189,7 @@ TEST(YogaTest, static_position_align_flex_start_amalgamation) {
YGNodeStyleSetBorder(root_child0, YGEdgeBottom, 8);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root_child0_child0, YGAlignFlexStart);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 8);
@@ -5205,7 +5206,7 @@ TEST(YogaTest, static_position_align_flex_start_amalgamation) {
YGNodeStyleSetBorder(root_child0_child0, YGEdgeBottom, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeTop, 12);
@@ -5222,7 +5223,7 @@ TEST(YogaTest, static_position_align_flex_start_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child0, 21);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeRight, 4);
@@ -5239,7 +5240,7 @@ TEST(YogaTest, static_position_align_flex_start_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0_child0_child0, 50);
YGNodeInsertChild(root_child0_child0_child0, root_child0_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeRight, 4);
@@ -5255,7 +5256,7 @@ TEST(YogaTest, static_position_align_flex_start_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child1, 10);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child1, 1);
- const YGNodeRef root_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeRight, 4);
@@ -5272,7 +5273,7 @@ TEST(YogaTest, static_position_align_flex_start_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0_child1_child0, 50);
YGNodeInsertChild(root_child0_child0_child1, root_child0_child0_child1_child0, 0);
- const YGNodeRef root_child0_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeRight, 4);
@@ -5288,7 +5289,7 @@ TEST(YogaTest, static_position_align_flex_start_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child2, 10);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child2, 2);
- const YGNodeRef root_child0_child0_child2_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeRight, 4);
@@ -5404,12 +5405,12 @@ TEST(YogaTest, static_position_align_flex_start_amalgamation) {
}
TEST(YogaTest, static_position_align_center_amalgamation) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 4);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 9);
@@ -5424,7 +5425,7 @@ TEST(YogaTest, static_position_align_center_amalgamation) {
YGNodeStyleSetBorder(root_child0, YGEdgeBottom, 8);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root_child0_child0, YGAlignCenter);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 8);
@@ -5441,7 +5442,7 @@ TEST(YogaTest, static_position_align_center_amalgamation) {
YGNodeStyleSetBorder(root_child0_child0, YGEdgeBottom, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeTop, 12);
@@ -5458,7 +5459,7 @@ TEST(YogaTest, static_position_align_center_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child0, 21);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeRight, 4);
@@ -5475,7 +5476,7 @@ TEST(YogaTest, static_position_align_center_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0_child0_child0, 50);
YGNodeInsertChild(root_child0_child0_child0, root_child0_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeRight, 4);
@@ -5491,7 +5492,7 @@ TEST(YogaTest, static_position_align_center_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child1, 10);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child1, 1);
- const YGNodeRef root_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeRight, 4);
@@ -5508,7 +5509,7 @@ TEST(YogaTest, static_position_align_center_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0_child1_child0, 50);
YGNodeInsertChild(root_child0_child0_child1, root_child0_child0_child1_child0, 0);
- const YGNodeRef root_child0_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeRight, 4);
@@ -5524,7 +5525,7 @@ TEST(YogaTest, static_position_align_center_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child2, 10);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child2, 2);
- const YGNodeRef root_child0_child0_child2_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeRight, 4);
@@ -5640,12 +5641,12 @@ TEST(YogaTest, static_position_align_center_amalgamation) {
}
TEST(YogaTest, static_position_align_flex_end_amalgamation) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 4);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 5);
YGNodeStyleSetMargin(root_child0, YGEdgeRight, 9);
@@ -5660,7 +5661,7 @@ TEST(YogaTest, static_position_align_flex_end_amalgamation) {
YGNodeStyleSetBorder(root_child0, YGEdgeBottom, 8);
YGNodeInsertChild(root, root_child0, 0);
- const YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetAlignItems(root_child0_child0, YGAlignFlexEnd);
YGNodeStyleSetPositionType(root_child0_child0, YGPositionTypeStatic);
YGNodeStyleSetMargin(root_child0_child0, YGEdgeLeft, 8);
@@ -5677,7 +5678,7 @@ TEST(YogaTest, static_position_align_flex_end_amalgamation) {
YGNodeStyleSetBorder(root_child0_child0, YGEdgeBottom, 1);
YGNodeInsertChild(root_child0, root_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0_child0_child0, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0, YGEdgeTop, 12);
@@ -5694,7 +5695,7 @@ TEST(YogaTest, static_position_align_flex_end_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child0, 21);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child0_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child0_child0, YGEdgeRight, 4);
@@ -5711,7 +5712,7 @@ TEST(YogaTest, static_position_align_flex_end_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0_child0_child0, 50);
YGNodeInsertChild(root_child0_child0_child0, root_child0_child0_child0_child0, 0);
- const YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child1, YGEdgeRight, 4);
@@ -5727,7 +5728,7 @@ TEST(YogaTest, static_position_align_flex_end_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child1, 10);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child1, 1);
- const YGNodeRef root_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child1_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child1_child0, YGEdgeRight, 4);
@@ -5744,7 +5745,7 @@ TEST(YogaTest, static_position_align_flex_end_amalgamation) {
YGNodeStyleSetHeight(root_child0_child0_child1_child0, 50);
YGNodeInsertChild(root_child0_child0_child1, root_child0_child0_child1_child0, 0);
- const YGNodeRef root_child0_child0_child2 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child2, YGEdgeRight, 4);
@@ -5760,7 +5761,7 @@ TEST(YogaTest, static_position_align_flex_end_amalgamation) {
YGNodeStyleSetWidthPercent(root_child0_child0_child2, 10);
YGNodeInsertChild(root_child0_child0, root_child0_child0_child2, 2);
- const YGNodeRef root_child0_child0_child2_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0_child0_child2_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeLeft, 9);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeTop, 12);
YGNodeStyleSetMargin(root_child0_child0_child2_child0, YGEdgeRight, 4);
@@ -5876,9 +5877,9 @@ TEST(YogaTest, static_position_align_flex_end_amalgamation) {
}
TEST(YogaTest, static_position_static_root) {
- const YGConfigRef config = YGConfigNew();
+ YGConfigRef config = YGConfigNew();
- const YGNodeRef root = YGNodeNewWithConfig(config);
+ YGNodeRef root = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root, YGPositionTypeStatic);
YGNodeStyleSetPadding(root, YGEdgeLeft, 6);
YGNodeStyleSetPadding(root, YGEdgeTop, 1);
@@ -5887,7 +5888,7 @@ TEST(YogaTest, static_position_static_root) {
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 200);
- const YGNodeRef root_child0 = YGNodeNewWithConfig(config);
+ YGNodeRef root_child0 = YGNodeNewWithConfig(config);
YGNodeStyleSetPositionType(root_child0, YGPositionTypeAbsolute);
YGNodeStyleSetMargin(root_child0, YGEdgeLeft, 12);
YGNodeStyleSetMargin(root_child0, YGEdgeTop, 11);
diff --git a/tests/util/TestUtil.cpp b/tests/util/TestUtil.cpp
index 2556f89c09..61744f2606 100644
--- a/tests/util/TestUtil.cpp
+++ b/tests/util/TestUtil.cpp
@@ -7,8 +7,14 @@
#include "TestUtil.h"
+#include
+#include
#include
#include
+#include
+#include
+#include
+#include
namespace facebook::yoga::test {
@@ -58,4 +64,95 @@ ScopedEventSubscription::~ScopedEventSubscription() {
Event::reset();
}
+YGSize IntrinsicSizeMeasure(
+ YGNodeConstRef node,
+ float width,
+ YGMeasureMode widthMode,
+ float height,
+ YGMeasureMode heightMode) {
+ std::string_view innerText((char*)YGNodeGetContext(node));
+ float heightPerChar = 10;
+ float widthPerChar = 10;
+ float measuredWidth;
+ float measuredHeight;
+
+ if (widthMode == YGMeasureModeExactly) {
+ measuredWidth = width;
+ } else if (widthMode == YGMeasureModeAtMost) {
+ measuredWidth = std::min((float)innerText.size() * widthPerChar, width);
+ } else {
+ measuredWidth = (float)innerText.size() * widthPerChar;
+ }
+
+ if (heightMode == YGMeasureModeExactly) {
+ measuredHeight = height;
+ } else if (heightMode == YGMeasureModeAtMost) {
+ measuredHeight = std::min(
+ calculateHeight(
+ innerText,
+ std::max(longestWordWidth(innerText, widthPerChar), measuredWidth),
+ widthPerChar,
+ heightPerChar),
+ height);
+ } else {
+ measuredHeight = calculateHeight(
+ innerText,
+ std::max(longestWordWidth(innerText, widthPerChar), measuredWidth),
+ widthPerChar,
+ heightPerChar);
+ }
+
+ return YGSize{measuredWidth, measuredHeight};
+}
+
+float longestWordWidth(std::string_view text, float widthPerChar) {
+ int maxLength = 0;
+ int currentLength = 0;
+ for (auto c : text) {
+ if (c == ' ') {
+ maxLength = std::max(currentLength, maxLength);
+ currentLength = 0;
+ } else {
+ currentLength++;
+ }
+ }
+ return (float)std::max(currentLength, maxLength) * widthPerChar;
+}
+
+float calculateHeight(
+ std::string_view text,
+ float measuredWidth,
+ float widthPerChar,
+ float heightPerChar) {
+ if ((float)text.size() * widthPerChar <= measuredWidth) {
+ return heightPerChar;
+ }
+
+ std::vector words;
+ std::istringstream iss((std::string)text);
+ std::string currentWord;
+ while (getline(iss, currentWord, ' ')) {
+ words.push_back(currentWord);
+ }
+
+ float lines = 1;
+ float currentLineLength = 0;
+ for (const std::string& word : words) {
+ float wordWidth = (float)word.length() * widthPerChar;
+ if (wordWidth > measuredWidth) {
+ if (currentLineLength > 0) {
+ lines++;
+ }
+ lines++;
+ currentLineLength = 0;
+ } else if (currentLineLength + wordWidth <= measuredWidth) {
+ currentLineLength += wordWidth + widthPerChar;
+ } else {
+ lines++;
+ currentLineLength = wordWidth + widthPerChar;
+ }
+ }
+ return (currentLineLength == 0 ? lines - 1 : lines) * heightPerChar;
+}
+
} // namespace facebook::yoga::test
diff --git a/tests/util/TestUtil.h b/tests/util/TestUtil.h
index 3a448fd559..4326c3bd73 100644
--- a/tests/util/TestUtil.h
+++ b/tests/util/TestUtil.h
@@ -7,9 +7,10 @@
#pragma once
+#include
#include
-
#include
+#include
namespace facebook::yoga::test {
@@ -24,4 +25,19 @@ struct ScopedEventSubscription {
~ScopedEventSubscription();
};
+YGSize IntrinsicSizeMeasure(
+ YGNodeConstRef node,
+ float width,
+ YGMeasureMode widthMode,
+ float height,
+ YGMeasureMode heightMode);
+
+float longestWordWidth(std::string_view text, float widthPerChar);
+
+float calculateHeight(
+ std::string_view text,
+ float measuredWidth,
+ float widthPerChar,
+ float heightPerChar);
+
} // namespace facebook::yoga::test
diff --git a/website/blog/2024-06-24-announcing-yoga-3.1.md b/website/blog/2024-06-24-announcing-yoga-3.1.md
new file mode 100644
index 0000000000..9bb3e83b39
--- /dev/null
+++ b/website/blog/2024-06-24-announcing-yoga-3.1.md
@@ -0,0 +1,67 @@
+---
+slug: announcing-yoga-3.1
+title: Announcing Yoga 3.1
+authors:
+ - NickGerleman
+---
+
+import Playground from '@site/src/components/Playground';
+
+Yoga 3.1 is a new minor version of Yoga, used by React Native 0.75.
+
+## Highlights
+
+1. Percentage support for `gap` properties
+2. Layout conformance and regression fixes
+3. Additional JavaScript bindings
+
+## Percentage support for `gap` properties
+
+Yoga [now supports](https://github.com/facebook/yoga/commit/cd4a1b8cf63cf09a62d6aefcd16843cc8869488c) gap values specified as percentages instead of points.
+
+:::warning
+
+Percentages in Yoga do not always act consistently with browsers when a definite container size is not provided. This may be improved in a future version of Yoga.
+
+:::
+
+
+
+
+
+
+
+`} />
+
+
+
+## Alignment changes to overflowed containers
+
+Yoga has made [several](https://github.com/facebook/yoga/commit/932361cdbf5864a2e6929b68154b4ada2ac586d9) [fixes](https://github.com/facebook/yoga/commit/6f10656868c2eca9b2eae55ad754e01e70565f69) to how flex-children of overflowed containers are aligned when using `justify-content`, `align-content`, or `margin: "auto"`. This includes some cases where adding an alignment keyword could cause items to overlap, or padding to be removed.
+
+
+
+
+
+`} />
+
+
+## Fixes for regressions in Yoga 3.0
+
+We fixed a couple of regressions added in Yoga 3.0, around percentage insets applied to some absolute containers ([#1657](https://github.com/facebook/yoga/issues/1657)), and start/end resolution when physical edge styles are also present ([#1658](https://github.com/facebook/yoga/issues/1658)).
+
+## Additional JavaScript bindings
+
+We've added JavaScript bindings for setting layout direction to Yoga 3.1, along with JavaScript additions made in patch releases to Yoga 3.0, including bindings for `hasNewLayout` flag manipulation, and an entrypoint for users who are unable to use top-level await.
diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index 33ce850b84..2e2a8b1e22 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -14,7 +14,7 @@ export default {
title: 'Yoga',
tagline:
'Build flexible layouts on any platform with a highly optimized open source layout engine designed with speed, size, and ease of use in mind.',
- favicon: 'img/favicon.png',
+ favicon: 'img/favicon.svg',
url: 'https:/yogalayout.dev',
baseUrl: '/',
@@ -95,5 +95,19 @@ export default {
defaultMode: 'dark',
respectPrefersColorScheme: true,
},
+ metadata: [
+ {
+ property: 'og:image',
+ content: 'https://yogalayout.dev/img/opengraph.png',
+ },
+ {
+ property: 'og:image:width',
+ content: '1200',
+ },
+ {
+ property: 'og:image:height',
+ content: '630',
+ },
+ ],
}),
};
diff --git a/website/package.json b/website/package.json
index 7959f838da..45d7718329 100644
--- a/website/package.json
+++ b/website/package.json
@@ -17,27 +17,27 @@
"lint:fix": "eslint . --fix"
},
"dependencies": {
- "@docusaurus/core": "3.0.1",
- "@docusaurus/preset-classic": "3.0.1",
+ "@docusaurus/core": "3.4.0",
+ "@docusaurus/preset-classic": "3.4.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"lz-string": "^1.5.0",
"nullthrows": "^1.1.1",
"prism-react-renderer": "^2.3.0",
- "react": "^18.0.0",
- "react-dom": "^18.0.0",
+ "react": "^18.3.0",
+ "react-dom": "^18.3.0",
"react-live": "^4.1.5",
"yoga-layout": "0.0.0"
},
"devDependencies": {
- "@docusaurus/module-type-aliases": "3.0.0",
- "@docusaurus/tsconfig": "3.0.0",
- "@docusaurus/types": "3.0.0",
+ "@docusaurus/module-type-aliases": "3.4.0",
+ "@docusaurus/tsconfig": "3.4.0",
+ "@docusaurus/types": "3.4.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0"
},
"browserslist": "> 0.5%, last 2 versions, Firefox ESR, not dead",
"engines": {
- "node": ">=16.14"
+ "node": ">=18.0"
}
}
diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx
index 6f6833f617..3cc1de0dec 100644
--- a/website/src/pages/index.tsx
+++ b/website/src/pages/index.tsx
@@ -76,7 +76,7 @@ function PlaygroundSection() {
export default function Home(): JSX.Element {
return (
-
+
diff --git a/website/static/img/favicon.png b/website/static/img/favicon.png
deleted file mode 100644
index 178f2730c7..0000000000
Binary files a/website/static/img/favicon.png and /dev/null differ
diff --git a/website/static/img/favicon.svg b/website/static/img/favicon.svg
new file mode 100644
index 0000000000..10f6a007ae
--- /dev/null
+++ b/website/static/img/favicon.svg
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/website/static/img/opengraph.png b/website/static/img/opengraph.png
new file mode 100644
index 0000000000..cc6876f2fc
Binary files /dev/null and b/website/static/img/opengraph.png differ
diff --git a/yarn.lock b/yarn.lock
index 4617a8cafb..b17b4f7166 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -162,98 +162,99 @@
"@nicolo-ribaudo/chokidar-2" "2.1.8-no-fsevents.3"
chokidar "^3.4.0"
-"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.16.0", "@babel/code-frame@^7.22.13", "@babel/code-frame@^7.23.5", "@babel/code-frame@^7.8.3":
- version "7.23.5"
- resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.23.5.tgz#9009b69a8c602293476ad598ff53e4562e15c244"
- integrity sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==
+"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.16.0", "@babel/code-frame@^7.24.7", "@babel/code-frame@^7.8.3":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.7.tgz#882fd9e09e8ee324e496bd040401c6f046ef4465"
+ integrity sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==
dependencies:
- "@babel/highlight" "^7.23.4"
- chalk "^2.4.2"
+ "@babel/highlight" "^7.24.7"
+ picocolors "^1.0.0"
-"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.22.9", "@babel/compat-data@^7.23.2":
- version "7.23.2"
- resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.23.2.tgz#6a12ced93455827037bfb5ed8492820d60fc32cc"
- integrity sha512-0S9TQMmDHlqAZ2ITT95irXKfxN9bncq8ZCoJhun3nHL/lLUxd2NKBJYoNGWH7S0hz6fRQwWlAWn/ILM0C70KZQ==
+"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.7.tgz#d23bbea508c3883ba8251fb4164982c36ea577ed"
+ integrity sha512-qJzAIcv03PyaWqxRgO4mSU3lihncDT296vnyuE2O8uA4w3UHWI4S3hgeZd1L8W1Bft40w9JxJ2b412iDUFFRhw==
-"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.19.6", "@babel/core@^7.23.0", "@babel/core@^7.23.3":
- version "7.23.5"
- resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.23.5.tgz#6e23f2acbcb77ad283c5ed141f824fd9f70101c7"
- integrity sha512-Cwc2XjUrG4ilcfOw4wBAK+enbdgwAcAJCfGUItPBKR7Mjw4aEfAFYrLxeRp4jWgtNIKn3n2AlBOfwwafl+42/g==
+"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.21.3", "@babel/core@^7.23.0", "@babel/core@^7.23.3":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.7.tgz#b676450141e0b52a3d43bc91da86aa608f950ac4"
+ integrity sha512-nykK+LEK86ahTkX/3TgauT0ikKoNCfKHEaZYTUVupJdTLzGNvrblu4u6fa7DhZONAltdf8e662t/abY8idrd/g==
dependencies:
"@ampproject/remapping" "^2.2.0"
- "@babel/code-frame" "^7.23.5"
- "@babel/generator" "^7.23.5"
- "@babel/helper-compilation-targets" "^7.22.15"
- "@babel/helper-module-transforms" "^7.23.3"
- "@babel/helpers" "^7.23.5"
- "@babel/parser" "^7.23.5"
- "@babel/template" "^7.22.15"
- "@babel/traverse" "^7.23.5"
- "@babel/types" "^7.23.5"
+ "@babel/code-frame" "^7.24.7"
+ "@babel/generator" "^7.24.7"
+ "@babel/helper-compilation-targets" "^7.24.7"
+ "@babel/helper-module-transforms" "^7.24.7"
+ "@babel/helpers" "^7.24.7"
+ "@babel/parser" "^7.24.7"
+ "@babel/template" "^7.24.7"
+ "@babel/traverse" "^7.24.7"
+ "@babel/types" "^7.24.7"
convert-source-map "^2.0.0"
debug "^4.1.0"
gensync "^1.0.0-beta.2"
json5 "^2.2.3"
semver "^6.3.1"
-"@babel/generator@^7.23.3", "@babel/generator@^7.23.5", "@babel/generator@^7.7.2":
- version "7.23.5"
- resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.23.5.tgz#17d0a1ea6b62f351d281350a5f80b87a810c4755"
- integrity sha512-BPssCHrBD+0YrxviOa3QzpqwhNIXKEtOa2jQrm4FlmkC2apYgRnQcmPWiGZDlGxiNtltnUFolMe8497Esry+jA==
+"@babel/generator@^7.23.3", "@babel/generator@^7.24.7", "@babel/generator@^7.7.2":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.7.tgz#1654d01de20ad66b4b4d99c135471bc654c55e6d"
+ integrity sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA==
dependencies:
- "@babel/types" "^7.23.5"
- "@jridgewell/gen-mapping" "^0.3.2"
- "@jridgewell/trace-mapping" "^0.3.17"
+ "@babel/types" "^7.24.7"
+ "@jridgewell/gen-mapping" "^0.3.5"
+ "@jridgewell/trace-mapping" "^0.3.25"
jsesc "^2.5.1"
-"@babel/helper-annotate-as-pure@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz#e7f06737b197d580a01edf75d97e2c8be99d3882"
- integrity sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==
+"@babel/helper-annotate-as-pure@^7.22.5", "@babel/helper-annotate-as-pure@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.24.7.tgz#5373c7bc8366b12a033b4be1ac13a206c6656aab"
+ integrity sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg==
dependencies:
- "@babel/types" "^7.22.5"
+ "@babel/types" "^7.24.7"
-"@babel/helper-builder-binary-assignment-operator-visitor@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.5.tgz#a3f4758efdd0190d8927fcffd261755937c71878"
- integrity sha512-m1EP3lVOPptR+2DwD125gziZNcmoNSHGmJROKoy87loWUQyJaVXDgpmruWqDARZSmtYQ+Dl25okU8+qhVzuykw==
+"@babel/helper-builder-binary-assignment-operator-visitor@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.24.7.tgz#37d66feb012024f2422b762b9b2a7cfe27c7fba3"
+ integrity sha512-xZeCVVdwb4MsDBkkyZ64tReWYrLRHlMN72vP7Bdm3OUOuyFZExhsHUUnuWnm2/XOlAJzR0LfPpB56WXZn0X/lA==
dependencies:
- "@babel/types" "^7.22.5"
+ "@babel/traverse" "^7.24.7"
+ "@babel/types" "^7.24.7"
-"@babel/helper-compilation-targets@^7.22.15", "@babel/helper-compilation-targets@^7.22.5", "@babel/helper-compilation-targets@^7.22.6":
- version "7.22.15"
- resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz#0698fc44551a26cf29f18d4662d5bf545a6cfc52"
- integrity sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==
+"@babel/helper-compilation-targets@^7.22.6", "@babel/helper-compilation-targets@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.7.tgz#4eb6c4a80d6ffeac25ab8cd9a21b5dfa48d503a9"
+ integrity sha512-ctSdRHBi20qWOfy27RUb4Fhp07KSJ3sXcuSvTrXrc4aG8NSYDo1ici3Vhg9bg69y5bj0Mr1lh0aeEgTvc12rMg==
dependencies:
- "@babel/compat-data" "^7.22.9"
- "@babel/helper-validator-option" "^7.22.15"
- browserslist "^4.21.9"
+ "@babel/compat-data" "^7.24.7"
+ "@babel/helper-validator-option" "^7.24.7"
+ browserslist "^4.22.2"
lru-cache "^5.1.1"
semver "^6.3.1"
-"@babel/helper-create-class-features-plugin@^7.22.11", "@babel/helper-create-class-features-plugin@^7.22.15", "@babel/helper-create-class-features-plugin@^7.22.5":
- version "7.22.15"
- resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.15.tgz#97a61b385e57fe458496fad19f8e63b63c867de4"
- integrity sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg==
- dependencies:
- "@babel/helper-annotate-as-pure" "^7.22.5"
- "@babel/helper-environment-visitor" "^7.22.5"
- "@babel/helper-function-name" "^7.22.5"
- "@babel/helper-member-expression-to-functions" "^7.22.15"
- "@babel/helper-optimise-call-expression" "^7.22.5"
- "@babel/helper-replace-supers" "^7.22.9"
- "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5"
- "@babel/helper-split-export-declaration" "^7.22.6"
+"@babel/helper-create-class-features-plugin@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.7.tgz#2eaed36b3a1c11c53bdf80d53838b293c52f5b3b"
+ integrity sha512-kTkaDl7c9vO80zeX1rJxnuRpEsD5tA81yh11X1gQo+PhSti3JS+7qeZo9U4RHobKRiFPKaGK3svUAeb8D0Q7eg==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.24.7"
+ "@babel/helper-environment-visitor" "^7.24.7"
+ "@babel/helper-function-name" "^7.24.7"
+ "@babel/helper-member-expression-to-functions" "^7.24.7"
+ "@babel/helper-optimise-call-expression" "^7.24.7"
+ "@babel/helper-replace-supers" "^7.24.7"
+ "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7"
+ "@babel/helper-split-export-declaration" "^7.24.7"
semver "^6.3.1"
-"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.5.tgz#bb2bf0debfe39b831986a4efbf4066586819c6e4"
- integrity sha512-1VpEFOIbMRaXyDeUwUfmTIxExLwQ+zkW+Bh5zXpApA3oQedBx9v/updixWxnx/bZpKw7u8VxWjb/qWpIcmPq8A==
+"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.24.7.tgz#be4f435a80dc2b053c76eeb4b7d16dd22cfc89da"
+ integrity sha512-03TCmXy2FtXJEZfbXDTSqq1fRJArk7lX9DOFC/47VthYcxyIOx+eXQmdo6DOQvrbpIix+KfXwvuXdFDZHxt+rA==
dependencies:
- "@babel/helper-annotate-as-pure" "^7.22.5"
+ "@babel/helper-annotate-as-pure" "^7.24.7"
regexpu-core "^5.3.1"
- semver "^6.3.0"
+ semver "^6.3.1"
"@babel/helper-define-polyfill-provider@^0.4.3":
version "0.4.3"
@@ -266,164 +267,198 @@
lodash.debounce "^4.0.8"
resolve "^1.14.2"
-"@babel/helper-environment-visitor@^7.22.20", "@babel/helper-environment-visitor@^7.22.5":
- version "7.22.20"
- resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz#96159db61d34a29dba454c959f5ae4a649ba9167"
- integrity sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==
-
-"@babel/helper-function-name@^7.22.5", "@babel/helper-function-name@^7.23.0":
- version "7.23.0"
- resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz#1f9a3cdbd5b2698a670c30d2735f9af95ed52759"
- integrity sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==
- dependencies:
- "@babel/template" "^7.22.15"
- "@babel/types" "^7.23.0"
-
-"@babel/helper-hoist-variables@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz#c01a007dac05c085914e8fb652b339db50d823bb"
- integrity sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==
- dependencies:
- "@babel/types" "^7.22.5"
-
-"@babel/helper-member-expression-to-functions@^7.22.15":
- version "7.23.0"
- resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz#9263e88cc5e41d39ec18c9a3e0eced59a3e7d366"
- integrity sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==
- dependencies:
- "@babel/types" "^7.23.0"
-
-"@babel/helper-module-imports@^7.22.15", "@babel/helper-module-imports@^7.22.5":
- version "7.22.15"
- resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz#16146307acdc40cc00c3b2c647713076464bdbf0"
- integrity sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==
- dependencies:
- "@babel/types" "^7.22.15"
-
-"@babel/helper-module-transforms@^7.22.5", "@babel/helper-module-transforms@^7.23.0", "@babel/helper-module-transforms@^7.23.3":
- version "7.23.3"
- resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz#d7d12c3c5d30af5b3c0fcab2a6d5217773e2d0f1"
- integrity sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==
- dependencies:
- "@babel/helper-environment-visitor" "^7.22.20"
- "@babel/helper-module-imports" "^7.22.15"
- "@babel/helper-simple-access" "^7.22.5"
- "@babel/helper-split-export-declaration" "^7.22.6"
- "@babel/helper-validator-identifier" "^7.22.20"
-
-"@babel/helper-optimise-call-expression@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz#f21531a9ccbff644fdd156b4077c16ff0c3f609e"
- integrity sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==
- dependencies:
- "@babel/types" "^7.22.5"
-
-"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz#dd7ee3735e8a313b9f7b05a773d892e88e6d7295"
- integrity sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==
-
-"@babel/helper-remap-async-to-generator@^7.22.20", "@babel/helper-remap-async-to-generator@^7.22.5":
- version "7.22.20"
- resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.20.tgz#7b68e1cb4fa964d2996fd063723fb48eca8498e0"
- integrity sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==
- dependencies:
- "@babel/helper-annotate-as-pure" "^7.22.5"
- "@babel/helper-environment-visitor" "^7.22.20"
- "@babel/helper-wrap-function" "^7.22.20"
-
-"@babel/helper-replace-supers@^7.22.5", "@babel/helper-replace-supers@^7.22.9":
- version "7.22.20"
- resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz#e37d367123ca98fe455a9887734ed2e16eb7a793"
- integrity sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==
- dependencies:
- "@babel/helper-environment-visitor" "^7.22.20"
- "@babel/helper-member-expression-to-functions" "^7.22.15"
- "@babel/helper-optimise-call-expression" "^7.22.5"
-
-"@babel/helper-simple-access@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz#4938357dc7d782b80ed6dbb03a0fba3d22b1d5de"
- integrity sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==
+"@babel/helper-define-polyfill-provider@^0.6.1", "@babel/helper-define-polyfill-provider@^0.6.2":
+ version "0.6.2"
+ resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.2.tgz#18594f789c3594acb24cfdb4a7f7b7d2e8bd912d"
+ integrity sha512-LV76g+C502biUK6AyZ3LK10vDpDyCzZnhZFXkH1L75zHPj68+qc8Zfpx2th+gzwA2MzyK+1g/3EPl62yFnVttQ==
dependencies:
- "@babel/types" "^7.22.5"
+ "@babel/helper-compilation-targets" "^7.22.6"
+ "@babel/helper-plugin-utils" "^7.22.5"
+ debug "^4.1.1"
+ lodash.debounce "^4.0.8"
+ resolve "^1.14.2"
-"@babel/helper-skip-transparent-expression-wrappers@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz#007f15240b5751c537c40e77abb4e89eeaaa8847"
- integrity sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==
+"@babel/helper-environment-visitor@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz#4b31ba9551d1f90781ba83491dd59cf9b269f7d9"
+ integrity sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ==
dependencies:
- "@babel/types" "^7.22.5"
+ "@babel/types" "^7.24.7"
-"@babel/helper-split-export-declaration@^7.22.6":
- version "7.22.6"
- resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz#322c61b7310c0997fe4c323955667f18fcefb91c"
- integrity sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==
+"@babel/helper-function-name@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.24.7.tgz#75f1e1725742f39ac6584ee0b16d94513da38dd2"
+ integrity sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA==
dependencies:
- "@babel/types" "^7.22.5"
+ "@babel/template" "^7.24.7"
+ "@babel/types" "^7.24.7"
+
+"@babel/helper-hoist-variables@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.7.tgz#b4ede1cde2fd89436397f30dc9376ee06b0f25ee"
+ integrity sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ==
+ dependencies:
+ "@babel/types" "^7.24.7"
-"@babel/helper-string-parser@^7.23.4":
- version "7.23.4"
- resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz#9478c707febcbbe1ddb38a3d91a2e054ae622d83"
- integrity sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==
-
-"@babel/helper-validator-identifier@^7.22.20":
- version "7.22.20"
- resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz#c4ae002c61d2879e724581d96665583dbc1dc0e0"
- integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==
-
-"@babel/helper-validator-option@^7.22.15":
- version "7.22.15"
- resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz#694c30dfa1d09a6534cdfcafbe56789d36aba040"
- integrity sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==
+"@babel/helper-member-expression-to-functions@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.24.7.tgz#67613d068615a70e4ed5101099affc7a41c5225f"
+ integrity sha512-LGeMaf5JN4hAT471eJdBs/GK1DoYIJ5GCtZN/EsL6KUiiDZOvO/eKE11AMZJa2zP4zk4qe9V2O/hxAmkRc8p6w==
+ dependencies:
+ "@babel/traverse" "^7.24.7"
+ "@babel/types" "^7.24.7"
+
+"@babel/helper-module-imports@^7.22.15", "@babel/helper-module-imports@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz#f2f980392de5b84c3328fc71d38bd81bbb83042b"
+ integrity sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==
+ dependencies:
+ "@babel/traverse" "^7.24.7"
+ "@babel/types" "^7.24.7"
+
+"@babel/helper-module-transforms@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.7.tgz#31b6c9a2930679498db65b685b1698bfd6c7daf8"
+ integrity sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ==
+ dependencies:
+ "@babel/helper-environment-visitor" "^7.24.7"
+ "@babel/helper-module-imports" "^7.24.7"
+ "@babel/helper-simple-access" "^7.24.7"
+ "@babel/helper-split-export-declaration" "^7.24.7"
+ "@babel/helper-validator-identifier" "^7.24.7"
+
+"@babel/helper-optimise-call-expression@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.24.7.tgz#8b0a0456c92f6b323d27cfd00d1d664e76692a0f"
+ integrity sha512-jKiTsW2xmWwxT1ixIdfXUZp+P5yURx2suzLZr5Hi64rURpDYdMW0pv+Uf17EYk2Rd428Lx4tLsnjGJzYKDM/6A==
+ dependencies:
+ "@babel/types" "^7.24.7"
+
+"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.24.7", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.7.tgz#98c84fe6fe3d0d3ae7bfc3a5e166a46844feb2a0"
+ integrity sha512-Rq76wjt7yz9AAc1KnlRKNAi/dMSVWgDRx43FHoJEbcYU6xOWaE2dVPwcdTukJrjxS65GITyfbvEYHvkirZ6uEg==
+
+"@babel/helper-remap-async-to-generator@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.24.7.tgz#b3f0f203628522713849d49403f1a414468be4c7"
+ integrity sha512-9pKLcTlZ92hNZMQfGCHImUpDOlAgkkpqalWEeftW5FBya75k8Li2ilerxkM/uBEj01iBZXcCIB/bwvDYgWyibA==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.24.7"
+ "@babel/helper-environment-visitor" "^7.24.7"
+ "@babel/helper-wrap-function" "^7.24.7"
+
+"@babel/helper-replace-supers@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.24.7.tgz#f933b7eed81a1c0265740edc91491ce51250f765"
+ integrity sha512-qTAxxBM81VEyoAY0TtLrx1oAEJc09ZK67Q9ljQToqCnA+55eNwCORaxlKyu+rNfX86o8OXRUSNUnrtsAZXM9sg==
+ dependencies:
+ "@babel/helper-environment-visitor" "^7.24.7"
+ "@babel/helper-member-expression-to-functions" "^7.24.7"
+ "@babel/helper-optimise-call-expression" "^7.24.7"
+
+"@babel/helper-simple-access@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz#bcade8da3aec8ed16b9c4953b74e506b51b5edb3"
+ integrity sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==
+ dependencies:
+ "@babel/traverse" "^7.24.7"
+ "@babel/types" "^7.24.7"
+
+"@babel/helper-skip-transparent-expression-wrappers@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.24.7.tgz#5f8fa83b69ed5c27adc56044f8be2b3ea96669d9"
+ integrity sha512-IO+DLT3LQUElMbpzlatRASEyQtfhSE0+m465v++3jyyXeBTBUjtVZg28/gHeV5mrTJqvEKhKroBGAvhW+qPHiQ==
+ dependencies:
+ "@babel/traverse" "^7.24.7"
+ "@babel/types" "^7.24.7"
+
+"@babel/helper-split-export-declaration@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz#83949436890e07fa3d6873c61a96e3bbf692d856"
+ integrity sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA==
+ dependencies:
+ "@babel/types" "^7.24.7"
+
+"@babel/helper-string-parser@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.7.tgz#4d2d0f14820ede3b9807ea5fc36dfc8cd7da07f2"
+ integrity sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==
+
+"@babel/helper-validator-identifier@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz#75b889cfaf9e35c2aaf42cf0d72c8e91719251db"
+ integrity sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==
+
+"@babel/helper-validator-option@^7.22.15", "@babel/helper-validator-option@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.7.tgz#24c3bb77c7a425d1742eec8fb433b5a1b38e62f6"
+ integrity sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw==
+
+"@babel/helper-wrap-function@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.24.7.tgz#52d893af7e42edca7c6d2c6764549826336aae1f"
+ integrity sha512-N9JIYk3TD+1vq/wn77YnJOqMtfWhNewNE+DJV4puD2X7Ew9J4JvrzrFDfTfyv5EgEXVy9/Wt8QiOErzEmv5Ifw==
+ dependencies:
+ "@babel/helper-function-name" "^7.24.7"
+ "@babel/template" "^7.24.7"
+ "@babel/traverse" "^7.24.7"
+ "@babel/types" "^7.24.7"
+
+"@babel/helpers@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.7.tgz#aa2ccda29f62185acb5d42fb4a3a1b1082107416"
+ integrity sha512-NlmJJtvcw72yRJRcnCmGvSi+3jDEg8qFu3z0AFoymmzLx5ERVWyzd9kVXr7Th9/8yIJi2Zc6av4Tqz3wFs8QWg==
+ dependencies:
+ "@babel/template" "^7.24.7"
+ "@babel/types" "^7.24.7"
+
+"@babel/highlight@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.7.tgz#a05ab1df134b286558aae0ed41e6c5f731bf409d"
+ integrity sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==
+ dependencies:
+ "@babel/helper-validator-identifier" "^7.24.7"
+ chalk "^2.4.2"
+ js-tokens "^4.0.0"
+ picocolors "^1.0.0"
-"@babel/helper-wrap-function@^7.22.20":
- version "7.22.20"
- resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.22.20.tgz#15352b0b9bfb10fc9c76f79f6342c00e3411a569"
- integrity sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw==
- dependencies:
- "@babel/helper-function-name" "^7.22.5"
- "@babel/template" "^7.22.15"
- "@babel/types" "^7.22.19"
+"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.7.tgz#9a5226f92f0c5c8ead550b750f5608e766c8ce85"
+ integrity sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==
-"@babel/helpers@^7.23.5":
- version "7.23.5"
- resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.23.5.tgz#52f522840df8f1a848d06ea6a79b79eefa72401e"
- integrity sha512-oO7us8FzTEsG3U6ag9MfdF1iA/7Z6dz+MtFhifZk8C8o453rGJFFWUP1t+ULM9TUIAzC9uxXEiXjOiVMyd7QPg==
+"@babel/plugin-bugfix-firefox-class-in-computed-class-key@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.24.7.tgz#fd059fd27b184ea2b4c7e646868a9a381bbc3055"
+ integrity sha512-TiT1ss81W80eQsN+722OaeQMY/G4yTb4G9JrqeiDADs3N8lbPMGldWi9x8tyqCW5NLx1Jh2AvkE6r6QvEltMMQ==
dependencies:
- "@babel/template" "^7.22.15"
- "@babel/traverse" "^7.23.5"
- "@babel/types" "^7.23.5"
+ "@babel/helper-environment-visitor" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/highlight@^7.23.4":
- version "7.23.4"
- resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.23.4.tgz#edaadf4d8232e1a961432db785091207ead0621b"
- integrity sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==
+"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.24.7.tgz#468096ca44bbcbe8fcc570574e12eb1950e18107"
+ integrity sha512-unaQgZ/iRu/By6tsjMZzpeBZjChYfLYry6HrEXPoz3KmfF0sVBQ1l8zKMQ4xRGLWVsjuvB8nQfjNP/DcfEOCsg==
dependencies:
- "@babel/helper-validator-identifier" "^7.22.20"
- chalk "^2.4.2"
- js-tokens "^4.0.0"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.22.15", "@babel/parser@^7.22.7", "@babel/parser@^7.23.5":
- version "7.23.5"
- resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.23.5.tgz#37dee97c4752af148e1d38c34b856b2507660563"
- integrity sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ==
-
-"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.22.15":
- version "7.22.15"
- resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.22.15.tgz#02dc8a03f613ed5fdc29fb2f728397c78146c962"
- integrity sha512-FB9iYlz7rURmRJyXRKEnalYPPdn87H5no108cyuQQyMwlpJ2SJtpIUBI27kdTin956pz+LPypkPVPUTlxOmrsg==
+"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.24.7.tgz#e4eabdd5109acc399b38d7999b2ef66fc2022f89"
+ integrity sha512-+izXIbke1T33mY4MSNnrqhPXDz01WYhEf3yF5NbnUtkiNnm+XBZJl3kNfoK6NKmYlz/D07+l2GWVK/QfDkNCuQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7"
+ "@babel/plugin-transform-optional-chaining" "^7.24.7"
-"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.22.15":
- version "7.22.15"
- resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.15.tgz#2aeb91d337d4e1a1e7ce85b76a37f5301781200f"
- integrity sha512-Hyph9LseGvAeeXzikV88bczhsrLrIZqDPxO+sSmAunMPaGrBGhfMWzCPYTtiW9t+HzSE2wtV8e5cc5P6r1xMDQ==
+"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.24.7.tgz#71b21bb0286d5810e63a1538aa901c58e87375ec"
+ integrity sha512-utA4HuR6F4Vvcr+o4DnjL8fCOlgRFGbeeBEGNg3ZTrLFw6VWG5XmUrvcQ0FjIYMU2ST4XcR2Wsp7t9qOAPnxMg==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
- "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5"
- "@babel/plugin-transform-optional-chaining" "^7.22.15"
+ "@babel/helper-environment-visitor" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
"@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2":
version "7.21.0-placeholder-for-preset-env.2"
@@ -472,19 +507,19 @@
dependencies:
"@babel/helper-plugin-utils" "^7.8.3"
-"@babel/plugin-syntax-import-assertions@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.22.5.tgz#07d252e2aa0bc6125567f742cd58619cb14dce98"
- integrity sha512-rdV97N7KqsRzeNGoWUOK6yUsWarLjE5Su/Snk9IYPU9CwkWHs4t+rTGOvffTR8XGkJMTAdLfO0xVnXm8wugIJg==
+"@babel/plugin-syntax-import-assertions@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.24.7.tgz#2a0b406b5871a20a841240586b1300ce2088a778"
+ integrity sha512-Ec3NRUMoi8gskrkBe3fNmEQfxDvY8bgfQpz6jlk/41kX9eUjvpyqWU7PBP/pLAvMaSQjbMNKJmvX57jP+M6bPg==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-syntax-import-attributes@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.5.tgz#ab840248d834410b829f569f5262b9e517555ecb"
- integrity sha512-KwvoWDeNKPETmozyFE0P2rOLqh39EoQHNjqizrI5B8Vt0ZNS7M56s7dAiAqbYfiAYOuIzIh96z3iR2ktgu3tEg==
+"@babel/plugin-syntax-import-attributes@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.24.7.tgz#b4f9ea95a79e6912480c4b626739f86a076624ca"
+ integrity sha512-hbX+lKKeUMGihnK8nvKqmXBInriT3GVjzXKFriV3YC6APGxMbP8RZNFwy91+hocLXq90Mta+HshoB31802bb8A==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
"@babel/plugin-syntax-import-meta@^7.10.4", "@babel/plugin-syntax-import-meta@^7.8.3":
version "7.10.4"
@@ -500,12 +535,12 @@
dependencies:
"@babel/helper-plugin-utils" "^7.8.0"
-"@babel/plugin-syntax-jsx@^7.22.5", "@babel/plugin-syntax-jsx@^7.7.2":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz#a6b68e84fb76e759fc3b93e901876ffabbe1d918"
- integrity sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==
+"@babel/plugin-syntax-jsx@^7.22.5", "@babel/plugin-syntax-jsx@^7.24.7", "@babel/plugin-syntax-jsx@^7.7.2":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz#39a1fa4a7e3d3d7f34e2acc6be585b718d30e02d"
+ integrity sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
"@babel/plugin-syntax-logical-assignment-operators@^7.10.4", "@babel/plugin-syntax-logical-assignment-operators@^7.8.3":
version "7.10.4"
@@ -563,12 +598,12 @@
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-syntax-typescript@^7.22.5", "@babel/plugin-syntax-typescript@^7.7.2":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz#aac8d383b062c5072c647a31ef990c1d0af90272"
- integrity sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ==
+"@babel/plugin-syntax-typescript@^7.24.7", "@babel/plugin-syntax-typescript@^7.7.2":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.7.tgz#58d458271b4d3b6bb27ee6ac9525acbb259bad1c"
+ integrity sha512-c/+fVeJBB0FeKsFvwytYiUD+LBvhHjGSI0g446PRGdSVGZLRNArBUno2PETbAly3tpiNAQR5XaZ+JslxkotsbA==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
"@babel/plugin-syntax-unicode-sets-regex@^7.18.6":
version "7.18.6"
@@ -578,318 +613,317 @@
"@babel/helper-create-regexp-features-plugin" "^7.18.6"
"@babel/helper-plugin-utils" "^7.18.6"
-"@babel/plugin-transform-arrow-functions@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.22.5.tgz#e5ba566d0c58a5b2ba2a8b795450641950b71958"
- integrity sha512-26lTNXoVRdAnsaDXPpvCNUq+OVWEVC6bx7Vvz9rC53F2bagUWW4u4ii2+h8Fejfh7RYqPxn+libeFBBck9muEw==
+"@babel/plugin-transform-arrow-functions@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.24.7.tgz#4f6886c11e423bd69f3ce51dbf42424a5f275514"
+ integrity sha512-Dt9LQs6iEY++gXUwY03DNFat5C2NbO48jj+j/bSAz6b3HgPs39qcPiYt77fDObIcFwj3/C2ICX9YMwGflUoSHQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-async-generator-functions@^7.23.2":
- version "7.23.2"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.2.tgz#054afe290d64c6f576f371ccc321772c8ea87ebb"
- integrity sha512-BBYVGxbDVHfoeXbOwcagAkOQAm9NxoTdMGfTqghu1GrvadSaw6iW3Je6IcL5PNOw8VwjxqBECXy50/iCQSY/lQ==
+"@babel/plugin-transform-async-generator-functions@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.24.7.tgz#7330a5c50e05181ca52351b8fd01642000c96cfd"
+ integrity sha512-o+iF77e3u7ZS4AoAuJvapz9Fm001PuD2V3Lp6OSE4FYQke+cSewYtnek+THqGRWyQloRCyvWL1OkyfNEl9vr/g==
dependencies:
- "@babel/helper-environment-visitor" "^7.22.20"
- "@babel/helper-plugin-utils" "^7.22.5"
- "@babel/helper-remap-async-to-generator" "^7.22.20"
+ "@babel/helper-environment-visitor" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/helper-remap-async-to-generator" "^7.24.7"
"@babel/plugin-syntax-async-generators" "^7.8.4"
-"@babel/plugin-transform-async-to-generator@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.22.5.tgz#c7a85f44e46f8952f6d27fe57c2ed3cc084c3775"
- integrity sha512-b1A8D8ZzE/VhNDoV1MSJTnpKkCG5bJo+19R4o4oy03zM7ws8yEMK755j61Dc3EyvdysbqH5BOOTquJ7ZX9C6vQ==
+"@babel/plugin-transform-async-to-generator@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.24.7.tgz#72a3af6c451d575842a7e9b5a02863414355bdcc"
+ integrity sha512-SQY01PcJfmQ+4Ash7NE+rpbLFbmqA2GPIgqzxfFTL4t1FKRq4zTms/7htKpoCUI9OcFYgzqfmCdH53s6/jn5fA==
dependencies:
- "@babel/helper-module-imports" "^7.22.5"
- "@babel/helper-plugin-utils" "^7.22.5"
- "@babel/helper-remap-async-to-generator" "^7.22.5"
+ "@babel/helper-module-imports" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/helper-remap-async-to-generator" "^7.24.7"
-"@babel/plugin-transform-block-scoped-functions@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.22.5.tgz#27978075bfaeb9fa586d3cb63a3d30c1de580024"
- integrity sha512-tdXZ2UdknEKQWKJP1KMNmuF5Lx3MymtMN/pvA+p/VEkhK8jVcQ1fzSy8KM9qRYhAf2/lV33hoMPKI/xaI9sADA==
+"@babel/plugin-transform-block-scoped-functions@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.24.7.tgz#a4251d98ea0c0f399dafe1a35801eaba455bbf1f"
+ integrity sha512-yO7RAz6EsVQDaBH18IDJcMB1HnrUn2FJ/Jslc/WtPPWcjhpUJXU/rjbwmluzp7v/ZzWcEhTMXELnnsz8djWDwQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-block-scoping@^7.23.0":
- version "7.23.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.0.tgz#8744d02c6c264d82e1a4bc5d2d501fd8aff6f022"
- integrity sha512-cOsrbmIOXmf+5YbL99/S49Y3j46k/T16b9ml8bm9lP6N9US5iQ2yBK7gpui1pg0V/WMcXdkfKbTb7HXq9u+v4g==
+"@babel/plugin-transform-block-scoping@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.24.7.tgz#42063e4deb850c7bd7c55e626bf4e7ab48e6ce02"
+ integrity sha512-Nd5CvgMbWc+oWzBsuaMcbwjJWAcp5qzrbg69SZdHSP7AMY0AbWFqFO0WTFCA1jxhMCwodRwvRec8k0QUbZk7RQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-class-properties@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.5.tgz#97a56e31ad8c9dc06a0b3710ce7803d5a48cca77"
- integrity sha512-nDkQ0NfkOhPTq8YCLiWNxp1+f9fCobEjCb0n8WdbNUBc4IB5V7P1QnX9IjpSoquKrXF5SKojHleVNs2vGeHCHQ==
+"@babel/plugin-transform-class-properties@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.24.7.tgz#256879467b57b0b68c7ddfc5b76584f398cd6834"
+ integrity sha512-vKbfawVYayKcSeSR5YYzzyXvsDFWU2mD8U5TFeXtbCPLFUqe7GyCgvO6XDHzje862ODrOwy6WCPmKeWHbCFJ4w==
dependencies:
- "@babel/helper-create-class-features-plugin" "^7.22.5"
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-create-class-features-plugin" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-class-static-block@^7.22.11":
- version "7.22.11"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.11.tgz#dc8cc6e498f55692ac6b4b89e56d87cec766c974"
- integrity sha512-GMM8gGmqI7guS/llMFk1bJDkKfn3v3C4KHK9Yg1ey5qcHcOlKb0QvcMrgzvxo+T03/4szNh5lghY+fEC98Kq9g==
+"@babel/plugin-transform-class-static-block@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.24.7.tgz#c82027ebb7010bc33c116d4b5044fbbf8c05484d"
+ integrity sha512-HMXK3WbBPpZQufbMG4B46A90PkuuhN9vBCb5T8+VAHqvAqvcLi+2cKoukcpmUYkszLhScU3l1iudhrks3DggRQ==
dependencies:
- "@babel/helper-create-class-features-plugin" "^7.22.11"
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-create-class-features-plugin" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
"@babel/plugin-syntax-class-static-block" "^7.14.5"
-"@babel/plugin-transform-classes@^7.22.15":
- version "7.22.15"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.22.15.tgz#aaf4753aee262a232bbc95451b4bdf9599c65a0b"
- integrity sha512-VbbC3PGjBdE0wAWDdHM9G8Gm977pnYI0XpqMd6LrKISj8/DJXEsWqgRuTYaNE9Bv0JGhTZUzHDlMk18IpOuoqw==
- dependencies:
- "@babel/helper-annotate-as-pure" "^7.22.5"
- "@babel/helper-compilation-targets" "^7.22.15"
- "@babel/helper-environment-visitor" "^7.22.5"
- "@babel/helper-function-name" "^7.22.5"
- "@babel/helper-optimise-call-expression" "^7.22.5"
- "@babel/helper-plugin-utils" "^7.22.5"
- "@babel/helper-replace-supers" "^7.22.9"
- "@babel/helper-split-export-declaration" "^7.22.6"
+"@babel/plugin-transform-classes@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.24.7.tgz#4ae6ef43a12492134138c1e45913f7c46c41b4bf"
+ integrity sha512-CFbbBigp8ln4FU6Bpy6g7sE8B/WmCmzvivzUC6xDAdWVsjYTXijpuuGJmYkAaoWAzcItGKT3IOAbxRItZ5HTjw==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.24.7"
+ "@babel/helper-compilation-targets" "^7.24.7"
+ "@babel/helper-environment-visitor" "^7.24.7"
+ "@babel/helper-function-name" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/helper-replace-supers" "^7.24.7"
+ "@babel/helper-split-export-declaration" "^7.24.7"
globals "^11.1.0"
-"@babel/plugin-transform-computed-properties@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.22.5.tgz#cd1e994bf9f316bd1c2dafcd02063ec261bb3869"
- integrity sha512-4GHWBgRf0krxPX+AaPtgBAlTgTeZmqDynokHOX7aqqAB4tHs3U2Y02zH6ETFdLZGcg9UQSD1WCmkVrE9ErHeOg==
+"@babel/plugin-transform-computed-properties@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.24.7.tgz#4cab3214e80bc71fae3853238d13d097b004c707"
+ integrity sha512-25cS7v+707Gu6Ds2oY6tCkUwsJ9YIDbggd9+cu9jzzDgiNq7hR/8dkzxWfKWnTic26vsI3EsCXNd4iEB6e8esQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
- "@babel/template" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/template" "^7.24.7"
-"@babel/plugin-transform-destructuring@^7.23.0":
- version "7.23.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.23.0.tgz#6447aa686be48b32eaf65a73e0e2c0bd010a266c"
- integrity sha512-vaMdgNXFkYrB+8lbgniSYWHsgqK5gjaMNcc84bMIOMRLH0L9AqYq3hwMdvnyqj1OPqea8UtjPEuS/DCenah1wg==
+"@babel/plugin-transform-destructuring@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.7.tgz#a097f25292defb6e6cc16d6333a4cfc1e3c72d9e"
+ integrity sha512-19eJO/8kdCQ9zISOf+SEUJM/bAUIsvY3YDnXZTupUCQ8LgrWnsG/gFB9dvXqdXnRXMAM8fvt7b0CBKQHNGy1mw==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-dotall-regex@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.22.5.tgz#dbb4f0e45766eb544e193fb00e65a1dd3b2a4165"
- integrity sha512-5/Yk9QxCQCl+sOIB1WelKnVRxTJDSAIxtJLL2/pqL14ZVlbH0fUQUZa/T5/UnQtBNgghR7mfB8ERBKyKPCi7Vw==
+"@babel/plugin-transform-dotall-regex@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.24.7.tgz#5f8bf8a680f2116a7207e16288a5f974ad47a7a0"
+ integrity sha512-ZOA3W+1RRTSWvyqcMJDLqbchh7U4NRGqwRfFSVbOLS/ePIP4vHB5e8T8eXcuqyN1QkgKyj5wuW0lcS85v4CrSw==
dependencies:
- "@babel/helper-create-regexp-features-plugin" "^7.22.5"
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-create-regexp-features-plugin" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-duplicate-keys@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.22.5.tgz#b6e6428d9416f5f0bba19c70d1e6e7e0b88ab285"
- integrity sha512-dEnYD+9BBgld5VBXHnF/DbYGp3fqGMsyxKbtD1mDyIA7AkTSpKXFhCVuj/oQVOoALfBs77DudA0BE4d5mcpmqw==
+"@babel/plugin-transform-duplicate-keys@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.24.7.tgz#dd20102897c9a2324e5adfffb67ff3610359a8ee"
+ integrity sha512-JdYfXyCRihAe46jUIliuL2/s0x0wObgwwiGxw/UbgJBr20gQBThrokO4nYKgWkD7uBaqM7+9x5TU7NkExZJyzw==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-dynamic-import@^7.22.11":
- version "7.22.11"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.11.tgz#2c7722d2a5c01839eaf31518c6ff96d408e447aa"
- integrity sha512-g/21plo58sfteWjaO0ZNVb+uEOkJNjAaHhbejrnBmu011l/eNDScmkbjCC3l4FKb10ViaGU4aOkFznSu2zRHgA==
+"@babel/plugin-transform-dynamic-import@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.24.7.tgz#4d8b95e3bae2b037673091aa09cd33fecd6419f4"
+ integrity sha512-sc3X26PhZQDb3JhORmakcbvkeInvxz+A8oda99lj7J60QRuPZvNAk9wQlTBS1ZynelDrDmTU4pw1tyc5d5ZMUg==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
"@babel/plugin-syntax-dynamic-import" "^7.8.3"
-"@babel/plugin-transform-exponentiation-operator@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.22.5.tgz#402432ad544a1f9a480da865fda26be653e48f6a"
- integrity sha512-vIpJFNM/FjZ4rh1myqIya9jXwrwwgFRHPjT3DkUA9ZLHuzox8jiXkOLvwm1H+PQIP3CqfC++WPKeuDi0Sjdj1g==
+"@babel/plugin-transform-exponentiation-operator@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.24.7.tgz#b629ee22645f412024297d5245bce425c31f9b0d"
+ integrity sha512-Rqe/vSc9OYgDajNIK35u7ot+KeCoetqQYFXM4Epf7M7ez3lWlOjrDjrwMei6caCVhfdw+mIKD4cgdGNy5JQotQ==
dependencies:
- "@babel/helper-builder-binary-assignment-operator-visitor" "^7.22.5"
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-builder-binary-assignment-operator-visitor" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-export-namespace-from@^7.22.11":
- version "7.22.11"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.11.tgz#b3c84c8f19880b6c7440108f8929caf6056db26c"
- integrity sha512-xa7aad7q7OiT8oNZ1mU7NrISjlSkVdMbNxn9IuLZyL9AJEhs1Apba3I+u5riX1dIkdptP5EKDG5XDPByWxtehw==
+"@babel/plugin-transform-export-namespace-from@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.24.7.tgz#176d52d8d8ed516aeae7013ee9556d540c53f197"
+ integrity sha512-v0K9uNYsPL3oXZ/7F9NNIbAj2jv1whUEtyA6aujhekLs56R++JDQuzRcP2/z4WX5Vg/c5lE9uWZA0/iUoFhLTA==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
"@babel/plugin-syntax-export-namespace-from" "^7.8.3"
-"@babel/plugin-transform-for-of@^7.22.15":
- version "7.22.15"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.22.15.tgz#f64b4ccc3a4f131a996388fae7680b472b306b29"
- integrity sha512-me6VGeHsx30+xh9fbDLLPi0J1HzmeIIyenoOQHuw2D4m2SAU3NrspX5XxJLBpqn5yrLzrlw2Iy3RA//Bx27iOA==
+"@babel/plugin-transform-for-of@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.24.7.tgz#f25b33f72df1d8be76399e1b8f3f9d366eb5bc70"
+ integrity sha512-wo9ogrDG1ITTTBsy46oGiN1dS9A7MROBTcYsfS8DtsImMkHk9JXJ3EWQM6X2SUw4x80uGPlwj0o00Uoc6nEE3g==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7"
-"@babel/plugin-transform-function-name@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.22.5.tgz#935189af68b01898e0d6d99658db6b164205c143"
- integrity sha512-UIzQNMS0p0HHiQm3oelztj+ECwFnj+ZRV4KnguvlsD2of1whUeM6o7wGNj6oLwcDoAXQ8gEqfgC24D+VdIcevg==
+"@babel/plugin-transform-function-name@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.24.7.tgz#6d8601fbffe665c894440ab4470bc721dd9131d6"
+ integrity sha512-U9FcnA821YoILngSmYkW6FjyQe2TyZD5pHt4EVIhmcTkrJw/3KqcrRSxuOo5tFZJi7TE19iDyI1u+weTI7bn2w==
dependencies:
- "@babel/helper-compilation-targets" "^7.22.5"
- "@babel/helper-function-name" "^7.22.5"
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-compilation-targets" "^7.24.7"
+ "@babel/helper-function-name" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-json-strings@^7.22.11":
- version "7.22.11"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.11.tgz#689a34e1eed1928a40954e37f74509f48af67835"
- integrity sha512-CxT5tCqpA9/jXFlme9xIBCc5RPtdDq3JpkkhgHQqtDdiTnTI0jtZ0QzXhr5DILeYifDPp2wvY2ad+7+hLMW5Pw==
+"@babel/plugin-transform-json-strings@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.24.7.tgz#f3e9c37c0a373fee86e36880d45b3664cedaf73a"
+ integrity sha512-2yFnBGDvRuxAaE/f0vfBKvtnvvqU8tGpMHqMNpTN2oWMKIR3NqFkjaAgGwawhqK/pIN2T3XdjGPdaG0vDhOBGw==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
"@babel/plugin-syntax-json-strings" "^7.8.3"
-"@babel/plugin-transform-literals@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.22.5.tgz#e9341f4b5a167952576e23db8d435849b1dd7920"
- integrity sha512-fTLj4D79M+mepcw3dgFBTIDYpbcB9Sm0bpm4ppXPaO+U+PKFFyV9MGRvS0gvGw62sd10kT5lRMKXAADb9pWy8g==
+"@babel/plugin-transform-literals@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.24.7.tgz#36b505c1e655151a9d7607799a9988fc5467d06c"
+ integrity sha512-vcwCbb4HDH+hWi8Pqenwnjy+UiklO4Kt1vfspcQYFhJdpthSnW8XvWGyDZWKNVrVbVViI/S7K9PDJZiUmP2fYQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-logical-assignment-operators@^7.22.11":
- version "7.22.11"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.11.tgz#24c522a61688bde045b7d9bc3c2597a4d948fc9c"
- integrity sha512-qQwRTP4+6xFCDV5k7gZBF3C31K34ut0tbEcTKxlX/0KXxm9GLcO14p570aWxFvVzx6QAfPgq7gaeIHXJC8LswQ==
+"@babel/plugin-transform-logical-assignment-operators@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.24.7.tgz#a58fb6eda16c9dc8f9ff1c7b1ba6deb7f4694cb0"
+ integrity sha512-4D2tpwlQ1odXmTEIFWy9ELJcZHqrStlzK/dAOWYyxX3zT0iXQB6banjgeOJQXzEc4S0E0a5A+hahxPaEFYftsw==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
"@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
-"@babel/plugin-transform-member-expression-literals@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.22.5.tgz#4fcc9050eded981a468347dd374539ed3e058def"
- integrity sha512-RZEdkNtzzYCFl9SE9ATaUMTj2hqMb4StarOJLrZRbqqU4HSBE7UlBw9WBWQiDzrJZJdUWiMTVDI6Gv/8DPvfew==
+"@babel/plugin-transform-member-expression-literals@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.24.7.tgz#3b4454fb0e302e18ba4945ba3246acb1248315df"
+ integrity sha512-T/hRC1uqrzXMKLQ6UCwMT85S3EvqaBXDGf0FaMf4446Qx9vKwlghvee0+uuZcDUCZU5RuNi4781UQ7R308zzBw==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-modules-amd@^7.23.0":
- version "7.23.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.23.0.tgz#05b2bc43373faa6d30ca89214731f76f966f3b88"
- integrity sha512-xWT5gefv2HGSm4QHtgc1sYPbseOyf+FFDo2JbpE25GWl5BqTGO9IMwTYJRoIdjsF85GE+VegHxSCUt5EvoYTAw==
+"@babel/plugin-transform-modules-amd@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.24.7.tgz#65090ed493c4a834976a3ca1cde776e6ccff32d7"
+ integrity sha512-9+pB1qxV3vs/8Hdmz/CulFB8w2tuu6EB94JZFsjdqxQokwGa9Unap7Bo2gGBGIvPmDIVvQrom7r5m/TCDMURhg==
dependencies:
- "@babel/helper-module-transforms" "^7.23.0"
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-module-transforms" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-modules-commonjs@^7.23.0":
- version "7.23.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.0.tgz#b3dba4757133b2762c00f4f94590cf6d52602481"
- integrity sha512-32Xzss14/UVc7k9g775yMIvkVK8xwKE0DPdP5JTapr3+Z9w4tzeOuLNY6BXDQR6BdnzIlXnCGAzsk/ICHBLVWQ==
+"@babel/plugin-transform-modules-commonjs@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.7.tgz#9fd5f7fdadee9085886b183f1ad13d1ab260f4ab"
+ integrity sha512-iFI8GDxtevHJ/Z22J5xQpVqFLlMNstcLXh994xifFwxxGslr2ZXXLWgtBeLctOD63UFDArdvN6Tg8RFw+aEmjQ==
dependencies:
- "@babel/helper-module-transforms" "^7.23.0"
- "@babel/helper-plugin-utils" "^7.22.5"
- "@babel/helper-simple-access" "^7.22.5"
+ "@babel/helper-module-transforms" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/helper-simple-access" "^7.24.7"
-"@babel/plugin-transform-modules-systemjs@^7.23.0":
- version "7.23.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.0.tgz#77591e126f3ff4132a40595a6cccd00a6b60d160"
- integrity sha512-qBej6ctXZD2f+DhlOC9yO47yEYgUh5CZNz/aBoH4j/3NOlRfJXJbY7xDQCqQVf9KbrqGzIWER1f23doHGrIHFg==
+"@babel/plugin-transform-modules-systemjs@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.24.7.tgz#f8012316c5098f6e8dee6ecd58e2bc6f003d0ce7"
+ integrity sha512-GYQE0tW7YoaN13qFh3O1NCY4MPkUiAH3fiF7UcV/I3ajmDKEdG3l+UOcbAm4zUE3gnvUU+Eni7XrVKo9eO9auw==
dependencies:
- "@babel/helper-hoist-variables" "^7.22.5"
- "@babel/helper-module-transforms" "^7.23.0"
- "@babel/helper-plugin-utils" "^7.22.5"
- "@babel/helper-validator-identifier" "^7.22.20"
+ "@babel/helper-hoist-variables" "^7.24.7"
+ "@babel/helper-module-transforms" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/helper-validator-identifier" "^7.24.7"
-"@babel/plugin-transform-modules-umd@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.22.5.tgz#4694ae40a87b1745e3775b6a7fe96400315d4f98"
- integrity sha512-+S6kzefN/E1vkSsKx8kmQuqeQsvCKCd1fraCM7zXm4SFoggI099Tr4G8U81+5gtMdUeMQ4ipdQffbKLX0/7dBQ==
+"@babel/plugin-transform-modules-umd@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.24.7.tgz#edd9f43ec549099620df7df24e7ba13b5c76efc8"
+ integrity sha512-3aytQvqJ/h9z4g8AsKPLvD4Zqi2qT+L3j7XoFFu1XBlZWEl2/1kWnhmAbxpLgPrHSY0M6UA02jyTiwUVtiKR6A==
dependencies:
- "@babel/helper-module-transforms" "^7.22.5"
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-module-transforms" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-named-capturing-groups-regex@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.5.tgz#67fe18ee8ce02d57c855185e27e3dc959b2e991f"
- integrity sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==
+"@babel/plugin-transform-named-capturing-groups-regex@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.24.7.tgz#9042e9b856bc6b3688c0c2e4060e9e10b1460923"
+ integrity sha512-/jr7h/EWeJtk1U/uz2jlsCioHkZk1JJZVcc8oQsJ1dUlaJD83f4/6Zeh2aHt9BIFokHIsSeDfhUmju0+1GPd6g==
dependencies:
- "@babel/helper-create-regexp-features-plugin" "^7.22.5"
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-create-regexp-features-plugin" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-new-target@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.5.tgz#1b248acea54ce44ea06dfd37247ba089fcf9758d"
- integrity sha512-AsF7K0Fx/cNKVyk3a+DW0JLo+Ua598/NxMRvxDnkpCIGFh43+h/v2xyhRUYf6oD8gE4QtL83C7zZVghMjHd+iw==
+"@babel/plugin-transform-new-target@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.24.7.tgz#31ff54c4e0555cc549d5816e4ab39241dfb6ab00"
+ integrity sha512-RNKwfRIXg4Ls/8mMTza5oPF5RkOW8Wy/WgMAp1/F1yZ8mMbtwXW+HDoJiOsagWrAhI5f57Vncrmr9XeT4CVapA==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-nullish-coalescing-operator@^7.22.11":
- version "7.22.11"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.11.tgz#debef6c8ba795f5ac67cd861a81b744c5d38d9fc"
- integrity sha512-YZWOw4HxXrotb5xsjMJUDlLgcDXSfO9eCmdl1bgW4+/lAGdkjaEvOnQ4p5WKKdUgSzO39dgPl0pTnfxm0OAXcg==
+"@babel/plugin-transform-nullish-coalescing-operator@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.24.7.tgz#1de4534c590af9596f53d67f52a92f12db984120"
+ integrity sha512-Ts7xQVk1OEocqzm8rHMXHlxvsfZ0cEF2yomUqpKENHWMF4zKk175Y4q8H5knJes6PgYad50uuRmt3UJuhBw8pQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
-"@babel/plugin-transform-numeric-separator@^7.22.11":
- version "7.22.11"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.11.tgz#498d77dc45a6c6db74bb829c02a01c1d719cbfbd"
- integrity sha512-3dzU4QGPsILdJbASKhF/V2TVP+gJya1PsueQCxIPCEcerqF21oEcrob4mzjsp2Py/1nLfF5m+xYNMDpmA8vffg==
+"@babel/plugin-transform-numeric-separator@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.24.7.tgz#bea62b538c80605d8a0fac9b40f48e97efa7de63"
+ integrity sha512-e6q1TiVUzvH9KRvicuxdBTUj4AdKSRwzIyFFnfnezpCfP2/7Qmbb8qbU2j7GODbl4JMkblitCQjKYUaX/qkkwA==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
"@babel/plugin-syntax-numeric-separator" "^7.10.4"
-"@babel/plugin-transform-object-rest-spread@^7.22.15":
- version "7.22.15"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.15.tgz#21a95db166be59b91cde48775310c0df6e1da56f"
- integrity sha512-fEB+I1+gAmfAyxZcX1+ZUwLeAuuf8VIg67CTznZE0MqVFumWkh8xWtn58I4dxdVf080wn7gzWoF8vndOViJe9Q==
+"@babel/plugin-transform-object-rest-spread@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.24.7.tgz#d13a2b93435aeb8a197e115221cab266ba6e55d6"
+ integrity sha512-4QrHAr0aXQCEFni2q4DqKLD31n2DL+RxcwnNjDFkSG0eNQ/xCavnRkfCUjsyqGC2OviNJvZOF/mQqZBw7i2C5Q==
dependencies:
- "@babel/compat-data" "^7.22.9"
- "@babel/helper-compilation-targets" "^7.22.15"
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-compilation-targets" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
"@babel/plugin-syntax-object-rest-spread" "^7.8.3"
- "@babel/plugin-transform-parameters" "^7.22.15"
+ "@babel/plugin-transform-parameters" "^7.24.7"
-"@babel/plugin-transform-object-super@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.22.5.tgz#794a8d2fcb5d0835af722173c1a9d704f44e218c"
- integrity sha512-klXqyaT9trSjIUrcsYIfETAzmOEZL3cBYqOYLJxBHfMFFggmXOv+NYSX/Jbs9mzMVESw/WycLFPRx8ba/b2Ipw==
+"@babel/plugin-transform-object-super@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.24.7.tgz#66eeaff7830bba945dd8989b632a40c04ed625be"
+ integrity sha512-A/vVLwN6lBrMFmMDmPPz0jnE6ZGx7Jq7d6sT/Ev4H65RER6pZ+kczlf1DthF5N0qaPHBsI7UXiE8Zy66nmAovg==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
- "@babel/helper-replace-supers" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/helper-replace-supers" "^7.24.7"
-"@babel/plugin-transform-optional-catch-binding@^7.22.11":
- version "7.22.11"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.11.tgz#461cc4f578a127bb055527b3e77404cad38c08e0"
- integrity sha512-rli0WxesXUeCJnMYhzAglEjLWVDF6ahb45HuprcmQuLidBJFWjNnOzssk2kuc6e33FlLaiZhG/kUIzUMWdBKaQ==
+"@babel/plugin-transform-optional-catch-binding@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.24.7.tgz#00eabd883d0dd6a60c1c557548785919b6e717b4"
+ integrity sha512-uLEndKqP5BfBbC/5jTwPxLh9kqPWWgzN/f8w6UwAIirAEqiIVJWWY312X72Eub09g5KF9+Zn7+hT7sDxmhRuKA==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
"@babel/plugin-syntax-optional-catch-binding" "^7.8.3"
-"@babel/plugin-transform-optional-chaining@^7.22.15", "@babel/plugin-transform-optional-chaining@^7.23.0":
- version "7.23.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.23.0.tgz#73ff5fc1cf98f542f09f29c0631647d8ad0be158"
- integrity sha512-sBBGXbLJjxTzLBF5rFWaikMnOGOk/BmK6vVByIdEggZ7Vn6CvWXZyRkkLFK6WE0IF8jSliyOkUN6SScFgzCM0g==
+"@babel/plugin-transform-optional-chaining@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.24.7.tgz#b8f6848a80cf2da98a8a204429bec04756c6d454"
+ integrity sha512-tK+0N9yd4j+x/4hxF3F0e0fu/VdcxU18y5SevtyM/PCFlQvXbR0Zmlo2eBrKtVipGNFzpq56o8WsIIKcJFUCRQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
- "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7"
"@babel/plugin-syntax-optional-chaining" "^7.8.3"
-"@babel/plugin-transform-parameters@^7.22.15":
- version "7.22.15"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.15.tgz#719ca82a01d177af358df64a514d64c2e3edb114"
- integrity sha512-hjk7qKIqhyzhhUvRT683TYQOFa/4cQKwQy7ALvTpODswN40MljzNDa0YldevS6tGbxwaEKVn502JmY0dP7qEtQ==
+"@babel/plugin-transform-parameters@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.24.7.tgz#5881f0ae21018400e320fc7eb817e529d1254b68"
+ integrity sha512-yGWW5Rr+sQOhK0Ot8hjDJuxU3XLRQGflvT4lhlSY0DFvdb3TwKaY26CJzHtYllU0vT9j58hc37ndFPsqT1SrzA==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-private-methods@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.5.tgz#21c8af791f76674420a147ae62e9935d790f8722"
- integrity sha512-PPjh4gyrQnGe97JTalgRGMuU4icsZFnWkzicB/fUtzlKUqvsWBKEpPPfr5a2JiyirZkHxnAqkQMO5Z5B2kK3fA==
+"@babel/plugin-transform-private-methods@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.24.7.tgz#e6318746b2ae70a59d023d5cc1344a2ba7a75f5e"
+ integrity sha512-COTCOkG2hn4JKGEKBADkA8WNb35TGkkRbI5iT845dB+NyqgO8Hn+ajPbSnIQznneJTa3d30scb6iz/DhH8GsJQ==
dependencies:
- "@babel/helper-create-class-features-plugin" "^7.22.5"
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-create-class-features-plugin" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-private-property-in-object@^7.22.11":
- version "7.22.11"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.11.tgz#ad45c4fc440e9cb84c718ed0906d96cf40f9a4e1"
- integrity sha512-sSCbqZDBKHetvjSwpyWzhuHkmW5RummxJBVbYLkGkaiTOWGxml7SXt0iWa03bzxFIx7wOj3g/ILRd0RcJKBeSQ==
+"@babel/plugin-transform-private-property-in-object@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.24.7.tgz#4eec6bc701288c1fab5f72e6a4bbc9d67faca061"
+ integrity sha512-9z76mxwnwFxMyxZWEgdgECQglF2Q7cFLm0kMf8pGwt+GSJsY0cONKj/UuO4bOH0w/uAel3ekS4ra5CEAyJRmDA==
dependencies:
- "@babel/helper-annotate-as-pure" "^7.22.5"
- "@babel/helper-create-class-features-plugin" "^7.22.11"
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-annotate-as-pure" "^7.24.7"
+ "@babel/helper-create-class-features-plugin" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
"@babel/plugin-syntax-private-property-in-object" "^7.14.5"
-"@babel/plugin-transform-property-literals@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.22.5.tgz#b5ddabd73a4f7f26cd0e20f5db48290b88732766"
- integrity sha512-TiOArgddK3mK/x1Qwf5hay2pxI6wCZnvQqrFSqbtg1GLl2JcNMitVH/YnqjP+M31pLUeTfzY1HAXFDnUBV30rQ==
+"@babel/plugin-transform-property-literals@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.24.7.tgz#f0d2ed8380dfbed949c42d4d790266525d63bbdc"
+ integrity sha512-EMi4MLQSHfd2nrCqQEWxFdha2gBCqU4ZcCng4WBGZ5CJL4bBRW0ptdqqDdeirGZcpALazVVNJqRmsO8/+oNCBA==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-react-constant-elements@^7.18.12":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.22.5.tgz#6dfa7c1c37f7d7279e417ceddf5a04abb8bb9c29"
- integrity sha512-BF5SXoO+nX3h5OhlN78XbbDrBOffv+AxPP2ENaJOVqjWCgBDeOY3WcaUcddutGSfoap+5NEQ/q/4I3WZIvgkXA==
+"@babel/plugin-transform-react-constant-elements@^7.21.3":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.24.7.tgz#b85e8f240b14400277f106c9c9b585d9acf608a1"
+ integrity sha512-7LidzZfUXyfZ8/buRW6qIIHBY8wAZ1OrY9c/wTr8YhZ6vMPo+Uc/CVFLYY1spZrEQlD4w5u8wjqk5NQ3OVqQKA==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
"@babel/plugin-transform-react-display-name@^7.22.5":
version "7.22.5"
@@ -924,20 +958,20 @@
"@babel/helper-annotate-as-pure" "^7.22.5"
"@babel/helper-plugin-utils" "^7.22.5"
-"@babel/plugin-transform-regenerator@^7.22.10":
- version "7.22.10"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.22.10.tgz#8ceef3bd7375c4db7652878b0241b2be5d0c3cca"
- integrity sha512-F28b1mDt8KcT5bUyJc/U9nwzw6cV+UmTeRlXYIl2TNqMMJif0Jeey9/RQ3C4NOd2zp0/TRsDns9ttj2L523rsw==
+"@babel/plugin-transform-regenerator@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.24.7.tgz#021562de4534d8b4b1851759fd7af4e05d2c47f8"
+ integrity sha512-lq3fvXPdimDrlg6LWBoqj+r/DEWgONuwjuOuQCSYgRroXDH/IdM1C0IZf59fL5cHLpjEH/O6opIRBbqv7ELnuA==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
regenerator-transform "^0.15.2"
-"@babel/plugin-transform-reserved-words@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.22.5.tgz#832cd35b81c287c4bcd09ce03e22199641f964fb"
- integrity sha512-DTtGKFRQUDm8svigJzZHzb/2xatPc6TzNvAIJ5GqOKDsGFYgAskjRulbR/vGsPKq3OPqtexnz327qYpP57RFyA==
+"@babel/plugin-transform-reserved-words@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.24.7.tgz#80037fe4fbf031fc1125022178ff3938bb3743a4"
+ integrity sha512-0DUq0pHcPKbjFZCfTss/pGkYMfy3vFWydkUBd9r0GHpIyfs2eCDENvqadMycRS9wZCXR41wucAfJHJmwA0UmoQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
"@babel/plugin-transform-runtime@^7.22.9":
version "7.23.2"
@@ -951,102 +985,104 @@
babel-plugin-polyfill-regenerator "^0.5.3"
semver "^6.3.1"
-"@babel/plugin-transform-shorthand-properties@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.22.5.tgz#6e277654be82b5559fc4b9f58088507c24f0c624"
- integrity sha512-vM4fq9IXHscXVKzDv5itkO1X52SmdFBFcMIBZ2FRn2nqVYqw6dBexUgMvAjHW+KXpPPViD/Yo3GrDEBaRC0QYA==
+"@babel/plugin-transform-shorthand-properties@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.24.7.tgz#85448c6b996e122fa9e289746140aaa99da64e73"
+ integrity sha512-KsDsevZMDsigzbA09+vacnLpmPH4aWjcZjXdyFKGzpplxhbeB4wYtury3vglQkg6KM/xEPKt73eCjPPf1PgXBA==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-spread@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.22.5.tgz#6487fd29f229c95e284ba6c98d65eafb893fea6b"
- integrity sha512-5ZzDQIGyvN4w8+dMmpohL6MBo+l2G7tfC/O2Dg7/hjpgeWvUx8FzfeOKxGog9IimPa4YekaQ9PlDqTLOljkcxg==
+"@babel/plugin-transform-spread@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.24.7.tgz#e8a38c0fde7882e0fb8f160378f74bd885cc7bb3"
+ integrity sha512-x96oO0I09dgMDxJaANcRyD4ellXFLLiWhuwDxKZX5g2rWP1bTPkBSwCYv96VDXVT1bD9aPj8tppr5ITIh8hBng==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
- "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7"
-"@babel/plugin-transform-sticky-regex@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.22.5.tgz#295aba1595bfc8197abd02eae5fc288c0deb26aa"
- integrity sha512-zf7LuNpHG0iEeiyCNwX4j3gDg1jgt1k3ZdXBKbZSoA3BbGQGvMiSvfbZRR3Dr3aeJe3ooWFZxOOG3IRStYp2Bw==
+"@babel/plugin-transform-sticky-regex@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.24.7.tgz#96ae80d7a7e5251f657b5cf18f1ea6bf926f5feb"
+ integrity sha512-kHPSIJc9v24zEml5geKg9Mjx5ULpfncj0wRpYtxbvKyTtHCYDkVE3aHQ03FrpEo4gEe2vrJJS1Y9CJTaThA52g==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-template-literals@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.22.5.tgz#8f38cf291e5f7a8e60e9f733193f0bcc10909bff"
- integrity sha512-5ciOehRNf+EyUeewo8NkbQiUs4d6ZxiHo6BcBcnFlgiJfu16q0bQUw9Jvo0b0gBKFG1SMhDSjeKXSYuJLeFSMA==
+"@babel/plugin-transform-template-literals@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.24.7.tgz#a05debb4a9072ae8f985bcf77f3f215434c8f8c8"
+ integrity sha512-AfDTQmClklHCOLxtGoP7HkeMw56k1/bTQjwsfhL6pppo/M4TOBSq+jjBUBLmV/4oeFg4GWMavIl44ZeCtmmZTw==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-typeof-symbol@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.22.5.tgz#5e2ba478da4b603af8673ff7c54f75a97b716b34"
- integrity sha512-bYkI5lMzL4kPii4HHEEChkD0rkc+nvnlR6+o/qdqR6zrm0Sv/nodmyLhlq2DO0YKLUNd2VePmPRjJXSBh9OIdA==
+"@babel/plugin-transform-typeof-symbol@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.24.7.tgz#f074be466580d47d6e6b27473a840c9f9ca08fb0"
+ integrity sha512-VtR8hDy7YLB7+Pet9IarXjg/zgCMSF+1mNS/EQEiEaUPoFXCVsHG64SIxcaaI2zJgRiv+YmgaQESUfWAdbjzgg==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-typescript@^7.22.15":
- version "7.22.15"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.22.15.tgz#15adef906451d86349eb4b8764865c960eb54127"
- integrity sha512-1uirS0TnijxvQLnlv5wQBwOX3E1wCFX7ITv+9pBV2wKEk4K+M5tqDaoNXnTH8tjEIYHLO98MwiTWO04Ggz4XuA==
+"@babel/plugin-transform-typescript@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.24.7.tgz#b006b3e0094bf0813d505e0c5485679eeaf4a881"
+ integrity sha512-iLD3UNkgx2n/HrjBesVbYX6j0yqn/sJktvbtKKgcaLIQ4bTTQ8obAypc1VpyHPD2y4Phh9zHOaAt8e/L14wCpw==
dependencies:
- "@babel/helper-annotate-as-pure" "^7.22.5"
- "@babel/helper-create-class-features-plugin" "^7.22.15"
- "@babel/helper-plugin-utils" "^7.22.5"
- "@babel/plugin-syntax-typescript" "^7.22.5"
+ "@babel/helper-annotate-as-pure" "^7.24.7"
+ "@babel/helper-create-class-features-plugin" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/plugin-syntax-typescript" "^7.24.7"
-"@babel/plugin-transform-unicode-escapes@^7.22.10":
- version "7.22.10"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.22.10.tgz#c723f380f40a2b2f57a62df24c9005834c8616d9"
- integrity sha512-lRfaRKGZCBqDlRU3UIFovdp9c9mEvlylmpod0/OatICsSfuQ9YFthRo1tpTkGsklEefZdqlEFdY4A2dwTb6ohg==
+"@babel/plugin-transform-unicode-escapes@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.24.7.tgz#2023a82ced1fb4971630a2e079764502c4148e0e"
+ integrity sha512-U3ap1gm5+4edc2Q/P+9VrBNhGkfnf+8ZqppY71Bo/pzZmXhhLdqgaUl6cuB07O1+AQJtCLfaOmswiNbSQ9ivhw==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-unicode-property-regex@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.5.tgz#098898f74d5c1e86660dc112057b2d11227f1c81"
- integrity sha512-HCCIb+CbJIAE6sXn5CjFQXMwkCClcOfPCzTlilJ8cUatfzwHlWQkbtV0zD338u9dZskwvuOYTuuaMaA8J5EI5A==
+"@babel/plugin-transform-unicode-property-regex@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.24.7.tgz#9073a4cd13b86ea71c3264659590ac086605bbcd"
+ integrity sha512-uH2O4OV5M9FZYQrwc7NdVmMxQJOCCzFeYudlZSzUAHRFeOujQefa92E74TQDVskNHCzOXoigEuoyzHDhaEaK5w==
dependencies:
- "@babel/helper-create-regexp-features-plugin" "^7.22.5"
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-create-regexp-features-plugin" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-unicode-regex@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.22.5.tgz#ce7e7bb3ef208c4ff67e02a22816656256d7a183"
- integrity sha512-028laaOKptN5vHJf9/Arr/HiJekMd41hOEZYvNsrsXqJ7YPYuX2bQxh31fkZzGmq3YqHRJzYFFAVYvKfMPKqyg==
+"@babel/plugin-transform-unicode-regex@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.24.7.tgz#dfc3d4a51127108099b19817c0963be6a2adf19f"
+ integrity sha512-hlQ96MBZSAXUq7ltkjtu3FJCCSMx/j629ns3hA3pXnBXjanNP0LHi+JpPeA81zaWgVK1VGH95Xuy7u0RyQ8kMg==
dependencies:
- "@babel/helper-create-regexp-features-plugin" "^7.22.5"
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-create-regexp-features-plugin" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/plugin-transform-unicode-sets-regex@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.5.tgz#77788060e511b708ffc7d42fdfbc5b37c3004e91"
- integrity sha512-lhMfi4FC15j13eKrh3DnYHjpGj6UKQHtNKTbtc1igvAhRy4+kLhV07OpLcsN0VgDEw/MjAvJO4BdMJsHwMhzCg==
+"@babel/plugin-transform-unicode-sets-regex@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.24.7.tgz#d40705d67523803a576e29c63cef6e516b858ed9"
+ integrity sha512-2G8aAvF4wy1w/AGZkemprdGMRg5o6zPNhbHVImRz3lss55TYCBd6xStN19rt8XJHq20sqV0JbyWjOWwQRwV/wg==
dependencies:
- "@babel/helper-create-regexp-features-plugin" "^7.22.5"
- "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-create-regexp-features-plugin" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
-"@babel/preset-env@^7.19.4", "@babel/preset-env@^7.22.9", "@babel/preset-env@^7.23.0":
- version "7.23.2"
- resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.23.2.tgz#1f22be0ff0e121113260337dbc3e58fafce8d059"
- integrity sha512-BW3gsuDD+rvHL2VO2SjAUNTBe5YrjsTiDyqamPDWY723na3/yPQ65X5oQkFVJZ0o50/2d+svm1rkPoJeR1KxVQ==
+"@babel/preset-env@^7.20.2", "@babel/preset-env@^7.22.9", "@babel/preset-env@^7.23.0":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.24.7.tgz#ff067b4e30ba4a72f225f12f123173e77b987f37"
+ integrity sha512-1YZNsc+y6cTvWlDHidMBsQZrZfEFjRIo/BZCT906PMdzOyXtSLTgqGdrpcuTDCXyd11Am5uQULtDIcCfnTc8fQ==
dependencies:
- "@babel/compat-data" "^7.23.2"
- "@babel/helper-compilation-targets" "^7.22.15"
- "@babel/helper-plugin-utils" "^7.22.5"
- "@babel/helper-validator-option" "^7.22.15"
- "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.22.15"
- "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.22.15"
+ "@babel/compat-data" "^7.24.7"
+ "@babel/helper-compilation-targets" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/helper-validator-option" "^7.24.7"
+ "@babel/plugin-bugfix-firefox-class-in-computed-class-key" "^7.24.7"
+ "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.24.7"
+ "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.24.7"
+ "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly" "^7.24.7"
"@babel/plugin-proposal-private-property-in-object" "7.21.0-placeholder-for-preset-env.2"
"@babel/plugin-syntax-async-generators" "^7.8.4"
"@babel/plugin-syntax-class-properties" "^7.12.13"
"@babel/plugin-syntax-class-static-block" "^7.14.5"
"@babel/plugin-syntax-dynamic-import" "^7.8.3"
"@babel/plugin-syntax-export-namespace-from" "^7.8.3"
- "@babel/plugin-syntax-import-assertions" "^7.22.5"
- "@babel/plugin-syntax-import-attributes" "^7.22.5"
+ "@babel/plugin-syntax-import-assertions" "^7.24.7"
+ "@babel/plugin-syntax-import-attributes" "^7.24.7"
"@babel/plugin-syntax-import-meta" "^7.10.4"
"@babel/plugin-syntax-json-strings" "^7.8.3"
"@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
@@ -1058,59 +1094,58 @@
"@babel/plugin-syntax-private-property-in-object" "^7.14.5"
"@babel/plugin-syntax-top-level-await" "^7.14.5"
"@babel/plugin-syntax-unicode-sets-regex" "^7.18.6"
- "@babel/plugin-transform-arrow-functions" "^7.22.5"
- "@babel/plugin-transform-async-generator-functions" "^7.23.2"
- "@babel/plugin-transform-async-to-generator" "^7.22.5"
- "@babel/plugin-transform-block-scoped-functions" "^7.22.5"
- "@babel/plugin-transform-block-scoping" "^7.23.0"
- "@babel/plugin-transform-class-properties" "^7.22.5"
- "@babel/plugin-transform-class-static-block" "^7.22.11"
- "@babel/plugin-transform-classes" "^7.22.15"
- "@babel/plugin-transform-computed-properties" "^7.22.5"
- "@babel/plugin-transform-destructuring" "^7.23.0"
- "@babel/plugin-transform-dotall-regex" "^7.22.5"
- "@babel/plugin-transform-duplicate-keys" "^7.22.5"
- "@babel/plugin-transform-dynamic-import" "^7.22.11"
- "@babel/plugin-transform-exponentiation-operator" "^7.22.5"
- "@babel/plugin-transform-export-namespace-from" "^7.22.11"
- "@babel/plugin-transform-for-of" "^7.22.15"
- "@babel/plugin-transform-function-name" "^7.22.5"
- "@babel/plugin-transform-json-strings" "^7.22.11"
- "@babel/plugin-transform-literals" "^7.22.5"
- "@babel/plugin-transform-logical-assignment-operators" "^7.22.11"
- "@babel/plugin-transform-member-expression-literals" "^7.22.5"
- "@babel/plugin-transform-modules-amd" "^7.23.0"
- "@babel/plugin-transform-modules-commonjs" "^7.23.0"
- "@babel/plugin-transform-modules-systemjs" "^7.23.0"
- "@babel/plugin-transform-modules-umd" "^7.22.5"
- "@babel/plugin-transform-named-capturing-groups-regex" "^7.22.5"
- "@babel/plugin-transform-new-target" "^7.22.5"
- "@babel/plugin-transform-nullish-coalescing-operator" "^7.22.11"
- "@babel/plugin-transform-numeric-separator" "^7.22.11"
- "@babel/plugin-transform-object-rest-spread" "^7.22.15"
- "@babel/plugin-transform-object-super" "^7.22.5"
- "@babel/plugin-transform-optional-catch-binding" "^7.22.11"
- "@babel/plugin-transform-optional-chaining" "^7.23.0"
- "@babel/plugin-transform-parameters" "^7.22.15"
- "@babel/plugin-transform-private-methods" "^7.22.5"
- "@babel/plugin-transform-private-property-in-object" "^7.22.11"
- "@babel/plugin-transform-property-literals" "^7.22.5"
- "@babel/plugin-transform-regenerator" "^7.22.10"
- "@babel/plugin-transform-reserved-words" "^7.22.5"
- "@babel/plugin-transform-shorthand-properties" "^7.22.5"
- "@babel/plugin-transform-spread" "^7.22.5"
- "@babel/plugin-transform-sticky-regex" "^7.22.5"
- "@babel/plugin-transform-template-literals" "^7.22.5"
- "@babel/plugin-transform-typeof-symbol" "^7.22.5"
- "@babel/plugin-transform-unicode-escapes" "^7.22.10"
- "@babel/plugin-transform-unicode-property-regex" "^7.22.5"
- "@babel/plugin-transform-unicode-regex" "^7.22.5"
- "@babel/plugin-transform-unicode-sets-regex" "^7.22.5"
+ "@babel/plugin-transform-arrow-functions" "^7.24.7"
+ "@babel/plugin-transform-async-generator-functions" "^7.24.7"
+ "@babel/plugin-transform-async-to-generator" "^7.24.7"
+ "@babel/plugin-transform-block-scoped-functions" "^7.24.7"
+ "@babel/plugin-transform-block-scoping" "^7.24.7"
+ "@babel/plugin-transform-class-properties" "^7.24.7"
+ "@babel/plugin-transform-class-static-block" "^7.24.7"
+ "@babel/plugin-transform-classes" "^7.24.7"
+ "@babel/plugin-transform-computed-properties" "^7.24.7"
+ "@babel/plugin-transform-destructuring" "^7.24.7"
+ "@babel/plugin-transform-dotall-regex" "^7.24.7"
+ "@babel/plugin-transform-duplicate-keys" "^7.24.7"
+ "@babel/plugin-transform-dynamic-import" "^7.24.7"
+ "@babel/plugin-transform-exponentiation-operator" "^7.24.7"
+ "@babel/plugin-transform-export-namespace-from" "^7.24.7"
+ "@babel/plugin-transform-for-of" "^7.24.7"
+ "@babel/plugin-transform-function-name" "^7.24.7"
+ "@babel/plugin-transform-json-strings" "^7.24.7"
+ "@babel/plugin-transform-literals" "^7.24.7"
+ "@babel/plugin-transform-logical-assignment-operators" "^7.24.7"
+ "@babel/plugin-transform-member-expression-literals" "^7.24.7"
+ "@babel/plugin-transform-modules-amd" "^7.24.7"
+ "@babel/plugin-transform-modules-commonjs" "^7.24.7"
+ "@babel/plugin-transform-modules-systemjs" "^7.24.7"
+ "@babel/plugin-transform-modules-umd" "^7.24.7"
+ "@babel/plugin-transform-named-capturing-groups-regex" "^7.24.7"
+ "@babel/plugin-transform-new-target" "^7.24.7"
+ "@babel/plugin-transform-nullish-coalescing-operator" "^7.24.7"
+ "@babel/plugin-transform-numeric-separator" "^7.24.7"
+ "@babel/plugin-transform-object-rest-spread" "^7.24.7"
+ "@babel/plugin-transform-object-super" "^7.24.7"
+ "@babel/plugin-transform-optional-catch-binding" "^7.24.7"
+ "@babel/plugin-transform-optional-chaining" "^7.24.7"
+ "@babel/plugin-transform-parameters" "^7.24.7"
+ "@babel/plugin-transform-private-methods" "^7.24.7"
+ "@babel/plugin-transform-private-property-in-object" "^7.24.7"
+ "@babel/plugin-transform-property-literals" "^7.24.7"
+ "@babel/plugin-transform-regenerator" "^7.24.7"
+ "@babel/plugin-transform-reserved-words" "^7.24.7"
+ "@babel/plugin-transform-shorthand-properties" "^7.24.7"
+ "@babel/plugin-transform-spread" "^7.24.7"
+ "@babel/plugin-transform-sticky-regex" "^7.24.7"
+ "@babel/plugin-transform-template-literals" "^7.24.7"
+ "@babel/plugin-transform-typeof-symbol" "^7.24.7"
+ "@babel/plugin-transform-unicode-escapes" "^7.24.7"
+ "@babel/plugin-transform-unicode-property-regex" "^7.24.7"
+ "@babel/plugin-transform-unicode-regex" "^7.24.7"
+ "@babel/plugin-transform-unicode-sets-regex" "^7.24.7"
"@babel/preset-modules" "0.1.6-no-external-plugins"
- "@babel/types" "^7.23.0"
- babel-plugin-polyfill-corejs2 "^0.4.6"
- babel-plugin-polyfill-corejs3 "^0.8.5"
- babel-plugin-polyfill-regenerator "^0.5.3"
+ babel-plugin-polyfill-corejs2 "^0.4.10"
+ babel-plugin-polyfill-corejs3 "^0.10.4"
+ babel-plugin-polyfill-regenerator "^0.6.1"
core-js-compat "^3.31.0"
semver "^6.3.1"
@@ -1135,16 +1170,16 @@
"@babel/plugin-transform-react-jsx-development" "^7.22.5"
"@babel/plugin-transform-react-pure-annotations" "^7.22.5"
-"@babel/preset-typescript@^7.18.6", "@babel/preset-typescript@^7.22.5", "@babel/preset-typescript@^7.23.0":
- version "7.23.2"
- resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.23.2.tgz#c8de488130b7081f7e1482936ad3de5b018beef4"
- integrity sha512-u4UJc1XsS1GhIGteM8rnGiIvf9rJpiVgMEeCnwlLA7WJPC+jcXWJAGxYmeqs5hOZD8BbAfnV5ezBOxQbb4OUxA==
+"@babel/preset-typescript@^7.21.0", "@babel/preset-typescript@^7.22.5", "@babel/preset-typescript@^7.23.0":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.24.7.tgz#66cd86ea8f8c014855671d5ea9a737139cbbfef1"
+ integrity sha512-SyXRe3OdWwIwalxDg5UtJnJQO+YPcTfwiIY2B0Xlddh9o7jpWLvv8X1RthIeDOxQ+O1ML5BLPCONToObyVQVuQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.22.5"
- "@babel/helper-validator-option" "^7.22.15"
- "@babel/plugin-syntax-jsx" "^7.22.5"
- "@babel/plugin-transform-modules-commonjs" "^7.23.0"
- "@babel/plugin-transform-typescript" "^7.22.15"
+ "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/helper-validator-option" "^7.24.7"
+ "@babel/plugin-syntax-jsx" "^7.24.7"
+ "@babel/plugin-transform-modules-commonjs" "^7.24.7"
+ "@babel/plugin-transform-typescript" "^7.24.7"
"@babel/regjsgen@^0.8.0":
version "0.8.0"
@@ -1166,38 +1201,38 @@
dependencies:
regenerator-runtime "^0.14.0"
-"@babel/template@^7.22.15", "@babel/template@^7.22.5", "@babel/template@^7.3.3":
- version "7.22.15"
- resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.22.15.tgz#09576efc3830f0430f4548ef971dde1350ef2f38"
- integrity sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==
- dependencies:
- "@babel/code-frame" "^7.22.13"
- "@babel/parser" "^7.22.15"
- "@babel/types" "^7.22.15"
-
-"@babel/traverse@^7.22.8", "@babel/traverse@^7.23.5", "@babel/traverse@^7.7.2":
- version "7.23.5"
- resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.23.5.tgz#f546bf9aba9ef2b042c0e00d245990c15508e7ec"
- integrity sha512-czx7Xy5a6sapWWRx61m1Ke1Ra4vczu1mCTtJam5zRTBOonfdJ+S/B6HYmGYu3fJtr8GGET3si6IhgWVBhJ/m8w==
- dependencies:
- "@babel/code-frame" "^7.23.5"
- "@babel/generator" "^7.23.5"
- "@babel/helper-environment-visitor" "^7.22.20"
- "@babel/helper-function-name" "^7.23.0"
- "@babel/helper-hoist-variables" "^7.22.5"
- "@babel/helper-split-export-declaration" "^7.22.6"
- "@babel/parser" "^7.23.5"
- "@babel/types" "^7.23.5"
- debug "^4.1.0"
+"@babel/template@^7.24.7", "@babel/template@^7.3.3":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.24.7.tgz#02efcee317d0609d2c07117cb70ef8fb17ab7315"
+ integrity sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig==
+ dependencies:
+ "@babel/code-frame" "^7.24.7"
+ "@babel/parser" "^7.24.7"
+ "@babel/types" "^7.24.7"
+
+"@babel/traverse@^7.22.8", "@babel/traverse@^7.24.7", "@babel/traverse@^7.7.2":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.7.tgz#de2b900163fa741721ba382163fe46a936c40cf5"
+ integrity sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA==
+ dependencies:
+ "@babel/code-frame" "^7.24.7"
+ "@babel/generator" "^7.24.7"
+ "@babel/helper-environment-visitor" "^7.24.7"
+ "@babel/helper-function-name" "^7.24.7"
+ "@babel/helper-hoist-variables" "^7.24.7"
+ "@babel/helper-split-export-declaration" "^7.24.7"
+ "@babel/parser" "^7.24.7"
+ "@babel/types" "^7.24.7"
+ debug "^4.3.1"
globals "^11.1.0"
-"@babel/types@^7.0.0", "@babel/types@^7.20.0", "@babel/types@^7.22.15", "@babel/types@^7.22.19", "@babel/types@^7.22.5", "@babel/types@^7.23.0", "@babel/types@^7.23.5", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4":
- version "7.23.5"
- resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.23.5.tgz#48d730a00c95109fa4393352705954d74fb5b602"
- integrity sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w==
+"@babel/types@^7.0.0", "@babel/types@^7.21.3", "@babel/types@^7.22.15", "@babel/types@^7.24.7", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.7.tgz#6027fe12bc1aa724cd32ab113fb7f1988f1f66f2"
+ integrity sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==
dependencies:
- "@babel/helper-string-parser" "^7.23.4"
- "@babel/helper-validator-identifier" "^7.22.20"
+ "@babel/helper-string-parser" "^7.24.7"
+ "@babel/helper-validator-identifier" "^7.24.7"
to-fast-properties "^2.0.0"
"@bcoe/v8-coverage@^0.2.3":
@@ -1230,10 +1265,10 @@
"@docsearch/css" "3.5.2"
algoliasearch "^4.19.1"
-"@docusaurus/core@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/core/-/core-3.0.1.tgz#ad9a66b20802ea81b25e65db75d4ca952eda7e01"
- integrity sha512-CXrLpOnW+dJdSv8M5FAJ3JBwXtL6mhUWxFA8aS0ozK6jBG/wgxERk5uvH28fCeFxOGbAT9v1e9dOMo1X2IEVhQ==
+"@docusaurus/core@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/core/-/core-3.4.0.tgz#bdbf1af4b2f25d1bf4a5b62ec6137d84c821cb3c"
+ integrity sha512-g+0wwmN2UJsBqy2fQRQ6fhXruoEa62JDeEa5d8IdTJlMoaDaEDfHh7WjwGRn4opuTQWpjAwP/fbcgyHKlE+64w==
dependencies:
"@babel/core" "^7.23.3"
"@babel/generator" "^7.23.3"
@@ -1245,15 +1280,12 @@
"@babel/runtime" "^7.22.6"
"@babel/runtime-corejs3" "^7.22.6"
"@babel/traverse" "^7.22.8"
- "@docusaurus/cssnano-preset" "3.0.1"
- "@docusaurus/logger" "3.0.1"
- "@docusaurus/mdx-loader" "3.0.1"
- "@docusaurus/react-loadable" "5.5.2"
- "@docusaurus/utils" "3.0.1"
- "@docusaurus/utils-common" "3.0.1"
- "@docusaurus/utils-validation" "3.0.1"
- "@slorber/static-site-generator-webpack-plugin" "^4.0.7"
- "@svgr/webpack" "^6.5.1"
+ "@docusaurus/cssnano-preset" "3.4.0"
+ "@docusaurus/logger" "3.4.0"
+ "@docusaurus/mdx-loader" "3.4.0"
+ "@docusaurus/utils" "3.4.0"
+ "@docusaurus/utils-common" "3.4.0"
+ "@docusaurus/utils-validation" "3.4.0"
autoprefixer "^10.4.14"
babel-loader "^9.1.3"
babel-plugin-dynamic-import-node "^2.3.3"
@@ -1267,12 +1299,13 @@
copy-webpack-plugin "^11.0.0"
core-js "^3.31.1"
css-loader "^6.8.1"
- css-minimizer-webpack-plugin "^4.2.2"
- cssnano "^5.1.15"
+ css-minimizer-webpack-plugin "^5.0.1"
+ cssnano "^6.1.2"
del "^6.1.1"
detect-port "^1.5.1"
escape-html "^1.0.3"
eta "^2.2.0"
+ eval "^0.1.8"
file-loader "^6.2.0"
fs-extra "^11.1.1"
html-minifier-terser "^7.2.0"
@@ -1281,12 +1314,13 @@
leven "^3.1.0"
lodash "^4.17.21"
mini-css-extract-plugin "^2.7.6"
+ p-map "^4.0.0"
postcss "^8.4.26"
postcss-loader "^7.3.3"
prompts "^2.4.2"
react-dev-utils "^12.0.1"
react-helmet-async "^1.3.0"
- react-loadable "npm:@docusaurus/react-loadable@5.5.2"
+ react-loadable "npm:@docusaurus/react-loadable@6.0.0"
react-loadable-ssr-addon-v5-slorber "^1.0.1"
react-router "^5.3.4"
react-router-config "^5.1.1"
@@ -1305,34 +1339,32 @@
webpack-merge "^5.9.0"
webpackbar "^5.0.2"
-"@docusaurus/cssnano-preset@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/cssnano-preset/-/cssnano-preset-3.0.1.tgz#22fbf2e97389e338747864baf011743846e8fd26"
- integrity sha512-wjuXzkHMW+ig4BD6Ya1Yevx9UJadO4smNZCEljqBoQfIQrQskTswBs7lZ8InHP7mCt273a/y/rm36EZhqJhknQ==
+"@docusaurus/cssnano-preset@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/cssnano-preset/-/cssnano-preset-3.4.0.tgz#dc7922b3bbeabcefc9b60d0161680d81cf72c368"
+ integrity sha512-qwLFSz6v/pZHy/UP32IrprmH5ORce86BGtN0eBtG75PpzQJAzp9gefspox+s8IEOr0oZKuQ/nhzZ3xwyc3jYJQ==
dependencies:
- cssnano-preset-advanced "^5.3.10"
- postcss "^8.4.26"
- postcss-sort-media-queries "^4.4.1"
+ cssnano-preset-advanced "^6.1.2"
+ postcss "^8.4.38"
+ postcss-sort-media-queries "^5.2.0"
tslib "^2.6.0"
-"@docusaurus/logger@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/logger/-/logger-3.0.1.tgz#06f512eef6c6ae4e2da63064257e01b1cdc41a82"
- integrity sha512-I5L6Nk8OJzkVA91O2uftmo71LBSxe1vmOn9AMR6JRCzYeEBrqneWMH02AqMvjJ2NpMiviO+t0CyPjyYV7nxCWQ==
+"@docusaurus/logger@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/logger/-/logger-3.4.0.tgz#8b0ac05c7f3dac2009066e2f964dee8209a77403"
+ integrity sha512-bZwkX+9SJ8lB9kVRkXw+xvHYSMGG4bpYHKGXeXFvyVc79NMeeBSGgzd4TQLHH+DYeOJoCdl8flrFJVxlZ0wo/Q==
dependencies:
chalk "^4.1.2"
tslib "^2.6.0"
-"@docusaurus/mdx-loader@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/mdx-loader/-/mdx-loader-3.0.1.tgz#89f221e5bcc570983fd61d7ab56d6fbe36810b59"
- integrity sha512-ldnTmvnvlrONUq45oKESrpy+lXtbnTcTsFkOTIDswe5xx5iWJjt6eSa0f99ZaWlnm24mlojcIGoUWNCS53qVlQ==
+"@docusaurus/mdx-loader@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/mdx-loader/-/mdx-loader-3.4.0.tgz#483d7ab57928fdbb5c8bd1678098721a930fc5f6"
+ integrity sha512-kSSbrrk4nTjf4d+wtBA9H+FGauf2gCax89kV8SUSJu3qaTdSIKdWERlngsiHaCFgZ7laTJ8a67UFf+xlFPtuTw==
dependencies:
- "@babel/parser" "^7.22.7"
- "@babel/traverse" "^7.22.8"
- "@docusaurus/logger" "3.0.1"
- "@docusaurus/utils" "3.0.1"
- "@docusaurus/utils-validation" "3.0.1"
+ "@docusaurus/logger" "3.4.0"
+ "@docusaurus/utils" "3.4.0"
+ "@docusaurus/utils-validation" "3.4.0"
"@mdx-js/mdx" "^3.0.0"
"@slorber/remark-comment" "^1.0.0"
escape-html "^1.0.3"
@@ -1355,46 +1387,31 @@
vfile "^6.0.1"
webpack "^5.88.1"
-"@docusaurus/module-type-aliases@3.0.0":
- version "3.0.0"
- resolved "https://registry.yarnpkg.com/@docusaurus/module-type-aliases/-/module-type-aliases-3.0.0.tgz#9a7dd323bb87ca666eb4b0b4b90d04425f2e05d6"
- integrity sha512-CfC6CgN4u/ce+2+L1JdsHNyBd8yYjl4De2B2CBj2a9F7WuJ5RjV1ciuU7KDg8uyju+NRVllRgvJvxVUjCdkPiw==
- dependencies:
- "@docusaurus/react-loadable" "5.5.2"
- "@docusaurus/types" "3.0.0"
- "@types/history" "^4.7.11"
- "@types/react" "*"
- "@types/react-router-config" "*"
- "@types/react-router-dom" "*"
- react-helmet-async "*"
- react-loadable "npm:@docusaurus/react-loadable@5.5.2"
-
-"@docusaurus/module-type-aliases@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/module-type-aliases/-/module-type-aliases-3.0.1.tgz#d45990fe377d7ffaa68841cf89401188a5d65293"
- integrity sha512-DEHpeqUDsLynl3AhQQiO7AbC7/z/lBra34jTcdYuvp9eGm01pfH1wTVq8YqWZq6Jyx0BgcVl/VJqtE9StRd9Ag==
+"@docusaurus/module-type-aliases@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/module-type-aliases/-/module-type-aliases-3.4.0.tgz#2653bde58fc1aa3dbc626a6c08cfb63a37ae1bb8"
+ integrity sha512-A1AyS8WF5Bkjnb8s+guTDuYmUiwJzNrtchebBHpc0gz0PyHJNMaybUlSrmJjHVcGrya0LKI4YcR3lBDQfXRYLw==
dependencies:
- "@docusaurus/react-loadable" "5.5.2"
- "@docusaurus/types" "3.0.1"
+ "@docusaurus/types" "3.4.0"
"@types/history" "^4.7.11"
"@types/react" "*"
"@types/react-router-config" "*"
"@types/react-router-dom" "*"
react-helmet-async "*"
- react-loadable "npm:@docusaurus/react-loadable@5.5.2"
-
-"@docusaurus/plugin-content-blog@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-blog/-/plugin-content-blog-3.0.1.tgz#dee6147187c2d8b634252444d60312d12c9571a6"
- integrity sha512-cLOvtvAyaMQFLI8vm4j26svg3ktxMPSXpuUJ7EERKoGbfpJSsgtowNHcRsaBVmfuCsRSk1HZ/yHBsUkTmHFEsg==
- dependencies:
- "@docusaurus/core" "3.0.1"
- "@docusaurus/logger" "3.0.1"
- "@docusaurus/mdx-loader" "3.0.1"
- "@docusaurus/types" "3.0.1"
- "@docusaurus/utils" "3.0.1"
- "@docusaurus/utils-common" "3.0.1"
- "@docusaurus/utils-validation" "3.0.1"
+ react-loadable "npm:@docusaurus/react-loadable@6.0.0"
+
+"@docusaurus/plugin-content-blog@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-blog/-/plugin-content-blog-3.4.0.tgz#6373632fdbababbda73a13c4a08f907d7de8f007"
+ integrity sha512-vv6ZAj78ibR5Jh7XBUT4ndIjmlAxkijM3Sx5MAAzC1gyv0vupDQNhzuFg1USQmQVj3P5I6bquk12etPV3LJ+Xw==
+ dependencies:
+ "@docusaurus/core" "3.4.0"
+ "@docusaurus/logger" "3.4.0"
+ "@docusaurus/mdx-loader" "3.4.0"
+ "@docusaurus/types" "3.4.0"
+ "@docusaurus/utils" "3.4.0"
+ "@docusaurus/utils-common" "3.4.0"
+ "@docusaurus/utils-validation" "3.4.0"
cheerio "^1.0.0-rc.12"
feed "^4.2.2"
fs-extra "^11.1.1"
@@ -1406,18 +1423,19 @@
utility-types "^3.10.0"
webpack "^5.88.1"
-"@docusaurus/plugin-content-docs@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-docs/-/plugin-content-docs-3.0.1.tgz#d9b1884562186573d5c4521ac3546b68512c1126"
- integrity sha512-dRfAOA5Ivo+sdzzJGXEu33yAtvGg8dlZkvt/NEJ7nwi1F2j4LEdsxtfX2GKeETB2fP6XoGNSQnFXqa2NYGrHFg==
- dependencies:
- "@docusaurus/core" "3.0.1"
- "@docusaurus/logger" "3.0.1"
- "@docusaurus/mdx-loader" "3.0.1"
- "@docusaurus/module-type-aliases" "3.0.1"
- "@docusaurus/types" "3.0.1"
- "@docusaurus/utils" "3.0.1"
- "@docusaurus/utils-validation" "3.0.1"
+"@docusaurus/plugin-content-docs@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-docs/-/plugin-content-docs-3.4.0.tgz#3088973f72169a2a6d533afccec7153c8720d332"
+ integrity sha512-HkUCZffhBo7ocYheD9oZvMcDloRnGhBMOZRyVcAQRFmZPmNqSyISlXA1tQCIxW+r478fty97XXAGjNYzBjpCsg==
+ dependencies:
+ "@docusaurus/core" "3.4.0"
+ "@docusaurus/logger" "3.4.0"
+ "@docusaurus/mdx-loader" "3.4.0"
+ "@docusaurus/module-type-aliases" "3.4.0"
+ "@docusaurus/types" "3.4.0"
+ "@docusaurus/utils" "3.4.0"
+ "@docusaurus/utils-common" "3.4.0"
+ "@docusaurus/utils-validation" "3.4.0"
"@types/react-router-config" "^5.0.7"
combine-promises "^1.1.0"
fs-extra "^11.1.1"
@@ -1427,122 +1445,114 @@
utility-types "^3.10.0"
webpack "^5.88.1"
-"@docusaurus/plugin-content-pages@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-pages/-/plugin-content-pages-3.0.1.tgz#27e6424c77173f867760efe53f848bbab8849ea6"
- integrity sha512-oP7PoYizKAXyEttcvVzfX3OoBIXEmXTMzCdfmC4oSwjG4SPcJsRge3mmI6O8jcZBgUPjIzXD21bVGWEE1iu8gg==
- dependencies:
- "@docusaurus/core" "3.0.1"
- "@docusaurus/mdx-loader" "3.0.1"
- "@docusaurus/types" "3.0.1"
- "@docusaurus/utils" "3.0.1"
- "@docusaurus/utils-validation" "3.0.1"
+"@docusaurus/plugin-content-pages@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-pages/-/plugin-content-pages-3.4.0.tgz#1846172ca0355c7d32a67ef8377750ce02bbb8ad"
+ integrity sha512-h2+VN/0JjpR8fIkDEAoadNjfR3oLzB+v1qSXbIAKjQ46JAHx3X22n9nqS+BWSQnTnp1AjkjSvZyJMekmcwxzxg==
+ dependencies:
+ "@docusaurus/core" "3.4.0"
+ "@docusaurus/mdx-loader" "3.4.0"
+ "@docusaurus/types" "3.4.0"
+ "@docusaurus/utils" "3.4.0"
+ "@docusaurus/utils-validation" "3.4.0"
fs-extra "^11.1.1"
tslib "^2.6.0"
webpack "^5.88.1"
-"@docusaurus/plugin-debug@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/plugin-debug/-/plugin-debug-3.0.1.tgz#886b5dd03c066e970484ca251c1b79613df90700"
- integrity sha512-09dxZMdATky4qdsZGzhzlUvvC+ilQ2hKbYF+wez+cM2mGo4qHbv8+qKXqxq0CQZyimwlAOWQLoSozIXU0g0i7g==
+"@docusaurus/plugin-debug@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/plugin-debug/-/plugin-debug-3.4.0.tgz#74e4ec5686fa314c26f3ac150bacadbba7f06948"
+ integrity sha512-uV7FDUNXGyDSD3PwUaf5YijX91T5/H9SX4ErEcshzwgzWwBtK37nUWPU3ZLJfeTavX3fycTOqk9TglpOLaWkCg==
dependencies:
- "@docusaurus/core" "3.0.1"
- "@docusaurus/types" "3.0.1"
- "@docusaurus/utils" "3.0.1"
+ "@docusaurus/core" "3.4.0"
+ "@docusaurus/types" "3.4.0"
+ "@docusaurus/utils" "3.4.0"
fs-extra "^11.1.1"
react-json-view-lite "^1.2.0"
tslib "^2.6.0"
-"@docusaurus/plugin-google-analytics@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-analytics/-/plugin-google-analytics-3.0.1.tgz#ec69902131ea3aad8b062eeb1d17bf0962986f80"
- integrity sha512-jwseSz1E+g9rXQwDdr0ZdYNjn8leZBnKPjjQhMBEiwDoenL3JYFcNW0+p0sWoVF/f2z5t7HkKA+cYObrUh18gg==
+"@docusaurus/plugin-google-analytics@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-analytics/-/plugin-google-analytics-3.4.0.tgz#5f59fc25329a59decc231936f6f9fb5663da3c55"
+ integrity sha512-mCArluxEGi3cmYHqsgpGGt3IyLCrFBxPsxNZ56Mpur0xSlInnIHoeLDH7FvVVcPJRPSQ9/MfRqLsainRw+BojA==
dependencies:
- "@docusaurus/core" "3.0.1"
- "@docusaurus/types" "3.0.1"
- "@docusaurus/utils-validation" "3.0.1"
+ "@docusaurus/core" "3.4.0"
+ "@docusaurus/types" "3.4.0"
+ "@docusaurus/utils-validation" "3.4.0"
tslib "^2.6.0"
-"@docusaurus/plugin-google-gtag@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-3.0.1.tgz#bb5526377d3a324ebec235127846fda386562b05"
- integrity sha512-UFTDvXniAWrajsulKUJ1DB6qplui1BlKLQZjX4F7qS/qfJ+qkKqSkhJ/F4VuGQ2JYeZstYb+KaUzUzvaPK1aRQ==
+"@docusaurus/plugin-google-gtag@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-3.4.0.tgz#42489ac5fe1c83b5523ceedd5ef74f9aa8bc251b"
+ integrity sha512-Dsgg6PLAqzZw5wZ4QjUYc8Z2KqJqXxHxq3vIoyoBWiLEEfigIs7wHR+oiWUQy3Zk9MIk6JTYj7tMoQU0Jm3nqA==
dependencies:
- "@docusaurus/core" "3.0.1"
- "@docusaurus/types" "3.0.1"
- "@docusaurus/utils-validation" "3.0.1"
+ "@docusaurus/core" "3.4.0"
+ "@docusaurus/types" "3.4.0"
+ "@docusaurus/utils-validation" "3.4.0"
"@types/gtag.js" "^0.0.12"
tslib "^2.6.0"
-"@docusaurus/plugin-google-tag-manager@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-tag-manager/-/plugin-google-tag-manager-3.0.1.tgz#4e36d13279cf90c2614b62438aa1109dd4696ec8"
- integrity sha512-IPFvuz83aFuheZcWpTlAdiiX1RqWIHM+OH8wS66JgwAKOiQMR3+nLywGjkLV4bp52x7nCnwhNk1rE85Cpy/CIw==
+"@docusaurus/plugin-google-tag-manager@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-tag-manager/-/plugin-google-tag-manager-3.4.0.tgz#cebb03a5ffa1e70b37d95601442babea251329ff"
+ integrity sha512-O9tX1BTwxIhgXpOLpFDueYA9DWk69WCbDRrjYoMQtFHSkTyE7RhNgyjSPREUWJb9i+YUg3OrsvrBYRl64FCPCQ==
dependencies:
- "@docusaurus/core" "3.0.1"
- "@docusaurus/types" "3.0.1"
- "@docusaurus/utils-validation" "3.0.1"
+ "@docusaurus/core" "3.4.0"
+ "@docusaurus/types" "3.4.0"
+ "@docusaurus/utils-validation" "3.4.0"
tslib "^2.6.0"
-"@docusaurus/plugin-sitemap@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/plugin-sitemap/-/plugin-sitemap-3.0.1.tgz#ab55857e90d4500f892e110b30e4bc3289202bd4"
- integrity sha512-xARiWnjtVvoEniZudlCq5T9ifnhCu/GAZ5nA7XgyLfPcNpHQa241HZdsTlLtVcecEVVdllevBKOp7qknBBaMGw==
- dependencies:
- "@docusaurus/core" "3.0.1"
- "@docusaurus/logger" "3.0.1"
- "@docusaurus/types" "3.0.1"
- "@docusaurus/utils" "3.0.1"
- "@docusaurus/utils-common" "3.0.1"
- "@docusaurus/utils-validation" "3.0.1"
+"@docusaurus/plugin-sitemap@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/plugin-sitemap/-/plugin-sitemap-3.4.0.tgz#b091d64d1e3c6c872050189999580187537bcbc6"
+ integrity sha512-+0VDvx9SmNrFNgwPoeoCha+tRoAjopwT0+pYO1xAbyLcewXSemq+eLxEa46Q1/aoOaJQ0qqHELuQM7iS2gp33Q==
+ dependencies:
+ "@docusaurus/core" "3.4.0"
+ "@docusaurus/logger" "3.4.0"
+ "@docusaurus/types" "3.4.0"
+ "@docusaurus/utils" "3.4.0"
+ "@docusaurus/utils-common" "3.4.0"
+ "@docusaurus/utils-validation" "3.4.0"
fs-extra "^11.1.1"
sitemap "^7.1.1"
tslib "^2.6.0"
-"@docusaurus/preset-classic@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/preset-classic/-/preset-classic-3.0.1.tgz#d363ac837bba967095ed2a896d13c54f3717d6b5"
- integrity sha512-il9m9xZKKjoXn6h0cRcdnt6wce0Pv1y5t4xk2Wx7zBGhKG1idu4IFHtikHlD0QPuZ9fizpXspXcTzjL5FXc1Gw==
- dependencies:
- "@docusaurus/core" "3.0.1"
- "@docusaurus/plugin-content-blog" "3.0.1"
- "@docusaurus/plugin-content-docs" "3.0.1"
- "@docusaurus/plugin-content-pages" "3.0.1"
- "@docusaurus/plugin-debug" "3.0.1"
- "@docusaurus/plugin-google-analytics" "3.0.1"
- "@docusaurus/plugin-google-gtag" "3.0.1"
- "@docusaurus/plugin-google-tag-manager" "3.0.1"
- "@docusaurus/plugin-sitemap" "3.0.1"
- "@docusaurus/theme-classic" "3.0.1"
- "@docusaurus/theme-common" "3.0.1"
- "@docusaurus/theme-search-algolia" "3.0.1"
- "@docusaurus/types" "3.0.1"
-
-"@docusaurus/react-loadable@5.5.2", "react-loadable@npm:@docusaurus/react-loadable@5.5.2":
- version "5.5.2"
- resolved "https://registry.yarnpkg.com/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz#81aae0db81ecafbdaee3651f12804580868fa6ce"
- integrity sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==
- dependencies:
- "@types/react" "*"
- prop-types "^15.6.2"
-
-"@docusaurus/theme-classic@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/theme-classic/-/theme-classic-3.0.1.tgz#3ba4dc77553d2c1608e433c0d01bed7c6db14eb9"
- integrity sha512-XD1FRXaJiDlmYaiHHdm27PNhhPboUah9rqIH0lMpBt5kYtsGjJzhqa27KuZvHLzOP2OEpqd2+GZ5b6YPq7Q05Q==
- dependencies:
- "@docusaurus/core" "3.0.1"
- "@docusaurus/mdx-loader" "3.0.1"
- "@docusaurus/module-type-aliases" "3.0.1"
- "@docusaurus/plugin-content-blog" "3.0.1"
- "@docusaurus/plugin-content-docs" "3.0.1"
- "@docusaurus/plugin-content-pages" "3.0.1"
- "@docusaurus/theme-common" "3.0.1"
- "@docusaurus/theme-translations" "3.0.1"
- "@docusaurus/types" "3.0.1"
- "@docusaurus/utils" "3.0.1"
- "@docusaurus/utils-common" "3.0.1"
- "@docusaurus/utils-validation" "3.0.1"
+"@docusaurus/preset-classic@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/preset-classic/-/preset-classic-3.4.0.tgz#6082a32fbb465b0cb2c2a50ebfc277cff2c0f139"
+ integrity sha512-Ohj6KB7siKqZaQhNJVMBBUzT3Nnp6eTKqO+FXO3qu/n1hJl3YLwVKTWBg28LF7MWrKu46UuYavwMRxud0VyqHg==
+ dependencies:
+ "@docusaurus/core" "3.4.0"
+ "@docusaurus/plugin-content-blog" "3.4.0"
+ "@docusaurus/plugin-content-docs" "3.4.0"
+ "@docusaurus/plugin-content-pages" "3.4.0"
+ "@docusaurus/plugin-debug" "3.4.0"
+ "@docusaurus/plugin-google-analytics" "3.4.0"
+ "@docusaurus/plugin-google-gtag" "3.4.0"
+ "@docusaurus/plugin-google-tag-manager" "3.4.0"
+ "@docusaurus/plugin-sitemap" "3.4.0"
+ "@docusaurus/theme-classic" "3.4.0"
+ "@docusaurus/theme-common" "3.4.0"
+ "@docusaurus/theme-search-algolia" "3.4.0"
+ "@docusaurus/types" "3.4.0"
+
+"@docusaurus/theme-classic@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/theme-classic/-/theme-classic-3.4.0.tgz#1b0f48edec3e3ec8927843554b9f11e5927b0e52"
+ integrity sha512-0IPtmxsBYv2adr1GnZRdMkEQt1YW6tpzrUPj02YxNpvJ5+ju4E13J5tB4nfdaen/tfR1hmpSPlTFPvTf4kwy8Q==
+ dependencies:
+ "@docusaurus/core" "3.4.0"
+ "@docusaurus/mdx-loader" "3.4.0"
+ "@docusaurus/module-type-aliases" "3.4.0"
+ "@docusaurus/plugin-content-blog" "3.4.0"
+ "@docusaurus/plugin-content-docs" "3.4.0"
+ "@docusaurus/plugin-content-pages" "3.4.0"
+ "@docusaurus/theme-common" "3.4.0"
+ "@docusaurus/theme-translations" "3.4.0"
+ "@docusaurus/types" "3.4.0"
+ "@docusaurus/utils" "3.4.0"
+ "@docusaurus/utils-common" "3.4.0"
+ "@docusaurus/utils-validation" "3.4.0"
"@mdx-js/react" "^3.0.0"
clsx "^2.0.0"
copy-text-to-clipboard "^3.2.0"
@@ -1557,18 +1567,18 @@
tslib "^2.6.0"
utility-types "^3.10.0"
-"@docusaurus/theme-common@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/theme-common/-/theme-common-3.0.1.tgz#29a5bcb286296a52bc10afa5308e360cbed6b49c"
- integrity sha512-cr9TOWXuIOL0PUfuXv6L5lPlTgaphKP+22NdVBOYah5jSq5XAAulJTjfe+IfLsEG4L7lJttLbhW7LXDFSAI7Ag==
- dependencies:
- "@docusaurus/mdx-loader" "3.0.1"
- "@docusaurus/module-type-aliases" "3.0.1"
- "@docusaurus/plugin-content-blog" "3.0.1"
- "@docusaurus/plugin-content-docs" "3.0.1"
- "@docusaurus/plugin-content-pages" "3.0.1"
- "@docusaurus/utils" "3.0.1"
- "@docusaurus/utils-common" "3.0.1"
+"@docusaurus/theme-common@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/theme-common/-/theme-common-3.4.0.tgz#01f2b728de6cb57f6443f52fc30675cf12a5d49f"
+ integrity sha512-0A27alXuv7ZdCg28oPE8nH/Iz73/IUejVaCazqu9elS4ypjiLhK3KfzdSQBnL/g7YfHSlymZKdiOHEo8fJ0qMA==
+ dependencies:
+ "@docusaurus/mdx-loader" "3.4.0"
+ "@docusaurus/module-type-aliases" "3.4.0"
+ "@docusaurus/plugin-content-blog" "3.4.0"
+ "@docusaurus/plugin-content-docs" "3.4.0"
+ "@docusaurus/plugin-content-pages" "3.4.0"
+ "@docusaurus/utils" "3.4.0"
+ "@docusaurus/utils-common" "3.4.0"
"@types/history" "^4.7.11"
"@types/react" "*"
"@types/react-router-config" "*"
@@ -1578,19 +1588,19 @@
tslib "^2.6.0"
utility-types "^3.10.0"
-"@docusaurus/theme-search-algolia@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/theme-search-algolia/-/theme-search-algolia-3.0.1.tgz#d8fb6bddca8d8355e4706c4c7d30d3b800217cf4"
- integrity sha512-DDiPc0/xmKSEdwFkXNf1/vH1SzJPzuJBar8kMcBbDAZk/SAmo/4lf6GU2drou4Ae60lN2waix+jYWTWcJRahSA==
+"@docusaurus/theme-search-algolia@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/theme-search-algolia/-/theme-search-algolia-3.4.0.tgz#c499bad71d668df0d0f15b0e5e33e2fc4e330fcc"
+ integrity sha512-aiHFx7OCw4Wck1z6IoShVdUWIjntC8FHCw9c5dR8r3q4Ynh+zkS8y2eFFunN/DL6RXPzpnvKCg3vhLQYJDmT9Q==
dependencies:
"@docsearch/react" "^3.5.2"
- "@docusaurus/core" "3.0.1"
- "@docusaurus/logger" "3.0.1"
- "@docusaurus/plugin-content-docs" "3.0.1"
- "@docusaurus/theme-common" "3.0.1"
- "@docusaurus/theme-translations" "3.0.1"
- "@docusaurus/utils" "3.0.1"
- "@docusaurus/utils-validation" "3.0.1"
+ "@docusaurus/core" "3.4.0"
+ "@docusaurus/logger" "3.4.0"
+ "@docusaurus/plugin-content-docs" "3.4.0"
+ "@docusaurus/theme-common" "3.4.0"
+ "@docusaurus/theme-translations" "3.4.0"
+ "@docusaurus/utils" "3.4.0"
+ "@docusaurus/utils-validation" "3.4.0"
algoliasearch "^4.18.0"
algoliasearch-helper "^3.13.3"
clsx "^2.0.0"
@@ -1600,38 +1610,25 @@
tslib "^2.6.0"
utility-types "^3.10.0"
-"@docusaurus/theme-translations@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/theme-translations/-/theme-translations-3.0.1.tgz#837a01a166ccd698a3eceaed0c2f798555bc024b"
- integrity sha512-6UrbpzCTN6NIJnAtZ6Ne9492vmPVX+7Fsz4kmp+yor3KQwA1+MCzQP7ItDNkP38UmVLnvB/cYk/IvehCUqS3dg==
+"@docusaurus/theme-translations@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/theme-translations/-/theme-translations-3.4.0.tgz#e6355d01352886c67e38e848b2542582ea3070af"
+ integrity sha512-zSxCSpmQCCdQU5Q4CnX/ID8CSUUI3fvmq4hU/GNP/XoAWtXo9SAVnM3TzpU8Gb//H3WCsT8mJcTfyOk3d9ftNg==
dependencies:
fs-extra "^11.1.1"
tslib "^2.6.0"
-"@docusaurus/tsconfig@3.0.0":
- version "3.0.0"
- resolved "https://registry.yarnpkg.com/@docusaurus/tsconfig/-/tsconfig-3.0.0.tgz#89ce292cff8debaa03d93d651ffd6375561e7dab"
- integrity sha512-yR9sng4izFudS+v1xV5yboNfc1hATMDpYp9iYfWggbBDwKSm0J1IdIgkygRnqC/AWs1ARUQUpG0gFotPCE/4Ew==
+"@docusaurus/tsconfig@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/tsconfig/-/tsconfig-3.4.0.tgz#2b6ea208e580facc6e3330433e9b4321ef0eb3f5"
+ integrity sha512-0qENiJ+TRaeTzcg4olrnh0BQ7eCxTgbYWBnWUeQDc84UYkt/T3pDNnm3SiQkqPb+YQ1qtYFlC0RriAElclo8Dg==
-"@docusaurus/types@3.0.0":
- version "3.0.0"
- resolved "https://registry.yarnpkg.com/@docusaurus/types/-/types-3.0.0.tgz#3edabe43f70b45f81a48f3470d6a73a2eba41945"
- integrity sha512-Qb+l/hmCOVemReuzvvcFdk84bUmUFyD0Zi81y651ie3VwMrXqC7C0E7yZLKMOsLj/vkqsxHbtkAuYMI89YzNzg==
- dependencies:
- "@types/history" "^4.7.11"
- "@types/react" "*"
- commander "^5.1.0"
- joi "^17.9.2"
- react-helmet-async "^1.3.0"
- utility-types "^3.10.0"
- webpack "^5.88.1"
- webpack-merge "^5.9.0"
-
-"@docusaurus/types@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/types/-/types-3.0.1.tgz#4fe306aa10ef7c97dbc07588864f6676a40f3b6f"
- integrity sha512-plyX2iU1tcUsF46uQ01pAd4JhexR7n0iiQ5MSnBFX6M6NSJgDYdru/i1/YNPKOnQHBoXGLHv0dNT6OAlDWNjrg==
+"@docusaurus/types@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/types/-/types-3.4.0.tgz#237c3f737e9db3f7c1a5935a3ef48d6eadde8292"
+ integrity sha512-4jcDO8kXi5Cf9TcyikB/yKmz14f2RZ2qTRerbHAsS+5InE9ZgSLBNLsewtFTcTOXSVcbU3FoGOzcNWAmU1TR0A==
dependencies:
+ "@mdx-js/mdx" "^3.0.0"
"@types/history" "^4.7.11"
"@types/react" "*"
commander "^5.1.0"
@@ -1641,31 +1638,35 @@
webpack "^5.88.1"
webpack-merge "^5.9.0"
-"@docusaurus/utils-common@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/utils-common/-/utils-common-3.0.1.tgz#111f450089d5f0a290c0c25f8a574a270d08436f"
- integrity sha512-W0AxD6w6T8g6bNro8nBRWf7PeZ/nn7geEWM335qHU2DDDjHuV4UZjgUGP1AQsdcSikPrlIqTJJbKzer1lRSlIg==
+"@docusaurus/utils-common@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/utils-common/-/utils-common-3.4.0.tgz#2a43fefd35b85ab9fcc6833187e66c15f8bfbbc6"
+ integrity sha512-NVx54Wr4rCEKsjOH5QEVvxIqVvm+9kh7q8aYTU5WzUU9/Hctd6aTrcZ3G0Id4zYJ+AeaG5K5qHA4CY5Kcm2iyQ==
dependencies:
tslib "^2.6.0"
-"@docusaurus/utils-validation@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/utils-validation/-/utils-validation-3.0.1.tgz#3c5f12941b328a19fc9acb34d070219f3e865ec6"
- integrity sha512-ujTnqSfyGQ7/4iZdB4RRuHKY/Nwm58IIb+41s5tCXOv/MBU2wGAjOHq3U+AEyJ8aKQcHbxvTKJaRchNHYUVUQg==
+"@docusaurus/utils-validation@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/utils-validation/-/utils-validation-3.4.0.tgz#0176f6e503ff45f4390ec2ecb69550f55e0b5eb7"
+ integrity sha512-hYQ9fM+AXYVTWxJOT1EuNaRnrR2WGpRdLDQG07O8UOpsvCPWUVOeo26Rbm0JWY2sGLfzAb+tvJ62yF+8F+TV0g==
dependencies:
- "@docusaurus/logger" "3.0.1"
- "@docusaurus/utils" "3.0.1"
+ "@docusaurus/logger" "3.4.0"
+ "@docusaurus/utils" "3.4.0"
+ "@docusaurus/utils-common" "3.4.0"
+ fs-extra "^11.2.0"
joi "^17.9.2"
js-yaml "^4.1.0"
+ lodash "^4.17.21"
tslib "^2.6.0"
-"@docusaurus/utils@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@docusaurus/utils/-/utils-3.0.1.tgz#c64f68980a90c5bc6d53a5b8f32deb9026b1e303"
- integrity sha512-TwZ33Am0q4IIbvjhUOs+zpjtD/mXNmLmEgeTGuRq01QzulLHuPhaBTTAC/DHu6kFx3wDgmgpAlaRuCHfTcXv8g==
+"@docusaurus/utils@3.4.0":
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/utils/-/utils-3.4.0.tgz#c508e20627b7a55e2b541e4a28c95e0637d6a204"
+ integrity sha512-fRwnu3L3nnWaXOgs88BVBmG1yGjcQqZNHG+vInhEa2Sz2oQB+ZjbEMO5Rh9ePFpZ0YDiDUhpaVjwmS+AU2F14g==
dependencies:
- "@docusaurus/logger" "3.0.1"
- "@svgr/webpack" "^6.5.1"
+ "@docusaurus/logger" "3.4.0"
+ "@docusaurus/utils-common" "3.4.0"
+ "@svgr/webpack" "^8.1.0"
escape-string-regexp "^4.0.0"
file-loader "^6.2.0"
fs-extra "^11.1.1"
@@ -1676,10 +1677,12 @@
js-yaml "^4.1.0"
lodash "^4.17.21"
micromatch "^4.0.5"
+ prompts "^2.4.2"
resolve-pathname "^3.0.0"
shelljs "^0.8.5"
tslib "^2.6.0"
url-loader "^4.1.1"
+ utility-types "^3.10.0"
webpack "^5.88.1"
"@eslint-community/eslint-utils@^4.2.0":
@@ -1740,6 +1743,18 @@
resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45"
integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==
+"@isaacs/cliui@^8.0.2":
+ version "8.0.2"
+ resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550"
+ integrity sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==
+ dependencies:
+ string-width "^5.1.2"
+ string-width-cjs "npm:string-width@^4.2.0"
+ strip-ansi "^7.0.1"
+ strip-ansi-cjs "npm:strip-ansi@^6.0.1"
+ wrap-ansi "^8.1.0"
+ wrap-ansi-cjs "npm:wrap-ansi@^7.0.0"
+
"@istanbuljs/load-nyc-config@^1.0.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced"
@@ -1879,12 +1894,12 @@
strip-ansi "^6.0.0"
v8-to-istanbul "^9.0.1"
-"@jest/schemas@^29.4.3":
- version "29.4.3"
- resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.4.3.tgz#39cf1b8469afc40b6f5a2baaa146e332c4151788"
- integrity sha512-VLYKXQmtmuEz6IxJsrZwzG9NvtkQsWNnWMsKxqWNu3+CnfzJQhp0WDDKWLVV9hLKr0l3SLLFRqcYHjhtyuDVxg==
+"@jest/schemas@^29.4.3", "@jest/schemas@^29.6.3":
+ version "29.6.3"
+ resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.6.3.tgz#430b5ce8a4e0044a7e3819663305a7b3091c8e03"
+ integrity sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==
dependencies:
- "@sinclair/typebox" "^0.25.16"
+ "@sinclair/typebox" "^0.27.8"
"@jest/source-map@^29.2.0":
version "29.2.0"
@@ -1936,36 +1951,36 @@
slash "^3.0.0"
write-file-atomic "^4.0.1"
-"@jest/types@^29.3.1", "@jest/types@^29.5.0":
- version "29.5.0"
- resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.5.0.tgz#f59ef9b031ced83047c67032700d8c807d6e1593"
- integrity sha512-qbu7kN6czmVRc3xWFQcAN03RAUamgppVUdXrvl1Wr3jlNF93o9mJbGcDWrwGB6ht44u7efB1qCFgVQmca24Uog==
+"@jest/types@^29.3.1", "@jest/types@^29.5.0", "@jest/types@^29.6.3":
+ version "29.6.3"
+ resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.6.3.tgz#1131f8cf634e7e84c5e77bab12f052af585fba59"
+ integrity sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==
dependencies:
- "@jest/schemas" "^29.4.3"
+ "@jest/schemas" "^29.6.3"
"@types/istanbul-lib-coverage" "^2.0.0"
"@types/istanbul-reports" "^3.0.0"
"@types/node" "*"
"@types/yargs" "^17.0.8"
chalk "^4.0.0"
-"@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2":
- version "0.3.3"
- resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz#7e02e6eb5df901aaedb08514203b096614024098"
- integrity sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==
+"@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2", "@jridgewell/gen-mapping@^0.3.5":
+ version "0.3.5"
+ resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz#dcce6aff74bdf6dad1a95802b69b04a2fcb1fb36"
+ integrity sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==
dependencies:
- "@jridgewell/set-array" "^1.0.1"
+ "@jridgewell/set-array" "^1.2.1"
"@jridgewell/sourcemap-codec" "^1.4.10"
- "@jridgewell/trace-mapping" "^0.3.9"
+ "@jridgewell/trace-mapping" "^0.3.24"
-"@jridgewell/resolve-uri@3.1.0":
- version "3.1.0"
- resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78"
- integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==
+"@jridgewell/resolve-uri@^3.1.0":
+ version "3.1.2"
+ resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6"
+ integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==
-"@jridgewell/set-array@^1.0.1":
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72"
- integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==
+"@jridgewell/set-array@^1.2.1":
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.2.1.tgz#558fb6472ed16a4c850b889530e6b36438c49280"
+ integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==
"@jridgewell/source-map@^0.3.3":
version "0.3.3"
@@ -1975,18 +1990,18 @@
"@jridgewell/gen-mapping" "^0.3.0"
"@jridgewell/trace-mapping" "^0.3.9"
-"@jridgewell/sourcemap-codec@1.4.14", "@jridgewell/sourcemap-codec@^1.4.10":
- version "1.4.14"
- resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24"
- integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==
+"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14":
+ version "1.4.15"
+ resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32"
+ integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==
-"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.15", "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9":
- version "0.3.18"
- resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz#25783b2086daf6ff1dcb53c9249ae480e4dd4cd6"
- integrity sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==
+"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.15", "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25", "@jridgewell/trace-mapping@^0.3.9":
+ version "0.3.25"
+ resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0"
+ integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==
dependencies:
- "@jridgewell/resolve-uri" "3.1.0"
- "@jridgewell/sourcemap-codec" "1.4.14"
+ "@jridgewell/resolve-uri" "^3.1.0"
+ "@jridgewell/sourcemap-codec" "^1.4.14"
"@leichtgewicht/ip-codec@^2.0.1":
version "2.0.4"
@@ -2055,6 +2070,11 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"
+"@pkgjs/parseargs@^0.11.0":
+ version "0.11.0"
+ resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
+ integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==
+
"@pnpm/config.env-replace@^1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@pnpm/config.env-replace/-/config.env-replace-1.1.0.tgz#ab29da53df41e8948a00f2433f085f54de8b3a4c"
@@ -2119,10 +2139,10 @@
resolved "https://registry.yarnpkg.com/@sideway/pinpoint/-/pinpoint-2.0.0.tgz#cff8ffadc372ad29fd3f78277aeb29e632cc70df"
integrity sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==
-"@sinclair/typebox@^0.25.16":
- version "0.25.24"
- resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.25.24.tgz#8c7688559979f7079aacaf31aa881c3aa410b718"
- integrity sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==
+"@sinclair/typebox@^0.27.8":
+ version "0.27.8"
+ resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e"
+ integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==
"@sindresorhus/is@^3.1.2":
version "3.1.2"
@@ -2157,120 +2177,111 @@
micromark-util-character "^1.1.0"
micromark-util-symbol "^1.0.1"
-"@slorber/static-site-generator-webpack-plugin@^4.0.7":
- version "4.0.7"
- resolved "https://registry.yarnpkg.com/@slorber/static-site-generator-webpack-plugin/-/static-site-generator-webpack-plugin-4.0.7.tgz#fc1678bddefab014e2145cbe25b3ce4e1cfc36f3"
- integrity sha512-Ug7x6z5lwrz0WqdnNFOMYrDQNTPAprvHLSh6+/fmml3qUiz6l5eq+2MzLKWtn/q5K5NpSiFsZTP/fck/3vjSxA==
- dependencies:
- eval "^0.1.8"
- p-map "^4.0.0"
- webpack-sources "^3.2.2"
-
-"@svgr/babel-plugin-add-jsx-attribute@^6.5.1":
- version "6.5.1"
- resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-6.5.1.tgz#74a5d648bd0347bda99d82409d87b8ca80b9a1ba"
- integrity sha512-9PYGcXrAxitycIjRmZB+Q0JaN07GZIWaTBIGQzfaZv+qr1n8X1XUEJ5rZ/vx6OVD9RRYlrNnXWExQXcmZeD/BQ==
+"@svgr/babel-plugin-add-jsx-attribute@8.0.0":
+ version "8.0.0"
+ resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-8.0.0.tgz#4001f5d5dd87fa13303e36ee106e3ff3a7eb8b22"
+ integrity sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==
-"@svgr/babel-plugin-remove-jsx-attribute@*":
+"@svgr/babel-plugin-remove-jsx-attribute@8.0.0":
version "8.0.0"
resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-8.0.0.tgz#69177f7937233caca3a1afb051906698f2f59186"
integrity sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==
-"@svgr/babel-plugin-remove-jsx-empty-expression@*":
+"@svgr/babel-plugin-remove-jsx-empty-expression@8.0.0":
version "8.0.0"
resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-8.0.0.tgz#c2c48104cfd7dcd557f373b70a56e9e3bdae1d44"
integrity sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==
-"@svgr/babel-plugin-replace-jsx-attribute-value@^6.5.1":
- version "6.5.1"
- resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-6.5.1.tgz#fb9d22ea26d2bc5e0a44b763d4c46d5d3f596c60"
- integrity sha512-8DPaVVE3fd5JKuIC29dqyMB54sA6mfgki2H2+swh+zNJoynC8pMPzOkidqHOSc6Wj032fhl8Z0TVn1GiPpAiJg==
-
-"@svgr/babel-plugin-svg-dynamic-title@^6.5.1":
- version "6.5.1"
- resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-6.5.1.tgz#01b2024a2b53ffaa5efceaa0bf3e1d5a4c520ce4"
- integrity sha512-FwOEi0Il72iAzlkaHrlemVurgSQRDFbk0OC8dSvD5fSBPHltNh7JtLsxmZUhjYBZo2PpcU/RJvvi6Q0l7O7ogw==
-
-"@svgr/babel-plugin-svg-em-dimensions@^6.5.1":
- version "6.5.1"
- resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-6.5.1.tgz#dd3fa9f5b24eb4f93bcf121c3d40ff5facecb217"
- integrity sha512-gWGsiwjb4tw+ITOJ86ndY/DZZ6cuXMNE/SjcDRg+HLuCmwpcjOktwRF9WgAiycTqJD/QXqL2f8IzE2Rzh7aVXA==
-
-"@svgr/babel-plugin-transform-react-native-svg@^6.5.1":
- version "6.5.1"
- resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-6.5.1.tgz#1d8e945a03df65b601551097d8f5e34351d3d305"
- integrity sha512-2jT3nTayyYP7kI6aGutkyfJ7UMGtuguD72OjeGLwVNyfPRBD8zQthlvL+fAbAKk5n9ZNcvFkp/b1lZ7VsYqVJg==
-
-"@svgr/babel-plugin-transform-svg-component@^6.5.1":
- version "6.5.1"
- resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-6.5.1.tgz#48620b9e590e25ff95a80f811544218d27f8a250"
- integrity sha512-a1p6LF5Jt33O3rZoVRBqdxL350oge54iZWHNI6LJB5tQ7EelvD/Mb1mfBiZNAan0dt4i3VArkFRjA4iObuNykQ==
-
-"@svgr/babel-preset@^6.5.1":
- version "6.5.1"
- resolved "https://registry.yarnpkg.com/@svgr/babel-preset/-/babel-preset-6.5.1.tgz#b90de7979c8843c5c580c7e2ec71f024b49eb828"
- integrity sha512-6127fvO/FF2oi5EzSQOAjo1LE3OtNVh11R+/8FXa+mHx1ptAaS4cknIjnUA7e6j6fwGGJ17NzaTJFUwOV2zwCw==
- dependencies:
- "@svgr/babel-plugin-add-jsx-attribute" "^6.5.1"
- "@svgr/babel-plugin-remove-jsx-attribute" "*"
- "@svgr/babel-plugin-remove-jsx-empty-expression" "*"
- "@svgr/babel-plugin-replace-jsx-attribute-value" "^6.5.1"
- "@svgr/babel-plugin-svg-dynamic-title" "^6.5.1"
- "@svgr/babel-plugin-svg-em-dimensions" "^6.5.1"
- "@svgr/babel-plugin-transform-react-native-svg" "^6.5.1"
- "@svgr/babel-plugin-transform-svg-component" "^6.5.1"
-
-"@svgr/core@^6.5.1":
- version "6.5.1"
- resolved "https://registry.yarnpkg.com/@svgr/core/-/core-6.5.1.tgz#d3e8aa9dbe3fbd747f9ee4282c1c77a27410488a"
- integrity sha512-/xdLSWxK5QkqG524ONSjvg3V/FkNyCv538OIBdQqPNaAta3AsXj/Bd2FbvR87yMbXO2hFSWiAe/Q6IkVPDw+mw==
- dependencies:
- "@babel/core" "^7.19.6"
- "@svgr/babel-preset" "^6.5.1"
- "@svgr/plugin-jsx" "^6.5.1"
+"@svgr/babel-plugin-replace-jsx-attribute-value@8.0.0":
+ version "8.0.0"
+ resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-8.0.0.tgz#8fbb6b2e91fa26ac5d4aa25c6b6e4f20f9c0ae27"
+ integrity sha512-KVQ+PtIjb1BuYT3ht8M5KbzWBhdAjjUPdlMtpuw/VjT8coTrItWX6Qafl9+ji831JaJcu6PJNKCV0bp01lBNzQ==
+
+"@svgr/babel-plugin-svg-dynamic-title@8.0.0":
+ version "8.0.0"
+ resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-8.0.0.tgz#1d5ba1d281363fc0f2f29a60d6d936f9bbc657b0"
+ integrity sha512-omNiKqwjNmOQJ2v6ge4SErBbkooV2aAWwaPFs2vUY7p7GhVkzRkJ00kILXQvRhA6miHnNpXv7MRnnSjdRjK8og==
+
+"@svgr/babel-plugin-svg-em-dimensions@8.0.0":
+ version "8.0.0"
+ resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-8.0.0.tgz#35e08df300ea8b1d41cb8f62309c241b0369e501"
+ integrity sha512-mURHYnu6Iw3UBTbhGwE/vsngtCIbHE43xCRK7kCw4t01xyGqb2Pd+WXekRRoFOBIY29ZoOhUCTEweDMdrjfi9g==
+
+"@svgr/babel-plugin-transform-react-native-svg@8.1.0":
+ version "8.1.0"
+ resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-8.1.0.tgz#90a8b63998b688b284f255c6a5248abd5b28d754"
+ integrity sha512-Tx8T58CHo+7nwJ+EhUwx3LfdNSG9R2OKfaIXXs5soiy5HtgoAEkDay9LIimLOcG8dJQH1wPZp/cnAv6S9CrR1Q==
+
+"@svgr/babel-plugin-transform-svg-component@8.0.0":
+ version "8.0.0"
+ resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-8.0.0.tgz#013b4bfca88779711f0ed2739f3f7efcefcf4f7e"
+ integrity sha512-DFx8xa3cZXTdb/k3kfPeaixecQLgKh5NVBMwD0AQxOzcZawK4oo1Jh9LbrcACUivsCA7TLG8eeWgrDXjTMhRmw==
+
+"@svgr/babel-preset@8.1.0":
+ version "8.1.0"
+ resolved "https://registry.yarnpkg.com/@svgr/babel-preset/-/babel-preset-8.1.0.tgz#0e87119aecdf1c424840b9d4565b7137cabf9ece"
+ integrity sha512-7EYDbHE7MxHpv4sxvnVPngw5fuR6pw79SkcrILHJ/iMpuKySNCl5W1qcwPEpU+LgyRXOaAFgH0KhwD18wwg6ug==
+ dependencies:
+ "@svgr/babel-plugin-add-jsx-attribute" "8.0.0"
+ "@svgr/babel-plugin-remove-jsx-attribute" "8.0.0"
+ "@svgr/babel-plugin-remove-jsx-empty-expression" "8.0.0"
+ "@svgr/babel-plugin-replace-jsx-attribute-value" "8.0.0"
+ "@svgr/babel-plugin-svg-dynamic-title" "8.0.0"
+ "@svgr/babel-plugin-svg-em-dimensions" "8.0.0"
+ "@svgr/babel-plugin-transform-react-native-svg" "8.1.0"
+ "@svgr/babel-plugin-transform-svg-component" "8.0.0"
+
+"@svgr/core@8.1.0":
+ version "8.1.0"
+ resolved "https://registry.yarnpkg.com/@svgr/core/-/core-8.1.0.tgz#41146f9b40b1a10beaf5cc4f361a16a3c1885e88"
+ integrity sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA==
+ dependencies:
+ "@babel/core" "^7.21.3"
+ "@svgr/babel-preset" "8.1.0"
camelcase "^6.2.0"
- cosmiconfig "^7.0.1"
+ cosmiconfig "^8.1.3"
+ snake-case "^3.0.4"
-"@svgr/hast-util-to-babel-ast@^6.5.1":
- version "6.5.1"
- resolved "https://registry.yarnpkg.com/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-6.5.1.tgz#81800bd09b5bcdb968bf6ee7c863d2288fdb80d2"
- integrity sha512-1hnUxxjd83EAxbL4a0JDJoD3Dao3hmjvyvyEV8PzWmLK3B9m9NPlW7GKjFyoWE8nM7HnXzPcmmSyOW8yOddSXw==
+"@svgr/hast-util-to-babel-ast@8.0.0":
+ version "8.0.0"
+ resolved "https://registry.yarnpkg.com/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-8.0.0.tgz#6952fd9ce0f470e1aded293b792a2705faf4ffd4"
+ integrity sha512-EbDKwO9GpfWP4jN9sGdYwPBU0kdomaPIL2Eu4YwmgP+sJeXT+L7bMwJUBnhzfH8Q2qMBqZ4fJwpCyYsAN3mt2Q==
dependencies:
- "@babel/types" "^7.20.0"
+ "@babel/types" "^7.21.3"
entities "^4.4.0"
-"@svgr/plugin-jsx@^6.5.1":
- version "6.5.1"
- resolved "https://registry.yarnpkg.com/@svgr/plugin-jsx/-/plugin-jsx-6.5.1.tgz#0e30d1878e771ca753c94e69581c7971542a7072"
- integrity sha512-+UdQxI3jgtSjCykNSlEMuy1jSRQlGC7pqBCPvkG/2dATdWo082zHTTK3uhnAju2/6XpE6B5mZ3z4Z8Ns01S8Gw==
+"@svgr/plugin-jsx@8.1.0":
+ version "8.1.0"
+ resolved "https://registry.yarnpkg.com/@svgr/plugin-jsx/-/plugin-jsx-8.1.0.tgz#96969f04a24b58b174ee4cd974c60475acbd6928"
+ integrity sha512-0xiIyBsLlr8quN+WyuxooNW9RJ0Dpr8uOnH/xrCVO8GLUcwHISwj1AG0k+LFzteTkAA0GbX0kj9q6Dk70PTiPA==
dependencies:
- "@babel/core" "^7.19.6"
- "@svgr/babel-preset" "^6.5.1"
- "@svgr/hast-util-to-babel-ast" "^6.5.1"
+ "@babel/core" "^7.21.3"
+ "@svgr/babel-preset" "8.1.0"
+ "@svgr/hast-util-to-babel-ast" "8.0.0"
svg-parser "^2.0.4"
-"@svgr/plugin-svgo@^6.5.1":
- version "6.5.1"
- resolved "https://registry.yarnpkg.com/@svgr/plugin-svgo/-/plugin-svgo-6.5.1.tgz#0f91910e988fc0b842f88e0960c2862e022abe84"
- integrity sha512-omvZKf8ixP9z6GWgwbtmP9qQMPX4ODXi+wzbVZgomNFsUIlHA1sf4fThdwTWSsZGgvGAG6yE+b/F5gWUkcZ/iQ==
+"@svgr/plugin-svgo@8.1.0":
+ version "8.1.0"
+ resolved "https://registry.yarnpkg.com/@svgr/plugin-svgo/-/plugin-svgo-8.1.0.tgz#b115b7b967b564f89ac58feae89b88c3decd0f00"
+ integrity sha512-Ywtl837OGO9pTLIN/onoWLmDQ4zFUycI1g76vuKGEz6evR/ZTJlJuz3G/fIkb6OVBJ2g0o6CGJzaEjfmEo3AHA==
dependencies:
- cosmiconfig "^7.0.1"
- deepmerge "^4.2.2"
- svgo "^2.8.0"
+ cosmiconfig "^8.1.3"
+ deepmerge "^4.3.1"
+ svgo "^3.0.2"
-"@svgr/webpack@^6.5.1":
- version "6.5.1"
- resolved "https://registry.yarnpkg.com/@svgr/webpack/-/webpack-6.5.1.tgz#ecf027814fc1cb2decc29dc92f39c3cf691e40e8"
- integrity sha512-cQ/AsnBkXPkEK8cLbv4Dm7JGXq2XrumKnL1dRpJD9rIO2fTIlJI9a1uCciYG1F2aUsox/hJQyNGbt3soDxSRkA==
+"@svgr/webpack@^8.1.0":
+ version "8.1.0"
+ resolved "https://registry.yarnpkg.com/@svgr/webpack/-/webpack-8.1.0.tgz#16f1b5346f102f89fda6ec7338b96a701d8be0c2"
+ integrity sha512-LnhVjMWyMQV9ZmeEy26maJk+8HTIbd59cH4F2MJ439k9DqejRisfFNGAPvRYlKETuh9LrImlS8aKsBgKjMA8WA==
dependencies:
- "@babel/core" "^7.19.6"
- "@babel/plugin-transform-react-constant-elements" "^7.18.12"
- "@babel/preset-env" "^7.19.4"
+ "@babel/core" "^7.21.3"
+ "@babel/plugin-transform-react-constant-elements" "^7.21.3"
+ "@babel/preset-env" "^7.20.2"
"@babel/preset-react" "^7.18.6"
- "@babel/preset-typescript" "^7.18.6"
- "@svgr/core" "^6.5.1"
- "@svgr/plugin-jsx" "^6.5.1"
- "@svgr/plugin-svgo" "^6.5.1"
+ "@babel/preset-typescript" "^7.21.0"
+ "@svgr/core" "8.1.0"
+ "@svgr/plugin-jsx" "8.1.0"
+ "@svgr/plugin-svgo" "8.1.0"
"@szmarczak/http-timer@^5.0.1":
version "5.0.1"
@@ -2414,14 +2425,6 @@
"@types/qs" "*"
"@types/serve-static" "*"
-"@types/glob@^8.1.0":
- version "8.1.0"
- resolved "https://registry.yarnpkg.com/@types/glob/-/glob-8.1.0.tgz#b63e70155391b0584dce44e7ea25190bbc38f2fc"
- integrity sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==
- dependencies:
- "@types/minimatch" "^5.1.2"
- "@types/node" "*"
-
"@types/graceful-fs@^4.1.3":
version "4.1.5"
resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15"
@@ -2517,11 +2520,6 @@
resolved "https://registry.yarnpkg.com/@types/mime/-/mime-1.3.2.tgz#93e25bf9ee75fe0fd80b594bc4feb0e862111b5a"
integrity sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==
-"@types/minimatch@^5.1.2":
- version "5.1.2"
- resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-5.1.2.tgz#07508b45797cb81ec3f273011b054cd0755eddca"
- integrity sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==
-
"@types/minimist@^1.2.5":
version "1.2.5"
resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.5.tgz#ec10755e871497bcd83efe927e43ec46e8c0747e"
@@ -3333,14 +3331,14 @@ at-least-node@^1.0.0:
resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2"
integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==
-autoprefixer@^10.4.12, autoprefixer@^10.4.14:
- version "10.4.16"
- resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.16.tgz#fad1411024d8670880bdece3970aa72e3572feb8"
- integrity sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==
+autoprefixer@^10.4.14, autoprefixer@^10.4.19:
+ version "10.4.19"
+ resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.19.tgz#ad25a856e82ee9d7898c59583c1afeb3fa65f89f"
+ integrity sha512-BaENR2+zBZ8xXhM4pUaKUxlVdxZ0EZhjvbopwnXmxRUfqDmwSpC2lAi/QXvx7NRdPCo1WKEcEF6mV64si1z4Ew==
dependencies:
- browserslist "^4.21.10"
- caniuse-lite "^1.0.30001538"
- fraction.js "^4.3.6"
+ browserslist "^4.23.0"
+ caniuse-lite "^1.0.30001599"
+ fraction.js "^4.3.7"
normalize-range "^0.1.2"
picocolors "^1.0.0"
postcss-value-parser "^4.2.0"
@@ -3399,15 +3397,23 @@ babel-plugin-jest-hoist@^29.2.0:
"@types/babel__core" "^7.1.14"
"@types/babel__traverse" "^7.0.6"
-babel-plugin-polyfill-corejs2@^0.4.6:
- version "0.4.6"
- resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.6.tgz#b2df0251d8e99f229a8e60fc4efa9a68b41c8313"
- integrity sha512-jhHiWVZIlnPbEUKSSNb9YoWcQGdlTLq7z1GHL4AjFxaoOUMuuEVJ+Y4pAaQUGOGk93YsVCKPbqbfw3m0SM6H8Q==
+babel-plugin-polyfill-corejs2@^0.4.10, babel-plugin-polyfill-corejs2@^0.4.6:
+ version "0.4.11"
+ resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.11.tgz#30320dfe3ffe1a336c15afdcdafd6fd615b25e33"
+ integrity sha512-sMEJ27L0gRHShOh5G54uAAPaiCOygY/5ratXuiyb2G46FmlSpc9eFCzYVyDiPxfNbwzA7mYahmjQc5q+CZQ09Q==
dependencies:
"@babel/compat-data" "^7.22.6"
- "@babel/helper-define-polyfill-provider" "^0.4.3"
+ "@babel/helper-define-polyfill-provider" "^0.6.2"
semver "^6.3.1"
+babel-plugin-polyfill-corejs3@^0.10.4:
+ version "0.10.4"
+ resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.4.tgz#789ac82405ad664c20476d0233b485281deb9c77"
+ integrity sha512-25J6I8NGfa5YkCDogHRID3fVCadIR8/pGl1/spvCkzb6lVn6SR3ojpx9nOn9iEBcUsjY24AmdKm5khcfKdylcg==
+ dependencies:
+ "@babel/helper-define-polyfill-provider" "^0.6.1"
+ core-js-compat "^3.36.1"
+
babel-plugin-polyfill-corejs3@^0.8.5:
version "0.8.5"
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.5.tgz#a75fa1b0c3fc5bd6837f9ec465c0f48031b8cab1"
@@ -3423,6 +3429,13 @@ babel-plugin-polyfill-regenerator@^0.5.3:
dependencies:
"@babel/helper-define-polyfill-provider" "^0.4.3"
+babel-plugin-polyfill-regenerator@^0.6.1:
+ version "0.6.2"
+ resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.2.tgz#addc47e240edd1da1058ebda03021f382bba785e"
+ integrity sha512-2R25rQZWP63nGwaAswvDazbPXfrM3HwVoBXK6HcqeKrSrL/JqcC/rDcf95l4r7LXLyxDXc8uQDa064GubtCABg==
+ dependencies:
+ "@babel/helper-define-polyfill-provider" "^0.6.2"
+
babel-preset-current-node-syntax@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz#b4399239b89b2a011f9ddbe3e4f401fc40cff73b"
@@ -3503,13 +3516,13 @@ binary-extensions@^2.0.0:
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d"
integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==
-body-parser@1.20.1:
- version "1.20.1"
- resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.1.tgz#b1812a8912c195cd371a3ee5e66faa2338a5c668"
- integrity sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==
+body-parser@1.20.2:
+ version "1.20.2"
+ resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.2.tgz#6feb0e21c4724d06de7ff38da36dad4f57a747fd"
+ integrity sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==
dependencies:
bytes "3.1.2"
- content-type "~1.0.4"
+ content-type "~1.0.5"
debug "2.6.9"
depd "2.0.0"
destroy "1.2.0"
@@ -3517,7 +3530,7 @@ body-parser@1.20.1:
iconv-lite "0.4.24"
on-finished "2.4.1"
qs "6.11.0"
- raw-body "2.5.1"
+ raw-body "2.5.2"
type-is "~1.6.18"
unpipe "1.0.0"
@@ -3580,21 +3593,21 @@ brace-expansion@^2.0.1:
balanced-match "^1.0.0"
braces@^3.0.2, braces@~3.0.2:
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
- integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789"
+ integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==
dependencies:
- fill-range "^7.0.1"
+ fill-range "^7.1.1"
-browserslist@^4.0.0, browserslist@^4.14.5, browserslist@^4.18.1, browserslist@^4.21.10, browserslist@^4.21.4, browserslist@^4.21.9, browserslist@^4.22.1:
- version "4.22.1"
- resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.22.1.tgz#ba91958d1a59b87dab6fed8dfbcb3da5e2e9c619"
- integrity sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==
+browserslist@^4.0.0, browserslist@^4.14.5, browserslist@^4.18.1, browserslist@^4.22.2, browserslist@^4.23.0:
+ version "4.23.1"
+ resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.1.tgz#ce4af0534b3d37db5c1a4ca98b9080f985041e96"
+ integrity sha512-TUfofFo/KsK/bWZ9TWQ5O26tsWW4Uhmt8IYklbnUa70udB6P2wA7w7o4PY4muaEPBQaAX+CEnmmIA41NVHtPVw==
dependencies:
- caniuse-lite "^1.0.30001541"
- electron-to-chromium "^1.4.535"
- node-releases "^2.0.13"
- update-browserslist-db "^1.0.13"
+ caniuse-lite "^1.0.30001629"
+ electron-to-chromium "^1.4.796"
+ node-releases "^2.0.14"
+ update-browserslist-db "^1.0.16"
bser@2.1.1:
version "2.1.1"
@@ -3683,10 +3696,10 @@ caniuse-api@^3.0.0:
lodash.memoize "^4.1.2"
lodash.uniq "^4.5.0"
-caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001538, caniuse-lite@^1.0.30001541:
- version "1.0.30001557"
- resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001557.tgz#13f762ea1d7f7b009d4d2785fbbd250354d09ad9"
- integrity sha512-91oR7hLNUP3gG6MLU+n96em322a8Xzes8wWdBKhLgUoiJsAF5irZnxSUCbc+qUZXNnPCfUwLOi9ZCZpkvjQajw==
+caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001599, caniuse-lite@^1.0.30001629:
+ version "1.0.30001636"
+ resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001636.tgz#b15f52d2bdb95fad32c2f53c0b68032b85188a78"
+ integrity sha512-bMg2vmr8XBsbL6Lr0UHXy/21m84FTxDLWn2FSqMd5PrlbMxwJlQnC2YWYxVgp66PZE+BBNF2jYQUBKCo1FDeZg==
cardinal@^2.1.1:
version "2.1.1"
@@ -3923,7 +3936,7 @@ color-name@~1.1.4:
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
-colord@^2.9.1:
+colord@^2.9.3:
version "2.9.3"
resolved "https://registry.yarnpkg.com/colord/-/colord-2.9.3.tgz#4f8ce919de456f1d5c1c368c307fe20f3e59fb43"
integrity sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==
@@ -4054,7 +4067,7 @@ content-disposition@0.5.4:
dependencies:
safe-buffer "5.2.1"
-content-type@~1.0.4:
+content-type@~1.0.4, content-type@~1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918"
integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==
@@ -4074,10 +4087,10 @@ cookie-signature@1.0.6:
resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c"
integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==
-cookie@0.5.0:
- version "0.5.0"
- resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.5.0.tgz#d1f5d71adec6558c58f389987c366aa47e994f8b"
- integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==
+cookie@0.6.0:
+ version "0.6.0"
+ resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.6.0.tgz#2798b04b071b0ecbff0dbb62a505a8efa4e19051"
+ integrity sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==
copy-text-to-clipboard@^3.2.0:
version "3.2.0"
@@ -4096,12 +4109,12 @@ copy-webpack-plugin@^11.0.0:
schema-utils "^4.0.0"
serialize-javascript "^6.0.0"
-core-js-compat@^3.31.0, core-js-compat@^3.32.2:
- version "3.33.0"
- resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.33.0.tgz#24aa230b228406450b2277b7c8bfebae932df966"
- integrity sha512-0w4LcLXsVEuNkIqwjjf9rjCoPhK8uqA4tMRh4Ge26vfLtUutshn+aRJU21I9LCJlh2QQHfisNToLjw1XEJLTWw==
+core-js-compat@^3.31.0, core-js-compat@^3.32.2, core-js-compat@^3.36.1:
+ version "3.37.1"
+ resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.37.1.tgz#c844310c7852f4bdf49b8d339730b97e17ff09ee"
+ integrity sha512-9TNiImhKvQqSUkOvk/mMRZzOANTiEVC7WaBNhHcKM7x+/5E1l5NvsysR19zuDQScE8k+kfQXWRN3AtS/eOSHpg==
dependencies:
- browserslist "^4.22.1"
+ browserslist "^4.23.0"
core-js-pure@^3.30.2:
version "3.31.0"
@@ -4129,28 +4142,17 @@ cosmiconfig@^6.0.0:
path-type "^4.0.0"
yaml "^1.7.2"
-cosmiconfig@^7.0.1:
- version "7.1.0"
- resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.1.0.tgz#1443b9afa596b670082ea46cbd8f6a62b84635f6"
- integrity sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==
+cosmiconfig@^8.1.3, cosmiconfig@^8.2.0:
+ version "8.3.6"
+ resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.3.6.tgz#060a2b871d66dba6c8538ea1118ba1ac16f5fae3"
+ integrity sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==
dependencies:
- "@types/parse-json" "^4.0.0"
- import-fresh "^3.2.1"
- parse-json "^5.0.0"
- path-type "^4.0.0"
- yaml "^1.10.0"
-
-cosmiconfig@^8.2.0:
- version "8.2.0"
- resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.2.0.tgz#f7d17c56a590856cd1e7cee98734dca272b0d8fd"
- integrity sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ==
- dependencies:
- import-fresh "^3.2.1"
+ import-fresh "^3.3.0"
js-yaml "^4.1.0"
- parse-json "^5.0.0"
+ parse-json "^5.2.0"
path-type "^4.0.0"
-cross-spawn@^7.0.2, cross-spawn@^7.0.3:
+cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
version "7.0.3"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
@@ -4166,10 +4168,10 @@ crypto-random-string@^4.0.0:
dependencies:
type-fest "^1.0.1"
-css-declaration-sorter@^6.3.1:
- version "6.4.0"
- resolved "https://registry.yarnpkg.com/css-declaration-sorter/-/css-declaration-sorter-6.4.0.tgz#630618adc21724484b3e9505bce812def44000ad"
- integrity sha512-jDfsatwWMWN0MODAFuHszfjphEXfNw9JUAhmY4pLu3TyTU+ohUpsbVtbU+1MZn4a47D9kqh03i4eyOm+74+zew==
+css-declaration-sorter@^7.2.0:
+ version "7.2.0"
+ resolved "https://registry.yarnpkg.com/css-declaration-sorter/-/css-declaration-sorter-7.2.0.tgz#6dec1c9523bc4a643e088aab8f09e67a54961024"
+ integrity sha512-h70rUM+3PNFuaBDTLe8wF/cdWu+dOZmb7pJt8Z2sedYbAcQVQV/tEchueg3GWxwqS0cxtbxmaHEdkNACqcvsow==
css-loader@^6.8.1:
version "6.8.1"
@@ -4185,17 +4187,17 @@ css-loader@^6.8.1:
postcss-value-parser "^4.2.0"
semver "^7.3.8"
-css-minimizer-webpack-plugin@^4.2.2:
- version "4.2.2"
- resolved "https://registry.yarnpkg.com/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-4.2.2.tgz#79f6199eb5adf1ff7ba57f105e3752d15211eb35"
- integrity sha512-s3Of/4jKfw1Hj9CxEO1E5oXhQAxlayuHO2y/ML+C6I9sQ7FdzfEV6QgMLN3vI+qFsjJGIAFLKtQK7t8BOXAIyA==
- dependencies:
- cssnano "^5.1.8"
- jest-worker "^29.1.2"
- postcss "^8.4.17"
- schema-utils "^4.0.0"
- serialize-javascript "^6.0.0"
- source-map "^0.6.1"
+css-minimizer-webpack-plugin@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.yarnpkg.com/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-5.0.1.tgz#33effe662edb1a0bf08ad633c32fa75d0f7ec565"
+ integrity sha512-3caImjKFQkS+ws1TGcFn0V1HyDJFq1Euy589JlD6/3rV2kj+w7r5G9WDMgSHvpvXHNZ2calVypZWuEDQd9wfLg==
+ dependencies:
+ "@jridgewell/trace-mapping" "^0.3.18"
+ cssnano "^6.0.1"
+ jest-worker "^29.4.3"
+ postcss "^8.4.24"
+ schema-utils "^4.0.1"
+ serialize-javascript "^6.0.1"
css-select@^4.1.3:
version "4.3.0"
@@ -4219,13 +4221,21 @@ css-select@^5.1.0:
domutils "^3.0.1"
nth-check "^2.0.1"
-css-tree@^1.1.2, css-tree@^1.1.3:
- version "1.1.3"
- resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.1.3.tgz#eb4870fb6fd7707327ec95c2ff2ab09b5e8db91d"
- integrity sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==
+css-tree@^2.3.1:
+ version "2.3.1"
+ resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-2.3.1.tgz#10264ce1e5442e8572fc82fbe490644ff54b5c20"
+ integrity sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==
dependencies:
- mdn-data "2.0.14"
- source-map "^0.6.1"
+ mdn-data "2.0.30"
+ source-map-js "^1.0.1"
+
+css-tree@~2.2.0:
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-2.2.1.tgz#36115d382d60afd271e377f9c5f67d02bd48c032"
+ integrity sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA==
+ dependencies:
+ mdn-data "2.0.28"
+ source-map-js "^1.0.1"
css-what@^6.0.1, css-what@^6.1.0:
version "6.1.0"
@@ -4237,73 +4247,74 @@ cssesc@^3.0.0:
resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee"
integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==
-cssnano-preset-advanced@^5.3.10:
- version "5.3.10"
- resolved "https://registry.yarnpkg.com/cssnano-preset-advanced/-/cssnano-preset-advanced-5.3.10.tgz#25558a1fbf3a871fb6429ce71e41be7f5aca6eef"
- integrity sha512-fnYJyCS9jgMU+cmHO1rPSPf9axbQyD7iUhLO5Df6O4G+fKIOMps+ZbU0PdGFejFBBZ3Pftf18fn1eG7MAPUSWQ==
- dependencies:
- autoprefixer "^10.4.12"
- cssnano-preset-default "^5.2.14"
- postcss-discard-unused "^5.1.0"
- postcss-merge-idents "^5.1.1"
- postcss-reduce-idents "^5.2.0"
- postcss-zindex "^5.1.0"
-
-cssnano-preset-default@^5.2.14:
- version "5.2.14"
- resolved "https://registry.yarnpkg.com/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz#309def4f7b7e16d71ab2438052093330d9ab45d8"
- integrity sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==
- dependencies:
- css-declaration-sorter "^6.3.1"
- cssnano-utils "^3.1.0"
- postcss-calc "^8.2.3"
- postcss-colormin "^5.3.1"
- postcss-convert-values "^5.1.3"
- postcss-discard-comments "^5.1.2"
- postcss-discard-duplicates "^5.1.0"
- postcss-discard-empty "^5.1.1"
- postcss-discard-overridden "^5.1.0"
- postcss-merge-longhand "^5.1.7"
- postcss-merge-rules "^5.1.4"
- postcss-minify-font-values "^5.1.0"
- postcss-minify-gradients "^5.1.1"
- postcss-minify-params "^5.1.4"
- postcss-minify-selectors "^5.2.1"
- postcss-normalize-charset "^5.1.0"
- postcss-normalize-display-values "^5.1.0"
- postcss-normalize-positions "^5.1.1"
- postcss-normalize-repeat-style "^5.1.1"
- postcss-normalize-string "^5.1.0"
- postcss-normalize-timing-functions "^5.1.0"
- postcss-normalize-unicode "^5.1.1"
- postcss-normalize-url "^5.1.0"
- postcss-normalize-whitespace "^5.1.1"
- postcss-ordered-values "^5.1.3"
- postcss-reduce-initial "^5.1.2"
- postcss-reduce-transforms "^5.1.0"
- postcss-svgo "^5.1.0"
- postcss-unique-selectors "^5.1.1"
-
-cssnano-utils@^3.1.0:
- version "3.1.0"
- resolved "https://registry.yarnpkg.com/cssnano-utils/-/cssnano-utils-3.1.0.tgz#95684d08c91511edfc70d2636338ca37ef3a6861"
- integrity sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==
+cssnano-preset-advanced@^6.1.2:
+ version "6.1.2"
+ resolved "https://registry.yarnpkg.com/cssnano-preset-advanced/-/cssnano-preset-advanced-6.1.2.tgz#82b090872b8f98c471f681d541c735acf8b94d3f"
+ integrity sha512-Nhao7eD8ph2DoHolEzQs5CfRpiEP0xa1HBdnFZ82kvqdmbwVBUr2r1QuQ4t1pi+D1ZpqpcO4T+wy/7RxzJ/WPQ==
+ dependencies:
+ autoprefixer "^10.4.19"
+ browserslist "^4.23.0"
+ cssnano-preset-default "^6.1.2"
+ postcss-discard-unused "^6.0.5"
+ postcss-merge-idents "^6.0.3"
+ postcss-reduce-idents "^6.0.3"
+ postcss-zindex "^6.0.2"
+
+cssnano-preset-default@^6.1.2:
+ version "6.1.2"
+ resolved "https://registry.yarnpkg.com/cssnano-preset-default/-/cssnano-preset-default-6.1.2.tgz#adf4b89b975aa775f2750c89dbaf199bbd9da35e"
+ integrity sha512-1C0C+eNaeN8OcHQa193aRgYexyJtU8XwbdieEjClw+J9d94E41LwT6ivKH0WT+fYwYWB0Zp3I3IZ7tI/BbUbrg==
+ dependencies:
+ browserslist "^4.23.0"
+ css-declaration-sorter "^7.2.0"
+ cssnano-utils "^4.0.2"
+ postcss-calc "^9.0.1"
+ postcss-colormin "^6.1.0"
+ postcss-convert-values "^6.1.0"
+ postcss-discard-comments "^6.0.2"
+ postcss-discard-duplicates "^6.0.3"
+ postcss-discard-empty "^6.0.3"
+ postcss-discard-overridden "^6.0.2"
+ postcss-merge-longhand "^6.0.5"
+ postcss-merge-rules "^6.1.1"
+ postcss-minify-font-values "^6.1.0"
+ postcss-minify-gradients "^6.0.3"
+ postcss-minify-params "^6.1.0"
+ postcss-minify-selectors "^6.0.4"
+ postcss-normalize-charset "^6.0.2"
+ postcss-normalize-display-values "^6.0.2"
+ postcss-normalize-positions "^6.0.2"
+ postcss-normalize-repeat-style "^6.0.2"
+ postcss-normalize-string "^6.0.2"
+ postcss-normalize-timing-functions "^6.0.2"
+ postcss-normalize-unicode "^6.1.0"
+ postcss-normalize-url "^6.0.2"
+ postcss-normalize-whitespace "^6.0.2"
+ postcss-ordered-values "^6.0.2"
+ postcss-reduce-initial "^6.1.0"
+ postcss-reduce-transforms "^6.0.2"
+ postcss-svgo "^6.0.3"
+ postcss-unique-selectors "^6.0.4"
+
+cssnano-utils@^4.0.2:
+ version "4.0.2"
+ resolved "https://registry.yarnpkg.com/cssnano-utils/-/cssnano-utils-4.0.2.tgz#56f61c126cd0f11f2eef1596239d730d9fceff3c"
+ integrity sha512-ZR1jHg+wZ8o4c3zqf1SIUSTIvm/9mU343FMR6Obe/unskbvpGhZOo1J6d/r8D1pzkRQYuwbcH3hToOuoA2G7oQ==
-cssnano@^5.1.15, cssnano@^5.1.8:
- version "5.1.15"
- resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-5.1.15.tgz#ded66b5480d5127fcb44dac12ea5a983755136bf"
- integrity sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==
+cssnano@^6.0.1, cssnano@^6.1.2:
+ version "6.1.2"
+ resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-6.1.2.tgz#4bd19e505bd37ee7cf0dc902d3d869f6d79c66b8"
+ integrity sha512-rYk5UeX7VAM/u0lNqewCdasdtPK81CgX8wJFLEIXHbV2oldWRgJAsZrdhRXkV1NJzA2g850KiFm9mMU2HxNxMA==
dependencies:
- cssnano-preset-default "^5.2.14"
- lilconfig "^2.0.3"
- yaml "^1.10.2"
+ cssnano-preset-default "^6.1.2"
+ lilconfig "^3.1.1"
-csso@^4.2.0:
- version "4.2.0"
- resolved "https://registry.yarnpkg.com/csso/-/csso-4.2.0.tgz#ea3a561346e8dc9f546d6febedd50187cf389529"
- integrity sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==
+csso@^5.0.5:
+ version "5.0.5"
+ resolved "https://registry.yarnpkg.com/csso/-/csso-5.0.5.tgz#f9b7fe6cc6ac0b7d90781bb16d5e9874303e2ca6"
+ integrity sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==
dependencies:
- css-tree "^1.1.2"
+ css-tree "~2.2.0"
csstype@^3.0.2:
version "3.1.2"
@@ -4325,10 +4336,10 @@ debug@2.6.9, debug@^2.6.0:
dependencies:
ms "2.0.0"
-debug@4, debug@^4.0.0, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4:
- version "4.3.4"
- resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
- integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
+debug@4, debug@^4.0.0, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4:
+ version "4.3.5"
+ resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.5.tgz#e83444eceb9fedd4a1da56d671ae2446a01a6e1e"
+ integrity sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==
dependencies:
ms "2.1.2"
@@ -4361,10 +4372,10 @@ deep-is@^0.1.3:
resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831"
integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==
-deepmerge@^4.2.2:
- version "4.2.2"
- resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955"
- integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==
+deepmerge@^4.2.2, deepmerge@^4.3.1:
+ version "4.3.1"
+ resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a"
+ integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==
default-gateway@^6.0.3:
version "6.0.3"
@@ -4608,10 +4619,10 @@ ee-first@1.1.1:
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==
-electron-to-chromium@^1.4.535:
- version "1.4.561"
- resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.561.tgz#816f31d9ae01fe58abbf469fca7e125b16befd85"
- integrity sha512-eS5t4ulWOBfVHdq9SW2dxEaFarj1lPjvJ8PaYMOjY0DecBaj/t4ARziL2IPpDr4atyWwjLFGQ2vo/VCgQFezVQ==
+electron-to-chromium@^1.4.796:
+ version "1.4.810"
+ resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.810.tgz#7dee01b090b9e048e6db752f7b30921790230654"
+ integrity sha512-Kaxhu4T7SJGpRQx99tq216gCq2nMxJo+uuT6uzz9l8TVN2stL7M06MIIXAtr9jsrLs2Glflgf2vMQRepxawOdQ==
emittery@^0.13.1:
version "0.13.1"
@@ -4812,10 +4823,10 @@ es6-weak-map@^2.0.1:
es6-iterator "^2.0.3"
es6-symbol "^3.1.1"
-escalade@^3.1.1:
- version "3.1.1"
- resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"
- integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==
+escalade@^3.1.1, escalade@^3.1.2:
+ version "3.1.2"
+ resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27"
+ integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==
escape-goat@^4.0.0:
version "4.0.0"
@@ -5146,16 +5157,16 @@ expect@^29.0.0, expect@^29.3.1:
jest-util "^29.5.0"
express@^4.17.3:
- version "4.18.2"
- resolved "https://registry.yarnpkg.com/express/-/express-4.18.2.tgz#3fabe08296e930c796c19e3c516979386ba9fd59"
- integrity sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==
+ version "4.19.2"
+ resolved "https://registry.yarnpkg.com/express/-/express-4.19.2.tgz#e25437827a3aa7f2a827bc8171bbbb664a356465"
+ integrity sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==
dependencies:
accepts "~1.3.8"
array-flatten "1.1.1"
- body-parser "1.20.1"
+ body-parser "1.20.2"
content-disposition "0.5.4"
content-type "~1.0.4"
- cookie "0.5.0"
+ cookie "0.6.0"
cookie-signature "1.0.6"
debug "2.6.9"
depd "2.0.0"
@@ -5299,10 +5310,10 @@ filesize@^8.0.6:
resolved "https://registry.yarnpkg.com/filesize/-/filesize-8.0.7.tgz#695e70d80f4e47012c132d57a059e80c6b580bd8"
integrity sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ==
-fill-range@^7.0.1:
- version "7.0.1"
- resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40"
- integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==
+fill-range@^7.1.1:
+ version "7.1.1"
+ resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292"
+ integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==
dependencies:
to-regex-range "^5.0.1"
@@ -5400,6 +5411,14 @@ for-own@^1.0.0:
dependencies:
for-in "^1.0.1"
+foreground-child@^3.1.0:
+ version "3.2.1"
+ resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-3.2.1.tgz#767004ccf3a5b30df39bed90718bab43fe0a59f7"
+ integrity sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==
+ dependencies:
+ cross-spawn "^7.0.0"
+ signal-exit "^4.0.1"
+
fork-ts-checker-webpack-plugin@^6.5.0:
version "6.5.3"
resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.3.tgz#eda2eff6e22476a2688d10661688c47f611b37f3"
@@ -5434,7 +5453,7 @@ forwarded@0.2.0:
resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811"
integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==
-fraction.js@^4.3.6:
+fraction.js@^4.3.7:
version "4.3.7"
resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.3.7.tgz#06ca0085157e42fda7f9e726e79fefc4068840f7"
integrity sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==
@@ -5453,10 +5472,10 @@ fs-extra@^10.0.0:
jsonfile "^6.0.1"
universalify "^2.0.0"
-fs-extra@^11.1.1:
- version "11.1.1"
- resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.1.1.tgz#da69f7c39f3b002378b0954bb6ae7efdc0876e2d"
- integrity sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==
+fs-extra@^11.1.1, fs-extra@^11.2.0:
+ version "11.2.0"
+ resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.2.0.tgz#e70e17dfad64232287d01929399e0ea7c86b0e5b"
+ integrity sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==
dependencies:
graceful-fs "^4.2.0"
jsonfile "^6.0.1"
@@ -5607,6 +5626,18 @@ glob@7.1.6:
once "^1.3.0"
path-is-absolute "^1.0.0"
+glob@^10.4.2:
+ version "10.4.2"
+ resolved "https://registry.yarnpkg.com/glob/-/glob-10.4.2.tgz#bed6b95dade5c1f80b4434daced233aee76160e5"
+ integrity sha512-GwMlUF6PkPo3Gk21UxkCohOv0PLcIXVtKyLlpEI28R/cO/4eNOdmLk3CMW1wROV/WR/EsZOWAfBbBOqYvs88/w==
+ dependencies:
+ foreground-child "^3.1.0"
+ jackspeak "^3.1.2"
+ minimatch "^9.0.4"
+ minipass "^7.1.2"
+ package-json-from-dist "^1.0.0"
+ path-scurry "^1.11.1"
+
glob@^7.0.0, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.2.0:
version "7.2.3"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
@@ -5619,17 +5650,6 @@ glob@^7.0.0, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.2.0:
once "^1.3.0"
path-is-absolute "^1.0.0"
-glob@^8.0.3:
- version "8.0.3"
- resolved "https://registry.yarnpkg.com/glob/-/glob-8.0.3.tgz#415c6eb2deed9e502c68fa44a272e6da6eeca42e"
- integrity sha512-ull455NHSHI/Y1FqGaaYFaLGkNMMJbavMrEGFXG/PGrg6y7sutWHUHrz6gy6WEBH6akM1M414dWKCNs+IhKdiQ==
- dependencies:
- fs.realpath "^1.0.0"
- inflight "^1.0.4"
- inherits "2"
- minimatch "^5.0.1"
- once "^1.3.0"
-
global-dirs@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-3.0.1.tgz#0c488971f066baceda21447aecb1a8b911d22485"
@@ -6134,7 +6154,7 @@ immer@^9.0.7:
resolved "https://registry.yarnpkg.com/immer/-/immer-9.0.21.tgz#1e025ea31a40f24fb064f1fef23e931496330176"
integrity sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==
-import-fresh@^3.0.0, import-fresh@^3.1.0, import-fresh@^3.2.1:
+import-fresh@^3.0.0, import-fresh@^3.1.0, import-fresh@^3.2.1, import-fresh@^3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b"
integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==
@@ -6632,6 +6652,15 @@ iterator.prototype@^1.1.2:
reflect.getprototypeof "^1.0.4"
set-function-name "^2.0.1"
+jackspeak@^3.1.2:
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-3.4.0.tgz#a75763ff36ad778ede6a156d8ee8b124de445b4a"
+ integrity sha512-JVYhQnN59LVPFCEcVa2C3CrEKYacvjRfqIQl+h8oi91aLYQVWRYbxjPcv1bUiUy/kLmQaANrYfNMCO3kuEDHfw==
+ dependencies:
+ "@isaacs/cliui" "^8.0.2"
+ optionalDependencies:
+ "@pkgjs/parseargs" "^0.11.0"
+
jest-changed-files@^29.2.0:
version "29.2.0"
resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-29.2.0.tgz#b6598daa9803ea6a4dce7968e20ab380ddbee289"
@@ -6935,12 +6964,12 @@ jest-snapshot@^29.3.1:
pretty-format "^29.3.1"
semver "^7.3.5"
-jest-util@^29.3.1, jest-util@^29.5.0:
- version "29.5.0"
- resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.5.0.tgz#24a4d3d92fc39ce90425311b23c27a6e0ef16b8f"
- integrity sha512-RYMgG/MTadOr5t8KdhejfvUU82MxsCu5MF6KuDUHl+NuwzUt+Sm6jJWxTJVrDR1j5M/gJVCPKQEpWXY+yIQ6lQ==
+jest-util@^29.3.1, jest-util@^29.5.0, jest-util@^29.7.0:
+ version "29.7.0"
+ resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.7.0.tgz#23c2b62bfb22be82b44de98055802ff3710fc0bc"
+ integrity sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==
dependencies:
- "@jest/types" "^29.5.0"
+ "@jest/types" "^29.6.3"
"@types/node" "*"
chalk "^4.0.0"
ci-info "^3.2.0"
@@ -6982,13 +7011,13 @@ jest-worker@^27.4.5:
merge-stream "^2.0.0"
supports-color "^8.0.0"
-jest-worker@^29.1.2, jest-worker@^29.3.1:
- version "29.5.0"
- resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-29.5.0.tgz#bdaefb06811bd3384d93f009755014d8acb4615d"
- integrity sha512-NcrQnevGoSp4b5kg+akIpthoAFHxPBcb5P6mYPY0fUNT+sSvmtu6jlkEle3anczUKIKEbMxFimk9oTP/tpIPgA==
+jest-worker@^29.3.1, jest-worker@^29.4.3:
+ version "29.7.0"
+ resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-29.7.0.tgz#acad073acbbaeb7262bd5389e1bcf43e10058d4a"
+ integrity sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==
dependencies:
"@types/node" "*"
- jest-util "^29.5.0"
+ jest-util "^29.7.0"
merge-stream "^2.0.0"
supports-color "^8.0.0"
@@ -7240,10 +7269,10 @@ lie@~3.3.0:
dependencies:
immediate "~3.0.5"
-lilconfig@^2.0.3:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52"
- integrity sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==
+lilconfig@^3.1.1:
+ version "3.1.2"
+ resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-3.1.2.tgz#e4a7c3cb549e3a606c8dcc32e5ae1005e62c05cb"
+ integrity sha512-eop+wDAvpItUys0FWkHIKeC9ybYrTGbU41U5K7+bttZZeohvnY7M9dZ5kB21GNWiFT2q1OoPTvncPCgSOVO5ow==
lines-and-columns@^1.1.6:
version "1.2.4"
@@ -7382,6 +7411,11 @@ lowercase-keys@^3.0.0:
resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-3.0.0.tgz#c5e7d442e37ead247ae9db117a9d0a467c89d4f2"
integrity sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==
+lru-cache@^10.2.0:
+ version "10.2.2"
+ resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.2.2.tgz#48206bc114c1252940c41b25b41af5b545aca878"
+ integrity sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==
+
lru-cache@^5.1.1:
version "5.1.1"
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920"
@@ -7673,10 +7707,15 @@ mdast-util-to-string@^4.0.0:
dependencies:
"@types/mdast" "^4.0.0"
-mdn-data@2.0.14:
- version "2.0.14"
- resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50"
- integrity sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==
+mdn-data@2.0.28:
+ version "2.0.28"
+ resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.28.tgz#5ec48e7bef120654539069e1ae4ddc81ca490eba"
+ integrity sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==
+
+mdn-data@2.0.30:
+ version "2.0.30"
+ resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.30.tgz#ce4df6f80af6cfbe218ecd5c552ba13c4dfa08cc"
+ integrity sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==
media-typer@0.3.0:
version "0.3.0"
@@ -8197,10 +8236,10 @@ minimatch@3.1.2, minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch
dependencies:
brace-expansion "^1.1.7"
-minimatch@^5.0.1:
- version "5.1.2"
- resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.2.tgz#0939d7d6f0898acbd1508abe534d1929368a8fff"
- integrity sha512-bNH9mmM9qsJ2X4r2Nat1B//1dJVcn3+iBLa3IgqJ7EbGaDNepL9QSHOxN4ng33s52VMMhhIfgCYDk3C4ZmlDAg==
+minimatch@^9.0.4:
+ version "9.0.4"
+ resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.4.tgz#8e49c731d1749cbec05050ee5145147b32496a51"
+ integrity sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==
dependencies:
brace-expansion "^2.0.1"
@@ -8216,12 +8255,15 @@ minipass@^3.0.0:
dependencies:
yallist "^4.0.0"
-minipass@^4.0.0:
- version "4.0.0"
- resolved "https://registry.yarnpkg.com/minipass/-/minipass-4.0.0.tgz#7cebb0f9fa7d56f0c5b17853cbe28838a8dbbd3b"
- integrity sha512-g2Uuh2jEKoht+zvO6vJqXmYpflPqzRBT+Th2h01DKh5z7wbY/AZ2gCQ78cP70YoHPyFdY30YBV5WxgLOEwOykw==
- dependencies:
- yallist "^4.0.0"
+minipass@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/minipass/-/minipass-5.0.0.tgz#3e9788ffb90b694a5d0ec94479a45b5d8738133d"
+ integrity sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==
+
+"minipass@^5.0.0 || ^6.0.2 || ^7.0.0", minipass@^7.1.2:
+ version "7.1.2"
+ resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.2.tgz#93a9626ce5e5e66bd4db86849e7515e92340a707"
+ integrity sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==
minizlib@^2.1.1:
version "2.1.2"
@@ -8273,10 +8315,10 @@ mz@^2.7.0:
object-assign "^4.0.1"
thenify-all "^1.0.0"
-nanoid@^3.3.6:
- version "3.3.6"
- resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.6.tgz#443380c856d6e9f9824267d960b4236ad583ea4c"
- integrity sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==
+nanoid@^3.3.7:
+ version "3.3.7"
+ resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8"
+ integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==
natural-compare-lite@^1.4.0:
version "1.4.0"
@@ -8343,10 +8385,10 @@ node-int64@^0.4.0:
resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b"
integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==
-node-releases@^2.0.13:
- version "2.0.13"
- resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.13.tgz#d5ed1627c23e3461e819b02e57b75e4899b1c81d"
- integrity sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==
+node-releases@^2.0.14:
+ version "2.0.14"
+ resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b"
+ integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==
normalize-path@^3.0.0, normalize-path@~3.0.0:
version "3.0.0"
@@ -8358,11 +8400,6 @@ normalize-range@^0.1.2:
resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942"
integrity sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==
-normalize-url@^6.0.1:
- version "6.1.0"
- resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a"
- integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==
-
normalize-url@^8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-8.0.0.tgz#593dbd284f743e8dcf6a5ddf8fadff149c82701a"
@@ -8615,6 +8652,11 @@ p-try@^2.0.0:
resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6"
integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==
+package-json-from-dist@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz#e501cd3094b278495eb4258d4c9f6d5ac3019f00"
+ integrity sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==
+
package-json@^8.1.0:
version "8.1.1"
resolved "https://registry.yarnpkg.com/package-json/-/package-json-8.1.1.tgz#3e9948e43df40d1e8e78a85485f1070bf8f03dc8"
@@ -8737,6 +8779,14 @@ path-parse@^1.0.6, path-parse@^1.0.7:
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
+path-scurry@^1.11.1:
+ version "1.11.1"
+ resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.11.1.tgz#7960a668888594a0720b12a911d1a742ab9f11d2"
+ integrity sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==
+ dependencies:
+ lru-cache "^10.2.0"
+ minipass "^5.0.0 || ^6.0.2 || ^7.0.0"
+
path-to-regexp@0.1.7:
version "0.1.7"
resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c"
@@ -8768,10 +8818,10 @@ periscopic@^3.0.0:
estree-walker "^3.0.0"
is-reference "^3.0.0"
-picocolors@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
- integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
+picocolors@^1.0.0, picocolors@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1"
+ integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3, picomatch@^2.3.1:
version "2.3.1"
@@ -8809,58 +8859,58 @@ pkg-up@^3.1.0:
dependencies:
find-up "^3.0.0"
-postcss-calc@^8.2.3:
- version "8.2.4"
- resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-8.2.4.tgz#77b9c29bfcbe8a07ff6693dc87050828889739a5"
- integrity sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==
+postcss-calc@^9.0.1:
+ version "9.0.1"
+ resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-9.0.1.tgz#a744fd592438a93d6de0f1434c572670361eb6c6"
+ integrity sha512-TipgjGyzP5QzEhsOZUaIkeO5mKeMFpebWzRogWG/ysonUlnHcq5aJe0jOjpfzUU8PeSaBQnrE8ehR0QA5vs8PQ==
dependencies:
- postcss-selector-parser "^6.0.9"
+ postcss-selector-parser "^6.0.11"
postcss-value-parser "^4.2.0"
-postcss-colormin@^5.3.1:
- version "5.3.1"
- resolved "https://registry.yarnpkg.com/postcss-colormin/-/postcss-colormin-5.3.1.tgz#86c27c26ed6ba00d96c79e08f3ffb418d1d1988f"
- integrity sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==
+postcss-colormin@^6.1.0:
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-colormin/-/postcss-colormin-6.1.0.tgz#076e8d3fb291fbff7b10e6b063be9da42ff6488d"
+ integrity sha512-x9yX7DOxeMAR+BgGVnNSAxmAj98NX/YxEMNFP+SDCEeNLb2r3i6Hh1ksMsnW8Ub5SLCpbescQqn9YEbE9554Sw==
dependencies:
- browserslist "^4.21.4"
+ browserslist "^4.23.0"
caniuse-api "^3.0.0"
- colord "^2.9.1"
+ colord "^2.9.3"
postcss-value-parser "^4.2.0"
-postcss-convert-values@^5.1.3:
- version "5.1.3"
- resolved "https://registry.yarnpkg.com/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz#04998bb9ba6b65aa31035d669a6af342c5f9d393"
- integrity sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==
+postcss-convert-values@^6.1.0:
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-convert-values/-/postcss-convert-values-6.1.0.tgz#3498387f8efedb817cbc63901d45bd1ceaa40f48"
+ integrity sha512-zx8IwP/ts9WvUM6NkVSkiU902QZL1bwPhaVaLynPtCsOTqp+ZKbNi+s6XJg3rfqpKGA/oc7Oxk5t8pOQJcwl/w==
dependencies:
- browserslist "^4.21.4"
+ browserslist "^4.23.0"
postcss-value-parser "^4.2.0"
-postcss-discard-comments@^5.1.2:
- version "5.1.2"
- resolved "https://registry.yarnpkg.com/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz#8df5e81d2925af2780075840c1526f0660e53696"
- integrity sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==
+postcss-discard-comments@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/postcss-discard-comments/-/postcss-discard-comments-6.0.2.tgz#e768dcfdc33e0216380623652b0a4f69f4678b6c"
+ integrity sha512-65w/uIqhSBBfQmYnG92FO1mWZjJ4GL5b8atm5Yw2UgrwD7HiNiSSNwJor1eCFGzUgYnN/iIknhNRVqjrrpuglw==
-postcss-discard-duplicates@^5.1.0:
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz#9eb4fe8456706a4eebd6d3b7b777d07bad03e848"
- integrity sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==
+postcss-discard-duplicates@^6.0.3:
+ version "6.0.3"
+ resolved "https://registry.yarnpkg.com/postcss-discard-duplicates/-/postcss-discard-duplicates-6.0.3.tgz#d121e893c38dc58a67277f75bb58ba43fce4c3eb"
+ integrity sha512-+JA0DCvc5XvFAxwx6f/e68gQu/7Z9ud584VLmcgto28eB8FqSFZwtrLwB5Kcp70eIoWP/HXqz4wpo8rD8gpsTw==
-postcss-discard-empty@^5.1.1:
- version "5.1.1"
- resolved "https://registry.yarnpkg.com/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz#e57762343ff7f503fe53fca553d18d7f0c369c6c"
- integrity sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==
+postcss-discard-empty@^6.0.3:
+ version "6.0.3"
+ resolved "https://registry.yarnpkg.com/postcss-discard-empty/-/postcss-discard-empty-6.0.3.tgz#ee39c327219bb70473a066f772621f81435a79d9"
+ integrity sha512-znyno9cHKQsK6PtxL5D19Fj9uwSzC2mB74cpT66fhgOadEUPyXFkbgwm5tvc3bt3NAy8ltE5MrghxovZRVnOjQ==
-postcss-discard-overridden@^5.1.0:
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz#7e8c5b53325747e9d90131bb88635282fb4a276e"
- integrity sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==
+postcss-discard-overridden@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/postcss-discard-overridden/-/postcss-discard-overridden-6.0.2.tgz#4e9f9c62ecd2df46e8fdb44dc17e189776572e2d"
+ integrity sha512-j87xzI4LUggC5zND7KdjsI25APtyMuynXZSujByMaav2roV6OZX+8AaCUcZSWqckZpjAjRyFDdpqybgjFO0HJQ==
-postcss-discard-unused@^5.1.0:
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/postcss-discard-unused/-/postcss-discard-unused-5.1.0.tgz#8974e9b143d887677304e558c1166d3762501142"
- integrity sha512-KwLWymI9hbwXmJa0dkrzpRbSJEh0vVUd7r8t0yOGPcfKzyJJxFM8kLyC5Ev9avji6nY95pOp1W6HqIrfT+0VGw==
+postcss-discard-unused@^6.0.5:
+ version "6.0.5"
+ resolved "https://registry.yarnpkg.com/postcss-discard-unused/-/postcss-discard-unused-6.0.5.tgz#c1b0e8c032c6054c3fbd22aaddba5b248136f338"
+ integrity sha512-wHalBlRHkaNnNwfC8z+ppX57VhvS+HWgjW508esjdaEYr3Mx7Gnn2xA4R/CKf5+Z9S5qsqC+Uzh4ueENWwCVUA==
dependencies:
- postcss-selector-parser "^6.0.5"
+ postcss-selector-parser "^6.0.16"
postcss-loader@^7.3.3:
version "7.3.3"
@@ -8871,63 +8921,63 @@ postcss-loader@^7.3.3:
jiti "^1.18.2"
semver "^7.3.8"
-postcss-merge-idents@^5.1.1:
- version "5.1.1"
- resolved "https://registry.yarnpkg.com/postcss-merge-idents/-/postcss-merge-idents-5.1.1.tgz#7753817c2e0b75d0853b56f78a89771e15ca04a1"
- integrity sha512-pCijL1TREiCoog5nQp7wUe+TUonA2tC2sQ54UGeMmryK3UFGIYKqDyjnqd6RcuI4znFn9hWSLNN8xKE/vWcUQw==
+postcss-merge-idents@^6.0.3:
+ version "6.0.3"
+ resolved "https://registry.yarnpkg.com/postcss-merge-idents/-/postcss-merge-idents-6.0.3.tgz#7b9c31c7bc823c94bec50f297f04e3c2b838ea65"
+ integrity sha512-1oIoAsODUs6IHQZkLQGO15uGEbK3EAl5wi9SS8hs45VgsxQfMnxvt+L+zIr7ifZFIH14cfAeVe2uCTa+SPRa3g==
dependencies:
- cssnano-utils "^3.1.0"
+ cssnano-utils "^4.0.2"
postcss-value-parser "^4.2.0"
-postcss-merge-longhand@^5.1.7:
- version "5.1.7"
- resolved "https://registry.yarnpkg.com/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz#24a1bdf402d9ef0e70f568f39bdc0344d568fb16"
- integrity sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==
+postcss-merge-longhand@^6.0.5:
+ version "6.0.5"
+ resolved "https://registry.yarnpkg.com/postcss-merge-longhand/-/postcss-merge-longhand-6.0.5.tgz#ba8a8d473617c34a36abbea8dda2b215750a065a"
+ integrity sha512-5LOiordeTfi64QhICp07nzzuTDjNSO8g5Ksdibt44d+uvIIAE1oZdRn8y/W5ZtYgRH/lnLDlvi9F8btZcVzu3w==
dependencies:
postcss-value-parser "^4.2.0"
- stylehacks "^5.1.1"
+ stylehacks "^6.1.1"
-postcss-merge-rules@^5.1.4:
- version "5.1.4"
- resolved "https://registry.yarnpkg.com/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz#2f26fa5cacb75b1402e213789f6766ae5e40313c"
- integrity sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==
+postcss-merge-rules@^6.1.1:
+ version "6.1.1"
+ resolved "https://registry.yarnpkg.com/postcss-merge-rules/-/postcss-merge-rules-6.1.1.tgz#7aa539dceddab56019469c0edd7d22b64c3dea9d"
+ integrity sha512-KOdWF0gju31AQPZiD+2Ar9Qjowz1LTChSjFFbS+e2sFgc4uHOp3ZvVX4sNeTlk0w2O31ecFGgrFzhO0RSWbWwQ==
dependencies:
- browserslist "^4.21.4"
+ browserslist "^4.23.0"
caniuse-api "^3.0.0"
- cssnano-utils "^3.1.0"
- postcss-selector-parser "^6.0.5"
+ cssnano-utils "^4.0.2"
+ postcss-selector-parser "^6.0.16"
-postcss-minify-font-values@^5.1.0:
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz#f1df0014a726083d260d3bd85d7385fb89d1f01b"
- integrity sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==
+postcss-minify-font-values@^6.1.0:
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-minify-font-values/-/postcss-minify-font-values-6.1.0.tgz#a0e574c02ee3f299be2846369211f3b957ea4c59"
+ integrity sha512-gklfI/n+9rTh8nYaSJXlCo3nOKqMNkxuGpTn/Qm0gstL3ywTr9/WRKznE+oy6fvfolH6dF+QM4nCo8yPLdvGJg==
dependencies:
postcss-value-parser "^4.2.0"
-postcss-minify-gradients@^5.1.1:
- version "5.1.1"
- resolved "https://registry.yarnpkg.com/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz#f1fe1b4f498134a5068240c2f25d46fcd236ba2c"
- integrity sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==
+postcss-minify-gradients@^6.0.3:
+ version "6.0.3"
+ resolved "https://registry.yarnpkg.com/postcss-minify-gradients/-/postcss-minify-gradients-6.0.3.tgz#ca3eb55a7bdb48a1e187a55c6377be918743dbd6"
+ integrity sha512-4KXAHrYlzF0Rr7uc4VrfwDJ2ajrtNEpNEuLxFgwkhFZ56/7gaE4Nr49nLsQDZyUe+ds+kEhf+YAUolJiYXF8+Q==
dependencies:
- colord "^2.9.1"
- cssnano-utils "^3.1.0"
+ colord "^2.9.3"
+ cssnano-utils "^4.0.2"
postcss-value-parser "^4.2.0"
-postcss-minify-params@^5.1.4:
- version "5.1.4"
- resolved "https://registry.yarnpkg.com/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz#c06a6c787128b3208b38c9364cfc40c8aa5d7352"
- integrity sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==
+postcss-minify-params@^6.1.0:
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-minify-params/-/postcss-minify-params-6.1.0.tgz#54551dec77b9a45a29c3cb5953bf7325a399ba08"
+ integrity sha512-bmSKnDtyyE8ujHQK0RQJDIKhQ20Jq1LYiez54WiaOoBtcSuflfK3Nm596LvbtlFcpipMjgClQGyGr7GAs+H1uA==
dependencies:
- browserslist "^4.21.4"
- cssnano-utils "^3.1.0"
+ browserslist "^4.23.0"
+ cssnano-utils "^4.0.2"
postcss-value-parser "^4.2.0"
-postcss-minify-selectors@^5.2.1:
- version "5.2.1"
- resolved "https://registry.yarnpkg.com/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz#d4e7e6b46147b8117ea9325a915a801d5fe656c6"
- integrity sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==
+postcss-minify-selectors@^6.0.4:
+ version "6.0.4"
+ resolved "https://registry.yarnpkg.com/postcss-minify-selectors/-/postcss-minify-selectors-6.0.4.tgz#197f7d72e6dd19eed47916d575d69dc38b396aff"
+ integrity sha512-L8dZSwNLgK7pjTto9PzWRoMbnLq5vsZSTu8+j1P/2GB8qdtGQfn+K1uSvFgYvgh83cbyxT5m43ZZhUMTJDSClQ==
dependencies:
- postcss-selector-parser "^6.0.5"
+ postcss-selector-parser "^6.0.16"
postcss-modules-extract-imports@^3.0.0:
version "3.0.0"
@@ -8957,147 +9007,146 @@ postcss-modules-values@^4.0.0:
dependencies:
icss-utils "^5.0.0"
-postcss-normalize-charset@^5.1.0:
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz#9302de0b29094b52c259e9b2cf8dc0879879f0ed"
- integrity sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==
+postcss-normalize-charset@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-charset/-/postcss-normalize-charset-6.0.2.tgz#1ec25c435057a8001dac942942a95ffe66f721e1"
+ integrity sha512-a8N9czmdnrjPHa3DeFlwqst5eaL5W8jYu3EBbTTkI5FHkfMhFZh1EGbku6jhHhIzTA6tquI2P42NtZ59M/H/kQ==
-postcss-normalize-display-values@^5.1.0:
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz#72abbae58081960e9edd7200fcf21ab8325c3da8"
- integrity sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==
+postcss-normalize-display-values@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-display-values/-/postcss-normalize-display-values-6.0.2.tgz#54f02764fed0b288d5363cbb140d6950dbbdd535"
+ integrity sha512-8H04Mxsb82ON/aAkPeq8kcBbAtI5Q2a64X/mnRRfPXBq7XeogoQvReqxEfc0B4WPq1KimjezNC8flUtC3Qz6jg==
dependencies:
postcss-value-parser "^4.2.0"
-postcss-normalize-positions@^5.1.1:
- version "5.1.1"
- resolved "https://registry.yarnpkg.com/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz#ef97279d894087b59325b45c47f1e863daefbb92"
- integrity sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==
+postcss-normalize-positions@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-positions/-/postcss-normalize-positions-6.0.2.tgz#e982d284ec878b9b819796266f640852dbbb723a"
+ integrity sha512-/JFzI441OAB9O7VnLA+RtSNZvQ0NCFZDOtp6QPFo1iIyawyXg0YI3CYM9HBy1WvwCRHnPep/BvI1+dGPKoXx/Q==
dependencies:
postcss-value-parser "^4.2.0"
-postcss-normalize-repeat-style@^5.1.1:
- version "5.1.1"
- resolved "https://registry.yarnpkg.com/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz#e9eb96805204f4766df66fd09ed2e13545420fb2"
- integrity sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==
+postcss-normalize-repeat-style@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-6.0.2.tgz#f8006942fd0617c73f049dd8b6201c3a3040ecf3"
+ integrity sha512-YdCgsfHkJ2jEXwR4RR3Tm/iOxSfdRt7jplS6XRh9Js9PyCR/aka/FCb6TuHT2U8gQubbm/mPmF6L7FY9d79VwQ==
dependencies:
postcss-value-parser "^4.2.0"
-postcss-normalize-string@^5.1.0:
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz#411961169e07308c82c1f8c55f3e8a337757e228"
- integrity sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==
+postcss-normalize-string@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-string/-/postcss-normalize-string-6.0.2.tgz#e3cc6ad5c95581acd1fc8774b309dd7c06e5e363"
+ integrity sha512-vQZIivlxlfqqMp4L9PZsFE4YUkWniziKjQWUtsxUiVsSSPelQydwS8Wwcuw0+83ZjPWNTl02oxlIvXsmmG+CiQ==
dependencies:
postcss-value-parser "^4.2.0"
-postcss-normalize-timing-functions@^5.1.0:
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz#d5614410f8f0b2388e9f240aa6011ba6f52dafbb"
- integrity sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==
+postcss-normalize-timing-functions@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-6.0.2.tgz#40cb8726cef999de984527cbd9d1db1f3e9062c0"
+ integrity sha512-a+YrtMox4TBtId/AEwbA03VcJgtyW4dGBizPl7e88cTFULYsprgHWTbfyjSLyHeBcK/Q9JhXkt2ZXiwaVHoMzA==
dependencies:
postcss-value-parser "^4.2.0"
-postcss-normalize-unicode@^5.1.1:
- version "5.1.1"
- resolved "https://registry.yarnpkg.com/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz#f67297fca3fea7f17e0d2caa40769afc487aa030"
- integrity sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==
+postcss-normalize-unicode@^6.1.0:
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-unicode/-/postcss-normalize-unicode-6.1.0.tgz#aaf8bbd34c306e230777e80f7f12a4b7d27ce06e"
+ integrity sha512-QVC5TQHsVj33otj8/JD869Ndr5Xcc/+fwRh4HAsFsAeygQQXm+0PySrKbr/8tkDKzW+EVT3QkqZMfFrGiossDg==
dependencies:
- browserslist "^4.21.4"
+ browserslist "^4.23.0"
postcss-value-parser "^4.2.0"
-postcss-normalize-url@^5.1.0:
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz#ed9d88ca82e21abef99f743457d3729a042adcdc"
- integrity sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==
+postcss-normalize-url@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-url/-/postcss-normalize-url-6.0.2.tgz#292792386be51a8de9a454cb7b5c58ae22db0f79"
+ integrity sha512-kVNcWhCeKAzZ8B4pv/DnrU1wNh458zBNp8dh4y5hhxih5RZQ12QWMuQrDgPRw3LRl8mN9vOVfHl7uhvHYMoXsQ==
dependencies:
- normalize-url "^6.0.1"
postcss-value-parser "^4.2.0"
-postcss-normalize-whitespace@^5.1.1:
- version "5.1.1"
- resolved "https://registry.yarnpkg.com/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz#08a1a0d1ffa17a7cc6efe1e6c9da969cc4493cfa"
- integrity sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==
+postcss-normalize-whitespace@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-whitespace/-/postcss-normalize-whitespace-6.0.2.tgz#fbb009e6ebd312f8b2efb225c2fcc7cf32b400cd"
+ integrity sha512-sXZ2Nj1icbJOKmdjXVT9pnyHQKiSAyuNQHSgRCUgThn2388Y9cGVDR+E9J9iAYbSbLHI+UUwLVl1Wzco/zgv0Q==
dependencies:
postcss-value-parser "^4.2.0"
-postcss-ordered-values@^5.1.3:
- version "5.1.3"
- resolved "https://registry.yarnpkg.com/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz#b6fd2bd10f937b23d86bc829c69e7732ce76ea38"
- integrity sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==
+postcss-ordered-values@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/postcss-ordered-values/-/postcss-ordered-values-6.0.2.tgz#366bb663919707093451ab70c3f99c05672aaae5"
+ integrity sha512-VRZSOB+JU32RsEAQrO94QPkClGPKJEL/Z9PCBImXMhIeK5KAYo6slP/hBYlLgrCjFxyqvn5VC81tycFEDBLG1Q==
dependencies:
- cssnano-utils "^3.1.0"
+ cssnano-utils "^4.0.2"
postcss-value-parser "^4.2.0"
-postcss-reduce-idents@^5.2.0:
- version "5.2.0"
- resolved "https://registry.yarnpkg.com/postcss-reduce-idents/-/postcss-reduce-idents-5.2.0.tgz#c89c11336c432ac4b28792f24778859a67dfba95"
- integrity sha512-BTrLjICoSB6gxbc58D5mdBK8OhXRDqud/zodYfdSi52qvDHdMwk+9kB9xsM8yJThH/sZU5A6QVSmMmaN001gIg==
+postcss-reduce-idents@^6.0.3:
+ version "6.0.3"
+ resolved "https://registry.yarnpkg.com/postcss-reduce-idents/-/postcss-reduce-idents-6.0.3.tgz#b0d9c84316d2a547714ebab523ec7d13704cd486"
+ integrity sha512-G3yCqZDpsNPoQgbDUy3T0E6hqOQ5xigUtBQyrmq3tn2GxlyiL0yyl7H+T8ulQR6kOcHJ9t7/9H4/R2tv8tJbMA==
dependencies:
postcss-value-parser "^4.2.0"
-postcss-reduce-initial@^5.1.2:
- version "5.1.2"
- resolved "https://registry.yarnpkg.com/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz#798cd77b3e033eae7105c18c9d371d989e1382d6"
- integrity sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==
+postcss-reduce-initial@^6.1.0:
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-reduce-initial/-/postcss-reduce-initial-6.1.0.tgz#4401297d8e35cb6e92c8e9586963e267105586ba"
+ integrity sha512-RarLgBK/CrL1qZags04oKbVbrrVK2wcxhvta3GCxrZO4zveibqbRPmm2VI8sSgCXwoUHEliRSbOfpR0b/VIoiw==
dependencies:
- browserslist "^4.21.4"
+ browserslist "^4.23.0"
caniuse-api "^3.0.0"
-postcss-reduce-transforms@^5.1.0:
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz#333b70e7758b802f3dd0ddfe98bb1ccfef96b6e9"
- integrity sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==
+postcss-reduce-transforms@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/postcss-reduce-transforms/-/postcss-reduce-transforms-6.0.2.tgz#6fa2c586bdc091a7373caeee4be75a0f3e12965d"
+ integrity sha512-sB+Ya++3Xj1WaT9+5LOOdirAxP7dJZms3GRcYheSPi1PiTMigsxHAdkrbItHxwYHr4kt1zL7mmcHstgMYT+aiA==
dependencies:
postcss-value-parser "^4.2.0"
-postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4, postcss-selector-parser@^6.0.5, postcss-selector-parser@^6.0.9:
- version "6.0.13"
- resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz#d05d8d76b1e8e173257ef9d60b706a8e5e99bf1b"
- integrity sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==
+postcss-selector-parser@^6.0.11, postcss-selector-parser@^6.0.16, postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4:
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.1.0.tgz#49694cb4e7c649299fea510a29fa6577104bcf53"
+ integrity sha512-UMz42UD0UY0EApS0ZL9o1XnLhSTtvvvLe5Dc2H2O56fvRZi+KulDyf5ctDhhtYJBGKStV2FL1fy6253cmLgqVQ==
dependencies:
cssesc "^3.0.0"
util-deprecate "^1.0.2"
-postcss-sort-media-queries@^4.4.1:
- version "4.4.1"
- resolved "https://registry.yarnpkg.com/postcss-sort-media-queries/-/postcss-sort-media-queries-4.4.1.tgz#04a5a78db3921eb78f28a1a781a2e68e65258128"
- integrity sha512-QDESFzDDGKgpiIh4GYXsSy6sek2yAwQx1JASl5AxBtU1Lq2JfKBljIPNdil989NcSKRQX1ToiaKphImtBuhXWw==
+postcss-sort-media-queries@^5.2.0:
+ version "5.2.0"
+ resolved "https://registry.yarnpkg.com/postcss-sort-media-queries/-/postcss-sort-media-queries-5.2.0.tgz#4556b3f982ef27d3bac526b99b6c0d3359a6cf97"
+ integrity sha512-AZ5fDMLD8SldlAYlvi8NIqo0+Z8xnXU2ia0jxmuhxAU+Lqt9K+AlmLNJ/zWEnE9x+Zx3qL3+1K20ATgNOr3fAA==
dependencies:
- sort-css-media-queries "2.1.0"
+ sort-css-media-queries "2.2.0"
-postcss-svgo@^5.1.0:
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/postcss-svgo/-/postcss-svgo-5.1.0.tgz#0a317400ced789f233a28826e77523f15857d80d"
- integrity sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==
+postcss-svgo@^6.0.3:
+ version "6.0.3"
+ resolved "https://registry.yarnpkg.com/postcss-svgo/-/postcss-svgo-6.0.3.tgz#1d6e180d6df1fa8a3b30b729aaa9161e94f04eaa"
+ integrity sha512-dlrahRmxP22bX6iKEjOM+c8/1p+81asjKT+V5lrgOH944ryx/OHpclnIbGsKVd3uWOXFLYJwCVf0eEkJGvO96g==
dependencies:
postcss-value-parser "^4.2.0"
- svgo "^2.7.0"
+ svgo "^3.2.0"
-postcss-unique-selectors@^5.1.1:
- version "5.1.1"
- resolved "https://registry.yarnpkg.com/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz#a9f273d1eacd09e9aa6088f4b0507b18b1b541b6"
- integrity sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==
+postcss-unique-selectors@^6.0.4:
+ version "6.0.4"
+ resolved "https://registry.yarnpkg.com/postcss-unique-selectors/-/postcss-unique-selectors-6.0.4.tgz#983ab308896b4bf3f2baaf2336e14e52c11a2088"
+ integrity sha512-K38OCaIrO8+PzpArzkLKB42dSARtC2tmG6PvD4b1o1Q2E9Os8jzfWFfSy/rixsHwohtsDdFtAWGjFVFUdwYaMg==
dependencies:
- postcss-selector-parser "^6.0.5"
+ postcss-selector-parser "^6.0.16"
postcss-value-parser@^4.1.0, postcss-value-parser@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"
integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
-postcss-zindex@^5.1.0:
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/postcss-zindex/-/postcss-zindex-5.1.0.tgz#4a5c7e5ff1050bd4c01d95b1847dfdcc58a496ff"
- integrity sha512-fgFMf0OtVSBR1va1JNHYgMxYk73yhn/qb4uQDq1DLGYolz8gHCyr/sesEuGUaYs58E3ZJRcpoGuPVoB7Meiq9A==
+postcss-zindex@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/postcss-zindex/-/postcss-zindex-6.0.2.tgz#e498304b83a8b165755f53db40e2ea65a99b56e1"
+ integrity sha512-5BxW9l1evPB/4ZIc+2GobEBoKC+h8gPGCMi+jxsYvd2x0mjq7wazk6DrP71pStqxE9Foxh5TVnonbWpFZzXaYg==
-postcss@^8.4.17, postcss@^8.4.21, postcss@^8.4.26:
- version "8.4.31"
- resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.31.tgz#92b451050a9f914da6755af352bdc0192508656d"
- integrity sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==
+postcss@^8.4.21, postcss@^8.4.24, postcss@^8.4.26, postcss@^8.4.38:
+ version "8.4.38"
+ resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.38.tgz#b387d533baf2054288e337066d81c6bee9db9e0e"
+ integrity sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==
dependencies:
- nanoid "^3.3.6"
+ nanoid "^3.3.7"
picocolors "^1.0.0"
- source-map-js "^1.0.2"
+ source-map-js "^1.2.0"
prelude-ls@^1.2.1:
version "1.2.1"
@@ -9249,10 +9298,10 @@ range-parser@^1.2.1, range-parser@~1.2.1:
resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031"
integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==
-raw-body@2.5.1:
- version "2.5.1"
- resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.1.tgz#fe1b1628b181b700215e5fd42389f98b71392857"
- integrity sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==
+raw-body@2.5.2:
+ version "2.5.2"
+ resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.2.tgz#99febd83b90e08975087e8f1f9419a149366b68a"
+ integrity sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==
dependencies:
bytes "3.1.2"
http-errors "2.0.0"
@@ -9299,13 +9348,13 @@ react-dev-utils@^12.0.1:
strip-ansi "^6.0.1"
text-table "^0.2.0"
-react-dom@^18.0.0:
- version "18.2.0"
- resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.2.0.tgz#22aaf38708db2674ed9ada224ca4aa708d821e3d"
- integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==
+react-dom@^18.3.0:
+ version "18.3.1"
+ resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.3.1.tgz#c2265d79511b57d479b3dd3fdfa51536494c5cb4"
+ integrity sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==
dependencies:
loose-envify "^1.1.0"
- scheduler "^0.23.0"
+ scheduler "^0.23.2"
react-error-overlay@^6.0.11:
version "6.0.11"
@@ -9359,6 +9408,13 @@ react-loadable-ssr-addon-v5-slorber@^1.0.1:
dependencies:
"@babel/runtime" "^7.10.3"
+"react-loadable@npm:@docusaurus/react-loadable@6.0.0":
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/@docusaurus/react-loadable/-/react-loadable-6.0.0.tgz#de6c7f73c96542bd70786b8e522d535d69069dc4"
+ integrity sha512-YMMxTUQV/QFSnbgrP3tjDzLHRg7vsbMn8e9HAa8o/1iXoiomo48b7sk/kkmWEuWNDPJVlKSJRB6Y2fHqdJk+SQ==
+ dependencies:
+ "@types/react" "*"
+
react-router-config@^5.1.1:
version "5.1.1"
resolved "https://registry.yarnpkg.com/react-router-config/-/react-router-config-5.1.1.tgz#0f4263d1a80c6b2dc7b9c1902c9526478194a988"
@@ -9394,10 +9450,10 @@ react-router@5.3.4, react-router@^5.3.4:
tiny-invariant "^1.0.2"
tiny-warning "^1.0.0"
-react@^18.0.0:
- version "18.2.0"
- resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5"
- integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==
+react@^18.3.0:
+ version "18.3.1"
+ resolved "https://registry.yarnpkg.com/react/-/react-18.3.1.tgz#49ab892009c53933625bd16b2533fc754cab2891"
+ integrity sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==
dependencies:
loose-envify "^1.1.0"
@@ -9812,10 +9868,10 @@ sax@^1.2.4:
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==
-scheduler@^0.23.0:
- version "0.23.0"
- resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.0.tgz#ba8041afc3d30eb206a487b6b384002e4e61fdfe"
- integrity sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==
+scheduler@^0.23.2:
+ version "0.23.2"
+ resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.2.tgz#414ba64a3b282892e944cf2108ecc078d115cdc3"
+ integrity sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==
dependencies:
loose-envify "^1.1.0"
@@ -9837,10 +9893,10 @@ schema-utils@^3.0.0, schema-utils@^3.1.1, schema-utils@^3.2.0:
ajv "^6.12.5"
ajv-keywords "^3.5.2"
-schema-utils@^4.0.0:
- version "4.1.0"
- resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.1.0.tgz#4cff1e434c12ed39502378b9a3e24787b37df41d"
- integrity sha512-Jw+GZVbP5IggB2WAn6UHI02LBwGmsIeYN/lNbSMZyDziQ7jmtAUrqKqDja+W89YHVs+KL/3IkIMltAklqB1vAw==
+schema-utils@^4.0.0, schema-utils@^4.0.1:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.2.0.tgz#70d7c93e153a273a805801882ebd3bff20d89c8b"
+ integrity sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==
dependencies:
"@types/json-schema" "^7.0.9"
ajv "^8.9.0"
@@ -9894,11 +9950,9 @@ semver@^6.0.0, semver@^6.3.0, semver@^6.3.1:
integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==
semver@^7.0.0, semver@^7.3.2, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.4:
- version "7.5.4"
- resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e"
- integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==
- dependencies:
- lru-cache "^6.0.0"
+ version "7.6.2"
+ resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.2.tgz#1e3b34759f896e8f14d6134732ce798aeb0c6e13"
+ integrity sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==
semver@~7.3.0:
version "7.3.8"
@@ -10056,6 +10110,11 @@ signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7:
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9"
integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==
+signal-exit@^4.0.1:
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04"
+ integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==
+
signedsource@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/signedsource/-/signedsource-2.0.0.tgz#f72dc0f98f5bca2763b464a555511a84a4da8eee"
@@ -10107,6 +10166,14 @@ slash@^4.0.0:
resolved "https://registry.yarnpkg.com/slash/-/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7"
integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==
+snake-case@^3.0.4:
+ version "3.0.4"
+ resolved "https://registry.yarnpkg.com/snake-case/-/snake-case-3.0.4.tgz#4f2bbd568e9935abdfd593f34c691dadb49c452c"
+ integrity sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==
+ dependencies:
+ dot-case "^3.0.4"
+ tslib "^2.0.3"
+
sockjs@^0.3.24:
version "0.3.24"
resolved "https://registry.yarnpkg.com/sockjs/-/sockjs-0.3.24.tgz#c9bc8995f33a111bea0395ec30aa3206bdb5ccce"
@@ -10116,15 +10183,15 @@ sockjs@^0.3.24:
uuid "^8.3.2"
websocket-driver "^0.7.4"
-sort-css-media-queries@2.1.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/sort-css-media-queries/-/sort-css-media-queries-2.1.0.tgz#7c85e06f79826baabb232f5560e9745d7a78c4ce"
- integrity sha512-IeWvo8NkNiY2vVYdPa27MCQiR0MN0M80johAYFVxWWXQ44KU84WNxjslwBHmc/7ZL2ccwkM7/e6S5aiKZXm7jA==
+sort-css-media-queries@2.2.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/sort-css-media-queries/-/sort-css-media-queries-2.2.0.tgz#aa33cf4a08e0225059448b6c40eddbf9f1c8334c"
+ integrity sha512-0xtkGhWCC9MGt/EzgnvbbbKhqWjl1+/rncmhTh5qCpbYguXh6S/qwePfv/JQ8jePXXmqingylxoC49pCkSPIbA==
-source-map-js@^1.0.2:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"
- integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==
+source-map-js@^1.0.1, source-map-js@^1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.0.tgz#16b809c162517b5b8c3e7dcd315a2a5c2612b2af"
+ integrity sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==
source-map-support@0.5.13:
version "0.5.13"
@@ -10190,11 +10257,6 @@ srcset@^4.0.0:
resolved "https://registry.yarnpkg.com/srcset/-/srcset-4.0.0.tgz#336816b665b14cd013ba545b6fe62357f86e65f4"
integrity sha512-wvLeHgcVHKO8Sc/H/5lkGreJQVeYMm9rlmt8PuR1xE31rIuXhuzznUUqAt8MqLhB3MqJdFzlNAfpcWnxiFUcPw==
-stable@^0.1.8:
- version "0.1.8"
- resolved "https://registry.yarnpkg.com/stable/-/stable-0.1.8.tgz#836eb3c8382fe2936feaf544631017ce7d47a3cf"
- integrity sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==
-
stack-utils@^2.0.3:
version "2.0.6"
resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.6.tgz#aaf0748169c02fc33c8232abccf933f54a1cc34f"
@@ -10230,7 +10292,7 @@ string-length@^4.0.1:
char-regex "^1.0.2"
strip-ansi "^6.0.0"
-string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
+"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
version "4.2.3"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -10321,7 +10383,7 @@ stringify-object@^3.3.0:
is-obj "^1.0.1"
is-regexp "^1.0.0"
-strip-ansi@^6.0.0, strip-ansi@^6.0.1:
+"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -10367,13 +10429,13 @@ style-to-object@^0.4.0:
dependencies:
inline-style-parser "0.1.1"
-stylehacks@^5.1.1:
- version "5.1.1"
- resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-5.1.1.tgz#7934a34eb59d7152149fa69d6e9e56f2fc34bcc9"
- integrity sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==
+stylehacks@^6.1.1:
+ version "6.1.1"
+ resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-6.1.1.tgz#543f91c10d17d00a440430362d419f79c25545a6"
+ integrity sha512-gSTTEQ670cJNoaeIp9KX6lZmm8LJ3jPB5yJmX8Zq/wQxOsAFXV3qjWzHas3YYk1qesuVIyYWWUpZ0vSE/dTSGg==
dependencies:
- browserslist "^4.21.4"
- postcss-selector-parser "^6.0.4"
+ browserslist "^4.23.0"
+ postcss-selector-parser "^6.0.16"
sucrase@^3.31.0:
version "3.34.0"
@@ -10427,18 +10489,18 @@ svg-parser@^2.0.4:
resolved "https://registry.yarnpkg.com/svg-parser/-/svg-parser-2.0.4.tgz#fdc2e29e13951736140b76cb122c8ee6630eb6b5"
integrity sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==
-svgo@^2.7.0, svgo@^2.8.0:
- version "2.8.0"
- resolved "https://registry.yarnpkg.com/svgo/-/svgo-2.8.0.tgz#4ff80cce6710dc2795f0c7c74101e6764cfccd24"
- integrity sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==
+svgo@^3.0.2, svgo@^3.2.0:
+ version "3.3.2"
+ resolved "https://registry.yarnpkg.com/svgo/-/svgo-3.3.2.tgz#ad58002652dffbb5986fc9716afe52d869ecbda8"
+ integrity sha512-OoohrmuUlBs8B8o6MB2Aevn+pRIH9zDALSR+6hhqVfa6fRwG/Qw9VUMSMW9VNg2CFc/MTIfabtdOVl9ODIJjpw==
dependencies:
"@trysound/sax" "0.2.0"
commander "^7.2.0"
- css-select "^4.1.3"
- css-tree "^1.1.3"
- csso "^4.2.0"
+ css-select "^5.1.0"
+ css-tree "^2.3.1"
+ css-what "^6.1.0"
+ csso "^5.0.5"
picocolors "^1.0.0"
- stable "^0.1.8"
tapable@^1.0.0:
version "1.1.3"
@@ -10451,13 +10513,13 @@ tapable@^2.0.0, tapable@^2.1.1, tapable@^2.2.0:
integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==
tar@^6.1.9:
- version "6.1.13"
- resolved "https://registry.yarnpkg.com/tar/-/tar-6.1.13.tgz#46e22529000f612180601a6fe0680e7da508847b"
- integrity sha512-jdIBIN6LTIe2jqzay/2vtYLlBHa3JF42ot3h1dW8Q0PaAG4v8rm0cvpVePtau5C6OKXGGcgO9q2AMNSWxiLqKw==
+ version "6.2.1"
+ resolved "https://registry.yarnpkg.com/tar/-/tar-6.2.1.tgz#717549c541bc3c2af15751bea94b1dd068d4b03a"
+ integrity sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==
dependencies:
chownr "^2.0.0"
fs-minipass "^2.0.0"
- minipass "^4.0.0"
+ minipass "^5.0.0"
minizlib "^2.1.1"
mkdirp "^1.0.3"
yallist "^4.0.0"
@@ -10850,13 +10912,13 @@ unpipe@1.0.0, unpipe@~1.0.0:
resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"
integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==
-update-browserslist-db@^1.0.13:
- version "1.0.13"
- resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz#3c5e4f5c083661bd38ef64b6328c26ed6c8248c4"
- integrity sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==
+update-browserslist-db@^1.0.16:
+ version "1.0.16"
+ resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz#f6d489ed90fb2f07d67784eb3f53d7891f736356"
+ integrity sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==
dependencies:
- escalade "^3.1.1"
- picocolors "^1.0.0"
+ escalade "^3.1.2"
+ picocolors "^1.0.1"
update-notifier@^6.0.2:
version "6.0.2"
@@ -11024,9 +11086,9 @@ webpack-bundle-analyzer@^4.9.0:
ws "^7.3.1"
webpack-dev-middleware@^5.3.1:
- version "5.3.3"
- resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz#efae67c2793908e7311f1d9b06f2a08dcc97e51f"
- integrity sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==
+ version "5.3.4"
+ resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-5.3.4.tgz#eb7b39281cbce10e104eb2b8bf2b63fce49a3517"
+ integrity sha512-BVdTqhhs+0IfoeAf7EoH5WE+exCmqGerHfDM0IL096Px60Tq2Mn9MAbnaGUe6HiMa41KMCYF19gyzZmBcq/o4Q==
dependencies:
colorette "^2.0.10"
memfs "^3.4.3"
@@ -11079,7 +11141,7 @@ webpack-merge@^5.7.3, webpack-merge@^5.9.0:
flat "^5.0.2"
wildcard "^2.0.0"
-webpack-sources@^3.2.2, webpack-sources@^3.2.3:
+webpack-sources@^3.2.3:
version "3.2.3"
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde"
integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==
@@ -11226,7 +11288,7 @@ word-wrap@^1.2.3:
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34"
integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==
-wrap-ansi@^7.0.0:
+"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@7.0.0, wrap-ansi@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -11273,9 +11335,9 @@ ws@>=8.14.2, ws@^8.13.0:
integrity sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==
ws@^7.3.1:
- version "7.5.9"
- resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591"
- integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==
+ version "7.5.10"
+ resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.10.tgz#58b5c20dc281633f6c19113f39b349bd8bd558d9"
+ integrity sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==
xdg-basedir@^5.0.1, xdg-basedir@^5.1.0:
version "5.1.0"
@@ -11304,7 +11366,7 @@ yallist@^4.0.0:
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
-yaml@^1.10.0, yaml@^1.10.2, yaml@^1.7.2:
+yaml@^1.7.2:
version "1.10.2"
resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b"
integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==
diff --git a/yoga/YGMacros.h b/yoga/YGMacros.h
index 6d1becce77..a2b6d60efc 100644
--- a/yoga/YGMacros.h
+++ b/yoga/YGMacros.h
@@ -35,6 +35,12 @@
#define YG_EXPORT
#endif
+#ifdef __OBJC__
+#if __has_include()
+#import
+#endif
+#endif
+
#ifdef NS_ENUM
// Cannot use NSInteger as NSInteger has a different size than int (which is the
// default type of a enum). Therefor when linking the Yoga C library into obj-c
diff --git a/yoga/YGNodeStyle.cpp b/yoga/YGNodeStyle.cpp
index d8454053de..d14d70930f 100644
--- a/yoga/YGNodeStyle.cpp
+++ b/yoga/YGNodeStyle.cpp
@@ -267,6 +267,11 @@ void YGNodeStyleSetGap(
node, scopedEnum(gutter), value::points(gapLength));
}
+void YGNodeStyleSetGapPercent(YGNodeRef node, YGGutter gutter, float percent) {
+ updateStyle<&Style::gap, &Style::setGap>(
+ node, scopedEnum(gutter), value::percent(percent));
+}
+
float YGNodeStyleGetGap(const YGNodeConstRef node, const YGGutter gutter) {
auto gapLength = resolveRef(node)->style().gap(scopedEnum(gutter));
if (gapLength.isUndefined() || gapLength.isAuto()) {
diff --git a/yoga/YGNodeStyle.h b/yoga/YGNodeStyle.h
index 09727087ba..2934194f85 100644
--- a/yoga/YGNodeStyle.h
+++ b/yoga/YGNodeStyle.h
@@ -89,6 +89,8 @@ YG_EXPORT float YGNodeStyleGetBorder(YGNodeConstRef node, YGEdge edge);
YG_EXPORT void
YGNodeStyleSetGap(YGNodeRef node, YGGutter gutter, float gapLength);
+YG_EXPORT void
+YGNodeStyleSetGapPercent(YGNodeRef node, YGGutter gutter, float gapLength);
YG_EXPORT float YGNodeStyleGetGap(YGNodeConstRef node, YGGutter gutter);
YG_EXPORT void YGNodeStyleSetWidth(YGNodeRef node, float width);
diff --git a/yoga/algorithm/AbsoluteLayout.cpp b/yoga/algorithm/AbsoluteLayout.cpp
index 32a13c9d43..d68b4fa91c 100644
--- a/yoga/algorithm/AbsoluteLayout.cpp
+++ b/yoga/algorithm/AbsoluteLayout.cpp
@@ -342,6 +342,7 @@ void layoutAbsoluteChild(
childWidth = boundAxis(
child,
FlexDirection::Row,
+ direction,
childWidth,
containingBlockWidth,
containingBlockWidth);
@@ -373,6 +374,7 @@ void layoutAbsoluteChild(
childHeight = boundAxis(
child,
FlexDirection::Column,
+ direction,
childHeight,
containingBlockHeight,
containingBlockWidth);
@@ -472,7 +474,7 @@ void layoutAbsoluteChild(
containingBlockHeight);
}
-void layoutAbsoluteDescendants(
+bool layoutAbsoluteDescendants(
yoga::Node* containingNode,
yoga::Node* currentNode,
SizingMode widthSizingMode,
@@ -484,6 +486,7 @@ void layoutAbsoluteDescendants(
float currentNodeTopOffsetFromContainingBlock,
float containingNodeAvailableInnerWidth,
float containingNodeAvailableInnerHeight) {
+ bool hasNewLayout = false;
for (auto child : currentNode->getChildren()) {
if (child->style().display() == Display::None) {
continue;
@@ -512,6 +515,8 @@ void layoutAbsoluteDescendants(
currentDepth,
generationCount);
+ hasNewLayout = hasNewLayout || child->getHasNewLayout();
+
/*
* At this point the child has its position set but only on its the
* parent's flexStart edge. Additionally, this position should be
@@ -569,6 +574,13 @@ void layoutAbsoluteDescendants(
} else if (
child->style().positionType() == PositionType::Static &&
!child->alwaysFormsContainingBlock()) {
+ // We may write new layout results for absolute descendants of "child"
+ // which are positioned relative to the current containing block instead
+ // of their parent. "child" may not be dirty, or have new constraints, so
+ // absolute positioning may be the first time during this layout pass that
+ // we need to mutate these descendents. Make sure the path of
+ // nodes to them is mutable before positioning.
+ child->cloneChildrenIfNeeded();
const Direction childDirection =
child->resolveDirection(currentNodeDirection);
// By now all descendants of the containing block that are not absolute
@@ -580,19 +592,25 @@ void layoutAbsoluteDescendants(
currentNodeTopOffsetFromContainingBlock +
child->getLayout().position(PhysicalEdge::Top);
- layoutAbsoluteDescendants(
- containingNode,
- child,
- widthSizingMode,
- childDirection,
- layoutMarkerData,
- currentDepth + 1,
- generationCount,
- childLeftOffsetFromContainingBlock,
- childTopOffsetFromContainingBlock,
- containingNodeAvailableInnerWidth,
- containingNodeAvailableInnerHeight);
+ hasNewLayout = hasNewLayout ||
+ layoutAbsoluteDescendants(
+ containingNode,
+ child,
+ widthSizingMode,
+ childDirection,
+ layoutMarkerData,
+ currentDepth + 1,
+ generationCount,
+ childLeftOffsetFromContainingBlock,
+ childTopOffsetFromContainingBlock,
+ containingNodeAvailableInnerWidth,
+ containingNodeAvailableInnerHeight);
+
+ if (hasNewLayout) {
+ child->setHasNewLayout(hasNewLayout);
+ }
}
}
+ return hasNewLayout;
}
} // namespace facebook::yoga
diff --git a/yoga/algorithm/AbsoluteLayout.h b/yoga/algorithm/AbsoluteLayout.h
index ae84e6da9f..584a586a04 100644
--- a/yoga/algorithm/AbsoluteLayout.h
+++ b/yoga/algorithm/AbsoluteLayout.h
@@ -24,7 +24,8 @@ void layoutAbsoluteChild(
uint32_t depth,
uint32_t generationCount);
-void layoutAbsoluteDescendants(
+// Returns if some absolute descendant has new layout
+bool layoutAbsoluteDescendants(
yoga::Node* containingNode,
yoga::Node* currentNode,
SizingMode widthSizingMode,
diff --git a/yoga/algorithm/Align.h b/yoga/algorithm/Align.h
index e9ab6df3b7..ac4dfcde91 100644
--- a/yoga/algorithm/Align.h
+++ b/yoga/algorithm/Align.h
@@ -26,4 +26,47 @@ inline Align resolveChildAlignment(
return align;
}
+/**
+ * Fallback alignment to use on overflow
+ * https://www.w3.org/TR/css-align-3/#distribution-values
+ */
+constexpr Align fallbackAlignment(Align align) {
+ switch (align) {
+ // Fallback to flex-start
+ case Align::SpaceBetween:
+ case Align::Stretch:
+ return Align::FlexStart;
+
+ // Fallback to safe center. TODO: This should be aligned to Start
+ // instead of FlexStart (for row-reverse containers)
+ case Align::SpaceAround:
+ case Align::SpaceEvenly:
+ return Align::FlexStart;
+ default:
+ return align;
+ }
+}
+
+/**
+ * Fallback alignment to use on overflow
+ * https://www.w3.org/TR/css-align-3/#distribution-values
+ */
+constexpr Justify fallbackAlignment(Justify align) {
+ switch (align) {
+ // Fallback to flex-start
+ case Justify::SpaceBetween:
+ // TODO: Support `justify-content: stretch`
+ // case Justify::Stretch:
+ return Justify::FlexStart;
+
+ // Fallback to safe center. TODO: This should be aligned to Start
+ // instead of FlexStart (for row-reverse containers)
+ case Justify::SpaceAround:
+ case Justify::SpaceEvenly:
+ return Justify::FlexStart;
+ default:
+ return align;
+ }
+}
+
} // namespace facebook::yoga
diff --git a/yoga/algorithm/BoundAxis.h b/yoga/algorithm/BoundAxis.h
index 482a73742d..dee062a00b 100644
--- a/yoga/algorithm/BoundAxis.h
+++ b/yoga/algorithm/BoundAxis.h
@@ -19,13 +19,12 @@ namespace facebook::yoga {
inline float paddingAndBorderForAxis(
const yoga::Node* const node,
const FlexDirection axis,
+ const Direction direction,
const float widthSize) {
- // The total padding/border for a given axis does not depend on the direction
- // so hardcoding LTR here to avoid piping direction to this function
return node->style().computeInlineStartPaddingAndBorder(
- axis, Direction::LTR, widthSize) +
+ axis, direction, widthSize) +
node->style().computeInlineEndPaddingAndBorder(
- axis, Direction::LTR, widthSize);
+ axis, direction, widthSize);
}
inline FloatOptional boundAxisWithinMinAndMax(
@@ -60,13 +59,14 @@ inline FloatOptional boundAxisWithinMinAndMax(
inline float boundAxis(
const yoga::Node* const node,
const FlexDirection axis,
+ const Direction direction,
const float value,
const float axisSize,
const float widthSize) {
return yoga::maxOrDefined(
boundAxisWithinMinAndMax(node, axis, FloatOptional{value}, axisSize)
.unwrap(),
- paddingAndBorderForAxis(node, axis, widthSize));
+ paddingAndBorderForAxis(node, axis, direction, widthSize));
}
} // namespace facebook::yoga
diff --git a/yoga/algorithm/CalculateLayout.cpp b/yoga/algorithm/CalculateLayout.cpp
index 19cf4a2359..8db5fa41de 100644
--- a/yoga/algorithm/CalculateLayout.cpp
+++ b/yoga/algorithm/CalculateLayout.cpp
@@ -97,23 +97,25 @@ static void computeFlexBasisForChild(
(child->getConfig()->isExperimentalFeatureEnabled(
ExperimentalFeature::WebFlexBasis) &&
child->getLayout().computedFlexBasisGeneration != generationCount)) {
- const FloatOptional paddingAndBorder =
- FloatOptional(paddingAndBorderForAxis(child, mainAxis, ownerWidth));
+ const FloatOptional paddingAndBorder = FloatOptional(
+ paddingAndBorderForAxis(child, mainAxis, direction, ownerWidth));
child->setLayoutComputedFlexBasis(
yoga::maxOrDefined(resolvedFlexBasis, paddingAndBorder));
}
} else if (isMainAxisRow && isRowStyleDimDefined) {
// The width is definite, so use that as the flex basis.
- const FloatOptional paddingAndBorder = FloatOptional(
- paddingAndBorderForAxis(child, FlexDirection::Row, ownerWidth));
+ const FloatOptional paddingAndBorder =
+ FloatOptional(paddingAndBorderForAxis(
+ child, FlexDirection::Row, direction, ownerWidth));
child->setLayoutComputedFlexBasis(yoga::maxOrDefined(
child->getResolvedDimension(Dimension::Width).resolve(ownerWidth),
paddingAndBorder));
} else if (!isMainAxisRow && isColumnStyleDimDefined) {
// The height is definite, so use that as the flex basis.
- const FloatOptional paddingAndBorder = FloatOptional(
- paddingAndBorderForAxis(child, FlexDirection::Column, ownerWidth));
+ const FloatOptional paddingAndBorder =
+ FloatOptional(paddingAndBorderForAxis(
+ child, FlexDirection::Column, direction, ownerWidth));
child->setLayoutComputedFlexBasis(yoga::maxOrDefined(
child->getResolvedDimension(Dimension::Height).resolve(ownerHeight),
paddingAndBorder));
@@ -244,13 +246,14 @@ static void computeFlexBasisForChild(
child->setLayoutComputedFlexBasis(FloatOptional(yoga::maxOrDefined(
child->getLayout().measuredDimension(dimension(mainAxis)),
- paddingAndBorderForAxis(child, mainAxis, ownerWidth))));
+ paddingAndBorderForAxis(child, mainAxis, direction, ownerWidth))));
}
child->setLayoutComputedFlexBasisGeneration(generationCount);
}
static void measureNodeWithMeasureFunc(
yoga::Node* const node,
+ const Direction direction,
float availableWidth,
float availableHeight,
const SizingMode widthSizingMode,
@@ -292,12 +295,18 @@ static void measureNodeWithMeasureFunc(
// Don't bother sizing the text if both dimensions are already defined.
node->setLayoutMeasuredDimension(
boundAxis(
- node, FlexDirection::Row, availableWidth, ownerWidth, ownerWidth),
+ node,
+ FlexDirection::Row,
+ direction,
+ availableWidth,
+ ownerWidth,
+ ownerWidth),
Dimension::Width);
node->setLayoutMeasuredDimension(
boundAxis(
node,
FlexDirection::Column,
+ direction,
availableHeight,
ownerHeight,
ownerWidth),
@@ -330,6 +339,7 @@ static void measureNodeWithMeasureFunc(
boundAxis(
node,
FlexDirection::Row,
+ direction,
(widthSizingMode == SizingMode::MaxContent ||
widthSizingMode == SizingMode::FitContent)
? measuredSize.width + paddingAndBorderAxisRow
@@ -342,6 +352,7 @@ static void measureNodeWithMeasureFunc(
boundAxis(
node,
FlexDirection::Column,
+ direction,
(heightSizingMode == SizingMode::MaxContent ||
heightSizingMode == SizingMode::FitContent)
? measuredSize.height + paddingAndBorderAxisColumn
@@ -356,6 +367,7 @@ static void measureNodeWithMeasureFunc(
// or the minimum size as indicated by the padding and border sizes.
static void measureNodeWithoutChildren(
yoga::Node* const node,
+ const Direction direction,
const float availableWidth,
const float availableHeight,
const SizingMode widthSizingMode,
@@ -372,7 +384,8 @@ static void measureNodeWithoutChildren(
layout.border(PhysicalEdge::Left) + layout.border(PhysicalEdge::Right);
}
node->setLayoutMeasuredDimension(
- boundAxis(node, FlexDirection::Row, width, ownerWidth, ownerWidth),
+ boundAxis(
+ node, FlexDirection::Row, direction, width, ownerWidth, ownerWidth),
Dimension::Width);
float height = availableHeight;
@@ -383,12 +396,19 @@ static void measureNodeWithoutChildren(
layout.border(PhysicalEdge::Top) + layout.border(PhysicalEdge::Bottom);
}
node->setLayoutMeasuredDimension(
- boundAxis(node, FlexDirection::Column, height, ownerHeight, ownerWidth),
+ boundAxis(
+ node,
+ FlexDirection::Column,
+ direction,
+ height,
+ ownerHeight,
+ ownerWidth),
Dimension::Height);
}
static bool measureNodeWithFixedSize(
yoga::Node* const node,
+ const Direction direction,
const float availableWidth,
const float availableHeight,
const SizingMode widthSizingMode,
@@ -405,6 +425,7 @@ static bool measureNodeWithFixedSize(
boundAxis(
node,
FlexDirection::Row,
+ direction,
yoga::isUndefined(availableWidth) ||
(widthSizingMode == SizingMode::FitContent &&
availableWidth < 0.0f)
@@ -418,6 +439,7 @@ static bool measureNodeWithFixedSize(
boundAxis(
node,
FlexDirection::Column,
+ direction,
yoga::isUndefined(availableHeight) ||
(heightSizingMode == SizingMode::FitContent &&
availableHeight < 0.0f)
@@ -523,12 +545,8 @@ static float computeFlexBasisForChildren(
if (performLayout) {
// Set the initial position (relative to the owner).
const Direction childDirection = child->resolveDirection(direction);
- const float mainDim =
- isRow(mainAxis) ? availableInnerWidth : availableInnerHeight;
- const float crossDim =
- isRow(mainAxis) ? availableInnerHeight : availableInnerWidth;
child->setPosition(
- childDirection, mainDim, crossDim, availableInnerWidth);
+ childDirection, availableInnerWidth, availableInnerHeight);
}
if (child->style().positionType() == PositionType::Absolute) {
@@ -619,6 +637,7 @@ static float distributeFreeSpaceSecondPass(
updatedMainSize = boundAxis(
currentLineChild,
mainAxis,
+ direction,
childSize,
availableInnerMainDim,
availableInnerWidth);
@@ -633,6 +652,7 @@ static float distributeFreeSpaceSecondPass(
updatedMainSize = boundAxis(
currentLineChild,
mainAxis,
+ direction,
childFlexBasis +
flexLine.layout.remainingFreeSpace /
flexLine.layout.totalFlexGrowFactors * flexGrowFactor,
@@ -756,6 +776,7 @@ static float distributeFreeSpaceSecondPass(
// is removed from the remaingfreespace.
static void distributeFreeSpaceFirstPass(
FlexLine& flexLine,
+ const Direction direction,
const FlexDirection mainAxis,
const float mainAxisownerSize,
const float availableInnerMainDim,
@@ -788,6 +809,7 @@ static void distributeFreeSpaceFirstPass(
boundMainSize = boundAxis(
currentLineChild,
mainAxis,
+ direction,
baseMainSize,
availableInnerMainDim,
availableInnerWidth);
@@ -816,6 +838,7 @@ static void distributeFreeSpaceFirstPass(
boundMainSize = boundAxis(
currentLineChild,
mainAxis,
+ direction,
baseMainSize,
availableInnerMainDim,
availableInnerWidth);
@@ -878,6 +901,7 @@ static void resolveFlexibleLength(
// First pass: detect the flex items whose min/max constraints trigger
distributeFreeSpaceFirstPass(
flexLine,
+ direction,
mainAxis,
mainAxisownerSize,
availableInnerMainDim,
@@ -929,7 +953,8 @@ static void justifyMainAxis(
node->style().computeFlexEndPaddingAndBorder(
mainAxis, direction, ownerWidth);
- const float gap = node->style().computeGapForAxis(mainAxis);
+ const float gap =
+ node->style().computeGapForAxis(mainAxis, availableInnerMainDim);
// If we are using "at most" rules in the main axis, make sure that
// remainingFreeSpace is 0 when min main dimension is not given
if (sizingModeMainDim == SizingMode::FitContent &&
@@ -958,27 +983,16 @@ static void justifyMainAxis(
}
}
- int numberOfAutoMarginsOnCurrentLine = 0;
- for (size_t i = startOfLineIndex; i < flexLine.endOfLineIndex; i++) {
- auto child = node->getChild(i);
- if (child->style().positionType() != PositionType::Absolute) {
- if (child->style().flexStartMarginIsAuto(mainAxis, direction)) {
- numberOfAutoMarginsOnCurrentLine++;
- }
- if (child->style().flexEndMarginIsAuto(mainAxis, direction)) {
- numberOfAutoMarginsOnCurrentLine++;
- }
- }
- }
-
// In order to position the elements in the main axis, we have two controls.
// The space between the beginning and the first element and the space between
// each two elements.
float leadingMainDim = 0;
float betweenMainDim = gap;
- const Justify justifyContent = node->style().justifyContent();
+ const Justify justifyContent = flexLine.layout.remainingFreeSpace >= 0
+ ? node->style().justifyContent()
+ : fallbackAlignment(node->style().justifyContent());
- if (numberOfAutoMarginsOnCurrentLine == 0) {
+ if (flexLine.numberOfAutoMargins == 0) {
switch (justifyContent) {
case Justify::Center:
leadingMainDim = flexLine.layout.remainingFreeSpace / 2;
@@ -988,8 +1002,7 @@ static void justifyMainAxis(
break;
case Justify::SpaceBetween:
if (flexLine.itemsInFlow.size() > 1) {
- betweenMainDim +=
- yoga::maxOrDefined(flexLine.layout.remainingFreeSpace, 0.0f) /
+ betweenMainDim += flexLine.layout.remainingFreeSpace /
static_cast(flexLine.itemsInFlow.size() - 1);
}
break;
@@ -1042,9 +1055,10 @@ static void justifyMainAxis(
// We need to do that only for relative elements. Absolute elements do not
// take part in that phase.
if (childStyle.positionType() != PositionType::Absolute) {
- if (child->style().flexStartMarginIsAuto(mainAxis, direction)) {
+ if (child->style().flexStartMarginIsAuto(mainAxis, direction) &&
+ flexLine.layout.remainingFreeSpace > 0.0f) {
flexLine.layout.mainDim += flexLine.layout.remainingFreeSpace /
- static_cast(numberOfAutoMarginsOnCurrentLine);
+ static_cast(flexLine.numberOfAutoMargins);
}
if (performLayout) {
@@ -1058,9 +1072,10 @@ static void justifyMainAxis(
flexLine.layout.mainDim += betweenMainDim;
}
- if (child->style().flexEndMarginIsAuto(mainAxis, direction)) {
+ if (child->style().flexEndMarginIsAuto(mainAxis, direction) &&
+ flexLine.layout.remainingFreeSpace > 0.0f) {
flexLine.layout.mainDim += flexLine.layout.remainingFreeSpace /
- static_cast(numberOfAutoMarginsOnCurrentLine);
+ static_cast(flexLine.numberOfAutoMargins);
}
bool canSkipFlex =
!performLayout && sizingModeCrossDim == SizingMode::StretchFit;
@@ -1270,6 +1285,7 @@ static void calculateLayoutImpl(
if (node->hasMeasureFunc()) {
measureNodeWithMeasureFunc(
node,
+ direction,
availableWidth - marginAxisRow,
availableHeight - marginAxisColumn,
widthSizingMode,
@@ -1285,6 +1301,7 @@ static void calculateLayoutImpl(
if (childCount == 0) {
measureNodeWithoutChildren(
node,
+ direction,
availableWidth - marginAxisRow,
availableHeight - marginAxisColumn,
widthSizingMode,
@@ -1299,6 +1316,7 @@ static void calculateLayoutImpl(
if (!performLayout &&
measureNodeWithFixedSize(
node,
+ direction,
availableWidth - marginAxisRow,
availableHeight - marginAxisColumn,
widthSizingMode,
@@ -1325,9 +1343,9 @@ static void calculateLayoutImpl(
const float crossAxisownerSize = isMainAxisRow ? ownerHeight : ownerWidth;
const float paddingAndBorderAxisMain =
- paddingAndBorderForAxis(node, mainAxis, ownerWidth);
+ paddingAndBorderForAxis(node, mainAxis, direction, ownerWidth);
const float paddingAndBorderAxisCross =
- paddingAndBorderForAxis(node, crossAxis, ownerWidth);
+ paddingAndBorderForAxis(node, crossAxis, direction, ownerWidth);
const float leadingPaddingAndBorderCross =
node->style().computeFlexStartPaddingAndBorder(
crossAxis, direction, ownerWidth);
@@ -1380,7 +1398,8 @@ static void calculateLayoutImpl(
generationCount);
if (childCount > 1) {
- totalMainDim += node->style().computeGapForAxis(mainAxis) *
+ totalMainDim +=
+ node->style().computeGapForAxis(mainAxis, availableInnerMainDim) *
static_cast(childCount - 1);
}
@@ -1404,7 +1423,8 @@ static void calculateLayoutImpl(
// Accumulated cross dimensions of all lines so far.
float totalLineCrossDim = 0;
- const float crossAxisGap = node->style().computeGapForAxis(crossAxis);
+ const float crossAxisGap =
+ node->style().computeGapForAxis(crossAxis, availableInnerCrossDim);
// Max main dimension of all the lines.
float maxLineMainDim = 0;
@@ -1546,6 +1566,7 @@ static void calculateLayoutImpl(
boundAxis(
node,
crossAxis,
+ direction,
flexLine.layout.crossDim + paddingAndBorderAxisCross,
crossAxisownerSize,
ownerWidth) -
@@ -1566,6 +1587,7 @@ static void calculateLayoutImpl(
boundAxis(
node,
crossAxis,
+ direction,
flexLine.layout.crossDim + paddingAndBorderAxisCross,
crossAxisownerSize,
ownerWidth) -
@@ -1740,33 +1762,22 @@ static void calculateLayoutImpl(
.unwrap()
: totalLineCrossDim + paddingAndBorderAxisCross;
- const float innerCrossDim =
- boundAxis(node, crossAxis, unclampedCrossDim, ownerHeight, ownerWidth) -
+ const float innerCrossDim = boundAxis(
+ node,
+ crossAxis,
+ direction,
+ unclampedCrossDim,
+ ownerHeight,
+ ownerWidth) -
paddingAndBorderAxisCross;
const float remainingAlignContentDim = innerCrossDim - totalLineCrossDim;
- // Apply fallback alignments on overflow
- // https://www.w3.org/TR/css-align-3/#distribution-values
- const auto appliedAlignContent =
- remainingAlignContentDim >= 0 ? node->style().alignContent() : [&]() {
- switch (node->style().alignContent()) {
- // Fallback to flex-start
- case Align::SpaceBetween:
- case Align::Stretch:
- return Align::FlexStart;
-
- // Fallback to safe center. TODO: This should be aligned to Start
- // instead of FlexStart (for row-reverse containers)
- case Align::SpaceAround:
- case Align::SpaceEvenly:
- return Align::FlexStart;
- default:
- return node->style().alignContent();
- }
- }();
+ const auto alignContent = remainingAlignContentDim >= 0
+ ? node->style().alignContent()
+ : fallbackAlignment(node->style().alignContent());
- switch (appliedAlignContent) {
+ switch (alignContent) {
case Align::FlexEnd:
currentLead += remainingAlignContentDim;
break;
@@ -1958,6 +1969,7 @@ static void calculateLayoutImpl(
boundAxis(
node,
FlexDirection::Row,
+ direction,
availableWidth - marginAxisRow,
ownerWidth,
ownerWidth),
@@ -1967,6 +1979,7 @@ static void calculateLayoutImpl(
boundAxis(
node,
FlexDirection::Column,
+ direction,
availableHeight - marginAxisColumn,
ownerHeight,
ownerWidth),
@@ -1981,7 +1994,12 @@ static void calculateLayoutImpl(
// doesn't go below the padding and border amount.
node->setLayoutMeasuredDimension(
boundAxis(
- node, mainAxis, maxLineMainDim, mainAxisownerSize, ownerWidth),
+ node,
+ mainAxis,
+ direction,
+ maxLineMainDim,
+ mainAxisownerSize,
+ ownerWidth),
dimension(mainAxis));
} else if (
@@ -2010,6 +2028,7 @@ static void calculateLayoutImpl(
boundAxis(
node,
crossAxis,
+ direction,
totalLineCrossDim + paddingAndBorderAxisCross,
crossAxisownerSize,
ownerWidth),
@@ -2121,6 +2140,7 @@ bool calculateLayoutInternal(
const bool needToVisitNode =
(node->isDirty() && layout->generationCount != generationCount) ||
+ layout->configVersion != node->getConfig()->getVersion() ||
layout->lastOwnerDirection != ownerDirection;
if (needToVisitNode) {
@@ -2236,6 +2256,7 @@ bool calculateLayoutInternal(
reason);
layout->lastOwnerDirection = ownerDirection;
+ layout->configVersion = node->getConfig()->getVersion();
if (cachedResults == nullptr) {
layoutMarkerData.maxMeasureCache = std::max(
@@ -2365,8 +2386,7 @@ void calculateLayout(
markerData,
0, // tree root
gCurrentGenerationCount.load(std::memory_order_relaxed))) {
- node->setPosition(
- node->getLayout().direction(), ownerWidth, ownerHeight, ownerWidth);
+ node->setPosition(node->getLayout().direction(), ownerWidth, ownerHeight);
roundLayoutResultsToPixelGrid(node, 0.0f, 0.0f);
}
diff --git a/yoga/algorithm/FlexLine.cpp b/yoga/algorithm/FlexLine.cpp
index 1fe3e48692..d3a954caaf 100644
--- a/yoga/algorithm/FlexLine.cpp
+++ b/yoga/algorithm/FlexLine.cpp
@@ -27,6 +27,7 @@ FlexLine calculateFlexLine(
float sizeConsumed = 0.0f;
float totalFlexGrowFactors = 0.0f;
float totalFlexShrinkScaledFactors = 0.0f;
+ size_t numberOfAutoMargins = 0;
size_t endOfLineIndex = startOfLineIndex;
size_t firstElementInLineIndex = startOfLineIndex;
@@ -34,7 +35,8 @@ FlexLine calculateFlexLine(
const FlexDirection mainAxis = resolveDirection(
node->style().flexDirection(), node->resolveDirection(ownerDirection));
const bool isNodeFlexWrap = node->style().flexWrap() != Wrap::NoWrap;
- const float gap = node->style().computeGapForAxis(mainAxis);
+ const float gap =
+ node->style().computeGapForAxis(mainAxis, availableInnerMainDim);
// Add items to the current line until it's full or we run out of items.
for (; endOfLineIndex < node->getChildren().size(); endOfLineIndex++) {
@@ -48,6 +50,13 @@ FlexLine calculateFlexLine(
continue;
}
+ if (child->style().flexStartMarginIsAuto(mainAxis, ownerDirection)) {
+ numberOfAutoMargins++;
+ }
+ if (child->style().flexEndMarginIsAuto(mainAxis, ownerDirection)) {
+ numberOfAutoMargins++;
+ }
+
const bool isFirstElementInLine =
(endOfLineIndex - firstElementInLineIndex) == 0;
@@ -101,10 +110,11 @@ FlexLine calculateFlexLine(
}
return FlexLine{
- std::move(itemsInFlow),
- sizeConsumed,
- endOfLineIndex,
- FlexLineRunningLayout{
+ .itemsInFlow = std::move(itemsInFlow),
+ .sizeConsumed = sizeConsumed,
+ .endOfLineIndex = endOfLineIndex,
+ .numberOfAutoMargins = numberOfAutoMargins,
+ .layout = FlexLineRunningLayout{
totalFlexGrowFactors,
totalFlexShrinkScaledFactors,
}};
diff --git a/yoga/algorithm/FlexLine.h b/yoga/algorithm/FlexLine.h
index 0f888be507..3287cd6cf4 100644
--- a/yoga/algorithm/FlexLine.h
+++ b/yoga/algorithm/FlexLine.h
@@ -52,6 +52,9 @@ struct FlexLine {
// The index of the first item beyond the current line.
const size_t endOfLineIndex{0};
+ // Number of edges along the line flow with an auto margin.
+ const size_t numberOfAutoMargins{0};
+
// Layout information about the line computed in steps after line-breaking
FlexLineRunningLayout layout{};
};
diff --git a/yoga/config/Config.cpp b/yoga/config/Config.cpp
index 881a377360..0f5fb019cb 100644
--- a/yoga/config/Config.cpp
+++ b/yoga/config/Config.cpp
@@ -31,7 +31,10 @@ bool Config::useWebDefaults() const {
void Config::setExperimentalFeatureEnabled(
ExperimentalFeature feature,
bool enabled) {
- experimentalFeatures_.set(static_cast(feature), enabled);
+ if (isExperimentalFeatureEnabled(feature) != enabled) {
+ experimentalFeatures_.set(static_cast(feature), enabled);
+ version_++;
+ }
}
bool Config::isExperimentalFeatureEnabled(ExperimentalFeature feature) const {
@@ -43,15 +46,24 @@ ExperimentalFeatureSet Config::getEnabledExperiments() const {
}
void Config::setErrata(Errata errata) {
- errata_ = errata;
+ if (errata_ != errata) {
+ errata_ = errata;
+ version_++;
+ }
}
void Config::addErrata(Errata errata) {
- errata_ |= errata;
+ if (!hasErrata(errata)) {
+ errata_ |= errata;
+ version_++;
+ }
}
void Config::removeErrata(Errata errata) {
- errata_ &= (~errata);
+ if (hasErrata(errata)) {
+ errata_ &= (~errata);
+ version_++;
+ }
}
Errata Config::getErrata() const {
@@ -63,7 +75,10 @@ bool Config::hasErrata(Errata errata) const {
}
void Config::setPointScaleFactor(float pointScaleFactor) {
- pointScaleFactor_ = pointScaleFactor;
+ if (pointScaleFactor_ != pointScaleFactor) {
+ pointScaleFactor_ = pointScaleFactor;
+ version_++;
+ }
}
float Config::getPointScaleFactor() const {
@@ -78,6 +93,10 @@ void* Config::getContext() const {
return context_;
}
+uint32_t Config::getVersion() const noexcept {
+ return version_;
+}
+
void Config::setLogger(YGLogger logger) {
logger_ = logger;
}
diff --git a/yoga/config/Config.h b/yoga/config/Config.h
index 4db25bd0f4..7bcffd1484 100644
--- a/yoga/config/Config.h
+++ b/yoga/config/Config.h
@@ -53,6 +53,8 @@ class YG_EXPORT Config : public ::YGConfig {
void setContext(void* context);
void* getContext() const;
+ uint32_t getVersion() const noexcept;
+
void setLogger(YGLogger logger);
void log(
const yoga::Node* node,
@@ -72,6 +74,7 @@ class YG_EXPORT Config : public ::YGConfig {
bool useWebDefaults_ : 1 = false;
+ uint32_t version_ = 0;
ExperimentalFeatureSet experimentalFeatures_{};
Errata errata_ = Errata::None;
float pointScaleFactor_ = 1.0f;
diff --git a/yoga/node/LayoutResults.cpp b/yoga/node/LayoutResults.cpp
index fd70870e65..acc37a1b4a 100644
--- a/yoga/node/LayoutResults.cpp
+++ b/yoga/node/LayoutResults.cpp
@@ -21,6 +21,7 @@ bool LayoutResults::operator==(LayoutResults layout) const {
direction() == layout.direction() &&
hadOverflow() == layout.hadOverflow() &&
lastOwnerDirection == layout.lastOwnerDirection &&
+ configVersion == layout.configVersion &&
nextCachedMeasurementsIndex == layout.nextCachedMeasurementsIndex &&
cachedLayout == layout.cachedLayout &&
computedFlexBasis == layout.computedFlexBasis;
diff --git a/yoga/node/LayoutResults.h b/yoga/node/LayoutResults.h
index f42c27795c..9f0aeaf784 100644
--- a/yoga/node/LayoutResults.h
+++ b/yoga/node/LayoutResults.h
@@ -30,6 +30,7 @@ struct LayoutResults {
// Instead of recomputing the entire layout every single time, we cache some
// information to break early when nothing changed
uint32_t generationCount = 0;
+ uint32_t configVersion = 0;
Direction lastOwnerDirection = Direction::Inherit;
uint32_t nextCachedMeasurementsIndex = 0;
diff --git a/yoga/node/Node.cpp b/yoga/node/Node.cpp
index adb63663be..f1f9633901 100644
--- a/yoga/node/Node.cpp
+++ b/yoga/node/Node.cpp
@@ -10,6 +10,7 @@
#include
#include
+#include
#include
#include
@@ -49,12 +50,31 @@ Node::Node(Node&& node) noexcept
}
YGSize Node::measure(
- float width,
+ float availableWidth,
MeasureMode widthMode,
- float height,
+ float availableHeight,
MeasureMode heightMode) {
- return measureFunc_(
- this, width, unscopedEnum(widthMode), height, unscopedEnum(heightMode));
+ const auto size = measureFunc_(
+ this,
+ availableWidth,
+ unscopedEnum(widthMode),
+ availableHeight,
+ unscopedEnum(heightMode));
+
+ if (yoga::isUndefined(size.height) || size.height < 0 ||
+ yoga::isUndefined(size.width) || size.width < 0) {
+ yoga::log(
+ this,
+ LogLevel::Warn,
+ "Measure function returned an invalid dimension to Yoga: [width=%f, height=%f]",
+ size.width,
+ size.height);
+ return {
+ .width = maxOrDefined(0.0f, size.width),
+ .height = maxOrDefined(0.0f, size.height)};
+ }
+
+ return size;
}
float Node::baseline(float width, float height) const {
@@ -116,6 +136,11 @@ void Node::setConfig(yoga::Config* config) {
if (yoga::configUpdateInvalidatesLayout(*config_, *config)) {
markDirtyAndPropagate();
+ layout_.configVersion = 0;
+ } else {
+ // If the config is functionally the same, then align the configVersion so
+ // that we can reuse the layout cache
+ layout_.configVersion = config->getVersion();
}
config_ = config;
@@ -210,9 +235,8 @@ float Node::relativePosition(
void Node::setPosition(
const Direction direction,
- const float mainSize,
- const float crossSize,
- const float ownerWidth) {
+ const float ownerWidth,
+ const float ownerHeight) {
/* Root nodes should be always layouted as LTR, so we don't return negative
* values. */
const Direction directionRespectingRoot =
@@ -224,10 +248,14 @@ void Node::setPosition(
// In the case of position static these are just 0. See:
// https://www.w3.org/TR/css-position-3/#valdef-position-static
- const float relativePositionMain =
- relativePosition(mainAxis, directionRespectingRoot, mainSize);
- const float relativePositionCross =
- relativePosition(crossAxis, directionRespectingRoot, crossSize);
+ const float relativePositionMain = relativePosition(
+ mainAxis,
+ directionRespectingRoot,
+ isRow(mainAxis) ? ownerWidth : ownerHeight);
+ const float relativePositionCross = relativePosition(
+ crossAxis,
+ directionRespectingRoot,
+ isRow(mainAxis) ? ownerHeight : ownerWidth);
const auto mainAxisLeadingEdge = inlineStartEdge(mainAxis, direction);
const auto mainAxisTrailingEdge = inlineEndEdge(mainAxis, direction);
diff --git a/yoga/node/Node.h b/yoga/node/Node.h
index ec28f2db91..06175b8ee0 100644
--- a/yoga/node/Node.h
+++ b/yoga/node/Node.h
@@ -66,9 +66,9 @@ class YG_EXPORT Node : public ::YGNode {
}
YGSize measure(
- float width,
+ float availableWidth,
MeasureMode widthMode,
- float height,
+ float availableHeight,
MeasureMode heightMode);
bool hasBaselineFunc() const noexcept {
@@ -229,11 +229,7 @@ class YG_EXPORT Node : public ::YGNode {
void setLayoutBorder(float border, PhysicalEdge edge);
void setLayoutPadding(float padding, PhysicalEdge edge);
void setLayoutPosition(float position, PhysicalEdge edge);
- void setPosition(
- Direction direction,
- float mainSize,
- float crossSize,
- float ownerWidth);
+ void setPosition(Direction direction, float ownerWidth, float ownerHeight);
// Other methods
Style::Length resolveFlexBasisPtr() const;
@@ -271,7 +267,7 @@ class YG_EXPORT Node : public ::YGNode {
bool hasNewLayout_ : 1 = true;
bool isReferenceBaseline_ : 1 = false;
- bool isDirty_ : 1 = false;
+ bool isDirty_ : 1 = true;
bool alwaysFormsContainingBlock_ : 1 = false;
NodeType nodeType_ : bitCount() = NodeType::Default;
void* context_ = nullptr;
diff --git a/yoga/style/Style.h b/yoga/style/Style.h
index 113a8e1df1..ac769f1d76 100644
--- a/yoga/style/Style.h
+++ b/yoga/style/Style.h
@@ -428,11 +428,9 @@ class YG_EXPORT Style {
computeInlineEndMargin(axis, Direction::LTR, widthSize);
}
- float computeGapForAxis(FlexDirection axis) const {
+ float computeGapForAxis(FlexDirection axis, float ownerSize) const {
auto gap = isRow(axis) ? computeColumnGap() : computeRowGap();
- // TODO: Validate percentage gap, and expose ability to set percentage to
- // public API
- return maxOrDefined(gap.resolve(0.0f /*ownerSize*/).unwrap(), 0.0f);
+ return maxOrDefined(gap.resolve(ownerSize).unwrap(), 0.0f);
}
bool flexStartMarginIsAuto(FlexDirection axis, Direction direction) const {