mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-13 03:49:52 +08:00
Travis CI reliability fixes: preload package manager and increase tim…
Summary: - Consolidate common code in iOS and tvOS test scripts - Start the packager before starting tests, to improve reliability - Increase timeout value in RCTTestRunner.m Closes https://github.com/facebook/react-native/pull/10378 Differential Revision: D4028364 Pulled By: bestander fbshipit-source-id: 24c2124a1c62643a02f0668b60a67b971e08d1a3
This commit is contained in:
committed by
Facebook Github Bot
parent
f8b0728d9b
commit
64a4c6070d
@@ -24,8 +24,12 @@
|
||||
|
||||
@implementation RCTFontTests
|
||||
|
||||
// It can happen (particularly in tvOS simulator) that expected and result font objects
|
||||
// will be different objects, but the same font, so this macro now explicitly
|
||||
// checks that fontName (which includes the style) and pointSize are equal.
|
||||
#define RCTAssertEqualFonts(font1, font2) { \
|
||||
XCTAssertEqualObjects(font1, font2); \
|
||||
XCTAssertTrue([font1.fontName isEqualToString:font2.fontName]); \
|
||||
XCTAssertEqual(font1.pointSize,font2.pointSize); \
|
||||
}
|
||||
|
||||
- (void)testWeight
|
||||
|
||||
Reference in New Issue
Block a user