react-native/RNTester/RNTesterUnitTests
Kevin Gozali 6611fefef7 iOS: Exposes the RCTFont size overrides so unit tests can use the same values
Summary:
`RCTFontTests` test in RNTester is broken if the target deployment is <= OS 8.2. This is because RCTFont.mm overrides the OS-defined values, but the override is only visible to RCTFont.mm internals. As the result, when the Unit test tries to create UIFont of the "same" weight, it got a different font - most likely due to internal floating rounding errors.

To mitigate, code that wants to test out internals of RCTFont should import RCTFontConstantsOverride.h

Reviewed By: mmmulani

Differential Revision: D7900954

fbshipit-source-id: e5814ef059a8afdfb5205ca1af46c41b3cfd4318
2018-05-07 17:31:12 -07:00
..
OCMock Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
Info.plist Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
RCTAllocationTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTAnimationUtilsTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBlobManagerTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBundleURLProviderTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTComponentPropsTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTConvert_NSURLTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTConvert_YGValueTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTDevMenuTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTEventDispatcherTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTFontTests.m iOS: Exposes the RCTFont size overrides so unit tests can use the same values 2018-05-07 17:31:12 -07:00
RCTGzipTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageLoaderHelpers.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageLoaderHelpers.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageLoaderTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageUtilTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTJSONTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTMethodArgumentTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModuleInitNotificationRaceTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModuleInitTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModuleMethodTests.mm Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTMultipartStreamReaderTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNativeAnimatedNodesManagerTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTShadowViewTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTUIManagerTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTURLUtilsTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTUnicodeDecodeTests.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RNTesterUnitTestsBundle.js Remove @providesModule from all modules 2018-04-25 07:37:10 -07:00
libOCMock.a Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00