Skip to content

Add regression test for specific border color precedence - #60575

Draft
neeleshyadav253 wants to merge 1 commit into
react:mainfrom
neeleshyadav253:test/border-color-edge-priority
Draft

neeleshyadav253 wants to merge 1 commit into
react:mainfrom
neeleshyadav253:test/border-color-edge-priority

Conversation

@neeleshyadav253

Copy link
Copy Markdown

Summary:

Adds a regression test that a specific borderBottomColor overrides borderColor on the bottom edge, in both LTR and RTL. Refs #38335.

I could not reproduce #38335 on current main: the resolver already gives the specific edge priority over ALL. This test guards that behaviour so a future change cannot reintroduce the regression. It does not fix a reproduced bug.

Changelog:

[INTERNAL] [FIXED] - Add a regression test for border color precedence on the bottom edge.

Test Plan:

  • ./gradlew :packages:react-native:ReactAndroid:testDebugUnitTest --tests "com.facebook.react.uimanager.style.BorderColorsTest" --tests "com.facebook.react.uimanager.drawable.BorderDrawableTest", run with JDK 17 (Zulu 17) and Gradle 9.4.1: BUILD SUCCESSFUL.
  • Test results from the XML reports: BorderColorsTest 2 tests, 0 failures, 0 errors; BorderDrawableTest 2 tests, 0 failures, 0 errors.
  • Not run on a device or emulator.

A borderBottomColor should win over borderColor on the bottom edge in
both LTR and RTL (see react#38335). The test passes on current main, so it
guards the behaviour rather than fixing a reproduced bug.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants