react-native-macos/Examples/UIExplorer/UIExplorerUnitTests
Janic Duplessis 1d37dd063c Native Animated - Add tests on iOS
Summary:
Adds unit tests to the Native Animated implementation on iOS. This pretty much mirrors the tests we currently have on Android.

It also fixes 2 bugs I've found when adding the tests and pass the current time in `stepAnimation` instead of using `CACurrentMediaTime` to make testing easier.

- `stopListeningToAnimatedNodeValue` did not actually work at all, it should set the listener to nil.
- The finished value in the animation end callback was always true, this simplifies the `RCTAnimationDriver` interface to get rid of `removeAnimation` and fixes the end callback value.

**Test plan**
- Run the tests
- Make sure the UIExplorer example still works
Closes https://github.com/facebook/react-native/pull/13068

Differential Revision: D4786701

Pulled By: javache

fbshipit-source-id: a4f07e6eec1f363ca47b6f27984041793c915bfc
2017-03-28 09:16:58 -07:00
..
OCMock Fix imports in UIExplorerUnitTests 2016-11-24 09:58:31 -08:00
Info.plist Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
RCTAllocationTests.m Apple TV support 4: support for input (tvOS focus engine) 2016-12-19 06:28:40 -08:00
RCTAnimationUtilsTests.m Native Animated - Add tests on iOS 2017-03-28 09:16:58 -07:00
RCTBridgeTests.m rename UIExplorerUnitTests/TestBundle to UIExplorerUnitTests/UIExplorerUnitTestsBundle 2017-02-27 14:04:56 -08:00
RCTBundleURLProviderTests.m Fix imports in UIExplorerUnitTests 2016-11-24 09:58:31 -08:00
RCTComponentPropsTests.m rename UIExplorerUnitTests/TestBundle to UIExplorerUnitTests/UIExplorerUnitTestsBundle 2017-02-27 14:04:56 -08:00
RCTConvert_NSURLTests.m Fix imports in UIExplorerUnitTests 2016-11-24 09:58:31 -08:00
RCTConvert_YGValueTests.m remove unused includes in fbobjc/Libraries 2017-02-19 18:33:49 -08:00
RCTDevMenuTests.m rename UIExplorerUnitTests/TestBundle to UIExplorerUnitTests/UIExplorerUnitTestsBundle 2017-02-27 14:04:56 -08:00
RCTEventDispatcherTests.m Fix imports in UIExplorerUnitTests 2016-11-24 09:58:31 -08:00
RCTFontTests.m Fix imports in UIExplorerUnitTests 2016-11-24 09:58:31 -08:00
RCTGzipTests.m Fix imports in UIExplorerUnitTests 2016-11-24 09:58:31 -08:00
RCTImageLoaderHelpers.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTImageLoaderHelpers.m Fix some linter warnings 2016-09-27 06:13:31 -07:00
RCTImageLoaderTests.m rename UIExplorerUnitTests/TestBundle to UIExplorerUnitTests/UIExplorerUnitTestsBundle 2017-02-27 14:04:56 -08:00
RCTImageUtilTests.m Fix imports in UIExplorerUnitTests 2016-11-24 09:58:31 -08:00
RCTJSCExecutorTests.m remove unused includes in fbobjc/Libraries 2017-02-19 18:33:49 -08:00
RCTJSONTests.m Fix imports in UIExplorerUnitTests 2016-11-24 09:58:31 -08:00
RCTMethodArgumentTests.m Fix imports in UIExplorerUnitTests 2016-11-24 09:58:31 -08:00
RCTModuleInitNotificationRaceTests.m rename UIExplorerUnitTests/TestBundle to UIExplorerUnitTests/UIExplorerUnitTestsBundle 2017-02-27 14:04:56 -08:00
RCTModuleInitTests.m rename UIExplorerUnitTests/TestBundle to UIExplorerUnitTests/UIExplorerUnitTestsBundle 2017-02-27 14:04:56 -08:00
RCTModuleMethodTests.m Fix imports in UIExplorerUnitTests 2016-11-24 09:58:31 -08:00
RCTMultipartStreamReaderTests.m remove unused includes in fbobjc/Libraries 2017-02-19 18:33:49 -08:00
RCTNativeAnimatedNodesManagerTests.m Native Animated - Add tests on iOS 2017-03-28 09:16:58 -07:00
RCTShadowViewTests.m `RCTShadowViews`'s `cssNode` property was renamed to `yogaNode` 2017-02-21 08:45:05 -08:00
RCTUIManagerTests.m Fix imports in UIExplorerUnitTests 2016-11-24 09:58:31 -08:00
RCTURLUtilsTests.m Fix imports in UIExplorerUnitTests 2016-11-24 09:58:31 -08:00
RCTUnicodeDecodeTests.m Fix imports in UIExplorerUnitTests 2016-11-24 09:58:31 -08:00
UIExplorerUnitTestsBundle.js rename UIExplorerUnitTests/TestBundle to UIExplorerUnitTests/UIExplorerUnitTestsBundle 2017-02-27 14:04:56 -08:00
libOCMock.a [ReactNative] Move unit tests to UIExplorer 2015-06-06 13:38:34 -08:00