Skip to content

Commit fb8e618

Browse files
J8118meta-codesync[bot]
authored andcommitted
Fix "instrinsic" typo in function name to "intrinsic" (#1928)
Summary: The function `instrinsicSizeMeasureFunc` is misspelled — "instrinsic" should be "intrinsic". This typo originated in the utility function definition and was propagated by the test generator to all generated test files. **Files changed:** - `javascript/tests/tools/utils.ts` — function definition (source of truth) - `gentest/src/emitters/JavascriptEmitter.ts` — generator that emits the import and usage - 26 generated test files in `javascript/tests/generated/` — updated to match Pull Request resolved: #1928 Test Plan: - Rename only — no logic changes - All import references updated consistently across source, generator, and generated files - Verified zero remaining instances of "instrinsic" in the codebase Reviewed By: cortinico Differential Revision: D100144238 Pulled By: fabriziocucci fbshipit-source-id: e881e63aa4e7a79610183cdc9961f82071506f2f
1 parent 3acb6cc commit fb8e618

28 files changed

Lines changed: 76 additions & 76 deletions

gentest/src/emitters/JavascriptEmitter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class JavascriptEmitter extends Emitter {
107107
}
108108

109109
emitPrologue(_fixtureName: string): void {
110-
this.push("import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'");
110+
this.push("import { intrinsicSizeMeasureFunc } from '../tools/utils.ts'");
111111
this.push("import Yoga from 'yoga-layout';");
112112
this.push('import {');
113113
this.pushIndent();
@@ -208,7 +208,7 @@ export class JavascriptEmitter extends Emitter {
208208

209209
setMeasureFunc(node: string, text: string, flexDirection: string): void {
210210
this.push(
211-
`${node}.setMeasureFunc(instrinsicSizeMeasureFunc.bind({text: "${text}", flexDirection: ${this.tr(
211+
`${node}.setMeasureFunc(intrinsicSizeMeasureFunc.bind({text: "${text}", flexDirection: ${this.tr(
212212
flexDirection,
213213
)}}));`,
214214
);

javascript/tests/generated/YGAbsolutePositionTest.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<da73c7c3db2a083aa5e9c6fc331402d9>>
7+
* @generated SignedSource<<f4ead8b5c5d212902378228c1c49878c>>
88
* generated by gentest/src/GentestDriver.ts from gentest/fixtures/YGAbsolutePositionTest.html
99
*/
1010

11-
import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
11+
import { intrinsicSizeMeasureFunc } from '../tools/utils.ts'
1212
import Yoga from 'yoga-layout';
1313
import {
1414
Align,

javascript/tests/generated/YGAlignContentTest.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<37aacf42a46e0f084340980d45ce7004>>
7+
* @generated SignedSource<<b32a3f7febabe6fde147e91a96cc7792>>
88
* generated by gentest/src/GentestDriver.ts from gentest/fixtures/YGAlignContentTest.html
99
*/
1010

11-
import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
11+
import { intrinsicSizeMeasureFunc } from '../tools/utils.ts'
1212
import Yoga from 'yoga-layout';
1313
import {
1414
Align,

javascript/tests/generated/YGAlignItemsTest.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<4caffe8672815f4626915cf6476376e9>>
7+
* @generated SignedSource<<376f04b67eef25ff67e586d26bfb7ef6>>
88
* generated by gentest/src/GentestDriver.ts from gentest/fixtures/YGAlignItemsTest.html
99
*/
1010

11-
import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
11+
import { intrinsicSizeMeasureFunc } from '../tools/utils.ts'
1212
import Yoga from 'yoga-layout';
1313
import {
1414
Align,

javascript/tests/generated/YGAlignSelfTest.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<314a0b8edb3f8e12937a84996c8b1d18>>
7+
* @generated SignedSource<<c49f825b58cf8cebf81962d13b3fd0b3>>
88
* generated by gentest/src/GentestDriver.ts from gentest/fixtures/YGAlignSelfTest.html
99
*/
1010

11-
import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
11+
import { intrinsicSizeMeasureFunc } from '../tools/utils.ts'
1212
import Yoga from 'yoga-layout';
1313
import {
1414
Align,

javascript/tests/generated/YGAndroidNewsFeed.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<1e82044495185ac27a199c4794c2ebca>>
7+
* @generated SignedSource<<9f1e302243d4e039107854895ed4605b>>
88
* generated by gentest/src/GentestDriver.ts from gentest/fixtures/YGAndroidNewsFeed.html
99
*/
1010

11-
import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
11+
import { intrinsicSizeMeasureFunc } from '../tools/utils.ts'
1212
import Yoga from 'yoga-layout';
1313
import {
1414
Align,

javascript/tests/generated/YGAspectRatioTest.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<30f135a4788f0c5ef1d65a2d893d394d>>
7+
* @generated SignedSource<<afa3a2caac02437bb9d814e57a495ec1>>
88
* generated by gentest/src/GentestDriver.ts from gentest/fixtures/YGAspectRatioTest.html
99
*/
1010

11-
import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
11+
import { intrinsicSizeMeasureFunc } from '../tools/utils.ts'
1212
import Yoga from 'yoga-layout';
1313
import {
1414
Align,

javascript/tests/generated/YGAutoTest.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<e6bfff6309022d5a15e3300d0e23b50b>>
7+
* @generated SignedSource<<d8ab2139961be43b9cf516c0647bb9f8>>
88
* generated by gentest/src/GentestDriver.ts from gentest/fixtures/YGAutoTest.html
99
*/
1010

11-
import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
11+
import { intrinsicSizeMeasureFunc } from '../tools/utils.ts'
1212
import Yoga from 'yoga-layout';
1313
import {
1414
Align,

javascript/tests/generated/YGBorderTest.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<0c7aeb1cb422285964264440e136da96>>
7+
* @generated SignedSource<<b114df3eb569e3aa24add3137d2891cf>>
88
* generated by gentest/src/GentestDriver.ts from gentest/fixtures/YGBorderTest.html
99
*/
1010

11-
import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
11+
import { intrinsicSizeMeasureFunc } from '../tools/utils.ts'
1212
import Yoga from 'yoga-layout';
1313
import {
1414
Align,

javascript/tests/generated/YGBoxSizingTest.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<46ef03a01883dfbdb5a69e6f2ff682ee>>
7+
* @generated SignedSource<<9bf8eb204347a11f8df8356ee3ec692a>>
88
* generated by gentest/src/GentestDriver.ts from gentest/fixtures/YGBoxSizingTest.html
99
*/
1010

11-
import { instrinsicSizeMeasureFunc } from '../tools/utils.ts'
11+
import { intrinsicSizeMeasureFunc } from '../tools/utils.ts'
1212
import Yoga from 'yoga-layout';
1313
import {
1414
Align,

0 commit comments

Comments
 (0)