|
4 | 4 | * This source code is licensed under the MIT license found in the |
5 | 5 | * LICENSE file in the root directory of this source tree. |
6 | 6 | * |
7 | | - * @generated SignedSource<<43053b7b4f9b08ef644e0bb63c44e78f>> |
| 7 | + * @generated SignedSource<<94d885664d3bbf8c72280e1b61102fce>> |
8 | 8 | * generated by gentest/src/GentestDriver.ts from gentest/fixtures/YGFlexBasisFitContentTest.html |
9 | 9 | */ |
10 | 10 |
|
@@ -385,74 +385,6 @@ public void test_explicit_and_container_children_column() { |
385 | 385 | assertEquals(500f, root_child1_child0.getLayoutHeight(), 0.0f); |
386 | 386 | } |
387 | 387 |
|
388 | | - @Test |
389 | | - public void test_flex_basis_in_scroll_content_container() { |
390 | | - YogaConfig config = YogaConfigFactory.create(); |
391 | | - config.setExperimentalFeatureEnabled(YogaExperimentalFeature.FIX_FLEX_BASIS_FIT_CONTENT, true); |
392 | | - |
393 | | - final YogaNode root = createNode(config); |
394 | | - root.setPositionType(YogaPositionType.ABSOLUTE); |
395 | | - root.setWidth(200f); |
396 | | - root.setHeight(300f); |
397 | | - root.setOverflow(YogaOverflow.SCROLL); |
398 | | - |
399 | | - final YogaNode root_child0 = createNode(config); |
400 | | - root.addChildAt(root_child0, 0); |
401 | | - |
402 | | - final YogaNode root_child0_child0 = createNode(config); |
403 | | - root_child0_child0.setFlexBasis(200f); |
404 | | - root_child0.addChildAt(root_child0_child0, 0); |
405 | | - |
406 | | - final YogaNode root_child0_child1 = createNode(config); |
407 | | - root_child0_child1.setFlexBasis(300f); |
408 | | - root_child0.addChildAt(root_child0_child1, 1); |
409 | | - root.setDirection(YogaDirection.LTR); |
410 | | - root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED); |
411 | | - |
412 | | - assertEquals(0f, root.getLayoutX(), 0.0f); |
413 | | - assertEquals(0f, root.getLayoutY(), 0.0f); |
414 | | - assertEquals(200f, root.getLayoutWidth(), 0.0f); |
415 | | - assertEquals(300f, root.getLayoutHeight(), 0.0f); |
416 | | - |
417 | | - assertEquals(0f, root_child0.getLayoutX(), 0.0f); |
418 | | - assertEquals(0f, root_child0.getLayoutY(), 0.0f); |
419 | | - assertEquals(200f, root_child0.getLayoutWidth(), 0.0f); |
420 | | - assertEquals(500f, root_child0.getLayoutHeight(), 0.0f); |
421 | | - |
422 | | - assertEquals(0f, root_child0_child0.getLayoutX(), 0.0f); |
423 | | - assertEquals(0f, root_child0_child0.getLayoutY(), 0.0f); |
424 | | - assertEquals(200f, root_child0_child0.getLayoutWidth(), 0.0f); |
425 | | - assertEquals(200f, root_child0_child0.getLayoutHeight(), 0.0f); |
426 | | - |
427 | | - assertEquals(0f, root_child0_child1.getLayoutX(), 0.0f); |
428 | | - assertEquals(200f, root_child0_child1.getLayoutY(), 0.0f); |
429 | | - assertEquals(200f, root_child0_child1.getLayoutWidth(), 0.0f); |
430 | | - assertEquals(300f, root_child0_child1.getLayoutHeight(), 0.0f); |
431 | | - |
432 | | - root.setDirection(YogaDirection.RTL); |
433 | | - root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED); |
434 | | - |
435 | | - assertEquals(0f, root.getLayoutX(), 0.0f); |
436 | | - assertEquals(0f, root.getLayoutY(), 0.0f); |
437 | | - assertEquals(200f, root.getLayoutWidth(), 0.0f); |
438 | | - assertEquals(300f, root.getLayoutHeight(), 0.0f); |
439 | | - |
440 | | - assertEquals(0f, root_child0.getLayoutX(), 0.0f); |
441 | | - assertEquals(0f, root_child0.getLayoutY(), 0.0f); |
442 | | - assertEquals(200f, root_child0.getLayoutWidth(), 0.0f); |
443 | | - assertEquals(500f, root_child0.getLayoutHeight(), 0.0f); |
444 | | - |
445 | | - assertEquals(0f, root_child0_child0.getLayoutX(), 0.0f); |
446 | | - assertEquals(0f, root_child0_child0.getLayoutY(), 0.0f); |
447 | | - assertEquals(200f, root_child0_child0.getLayoutWidth(), 0.0f); |
448 | | - assertEquals(200f, root_child0_child0.getLayoutHeight(), 0.0f); |
449 | | - |
450 | | - assertEquals(0f, root_child0_child1.getLayoutX(), 0.0f); |
451 | | - assertEquals(200f, root_child0_child1.getLayoutY(), 0.0f); |
452 | | - assertEquals(200f, root_child0_child1.getLayoutWidth(), 0.0f); |
453 | | - assertEquals(300f, root_child0_child1.getLayoutHeight(), 0.0f); |
454 | | - } |
455 | | - |
456 | 388 | private YogaNode createNode(YogaConfig config) { |
457 | 389 | return mNodeFactory.create(config); |
458 | 390 | } |
|
0 commit comments