Commit ef54f74
Extend Image Fantom tests for alt, aria-label and prefetchWithMetadata (#57549)
Summary:
Pull Request resolved: #57549
Extends `Image-itest.js` with coverage for public `Image` APIs that were previously untested, all exercised through the public `react-native` surface:
- the `alt` prop, which maps to `accessibilityLabel` and marks the image accessible;
- the `aria-label` prop, which maps to `accessibilityLabel`; and
- the `Image.prefetchWithMetadata` static method.
Changelog:
[Internal]
Reviewed By: sammy-SC
Differential Revision: D111914101
fbshipit-source-id: c63aaf2df28af7853dc1d75b2ba5ea6fbed894bb1 parent 8149e22 commit ef54f74
1 file changed
Lines changed: 46 additions & 0 deletions
Lines changed: 46 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
623 | 651 | | |
624 | 652 | | |
625 | 653 | | |
| |||
1047 | 1075 | | |
1048 | 1076 | | |
1049 | 1077 | | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
1050 | 1096 | | |
1051 | 1097 | | |
1052 | 1098 | | |
| |||
0 commit comments