variable-fix-layout.test.ts 396 B

12345678910111213
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. import { runFixedLayoutTest } from '../__mocks__/run-fixed-layout-test';
  6. import { fixLayout1 } from '../__mocks__/fixed-layout-specs';
  7. runFixedLayoutTest('Variable Fix Layout', fixLayout1, {
  8. isNodeChildrenPrivate: (node) =>
  9. // 只有循环是 private
  10. node.flowNodeType === 'loop',
  11. });