-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add e2e test for out of tree platforms
- Loading branch information
Showing
35 changed files
with
710 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...s/OutOfTreeTestPlatform/Libraries/Components/AccessibilityInfo/AccessibilityInfo.dummy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
* @flow | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const AccessibilityInfo = {}; | ||
|
||
module.exports = AccessibilityInfo; |
12 changes: 12 additions & 0 deletions
12
...s/OutOfTreeTestPlatform/Libraries/Components/ActivityIndicator/ActivityIndicator.dummy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
'use strict'; | ||
|
||
module.exports = require('UnimplementedView'); |
12 changes: 12 additions & 0 deletions
12
RNTester/js/OutOfTreeTestPlatform/Libraries/Components/CheckBox/CheckBox.dummy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
'use strict'; | ||
|
||
module.exports = require('UnimplementedView'); |
12 changes: 12 additions & 0 deletions
12
RNTester/js/OutOfTreeTestPlatform/Libraries/Components/DatePicker/DatePickerIOS.dummy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
'use strict'; | ||
|
||
module.exports = require('UnimplementedView'); |
21 changes: 21 additions & 0 deletions
21
...s/OutOfTreeTestPlatform/Libraries/Components/DatePickerAndroid/DatePickerAndroid.dummy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
* @flow | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const DatePickerAndroid = { | ||
async open(options: Object): Promise<Object> { | ||
return Promise.reject({ | ||
message: 'DatePickerAndroid is not supported on this platform.', | ||
}); | ||
}, | ||
}; | ||
|
||
module.exports = DatePickerAndroid; |
12 changes: 12 additions & 0 deletions
12
.../js/OutOfTreeTestPlatform/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.dummy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
'use strict'; | ||
|
||
module.exports = require('UnimplementedView'); |
12 changes: 12 additions & 0 deletions
12
RNTester/js/OutOfTreeTestPlatform/Libraries/Components/Image/Image.dummy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
'use strict'; | ||
|
||
module.exports = require('UnimplementedView'); |
12 changes: 12 additions & 0 deletions
12
RNTester/js/OutOfTreeTestPlatform/Libraries/Components/MaskedView/MaskedViewIOS.dummy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
'use strict'; | ||
|
||
module.exports = require('UnimplementedView'); |
12 changes: 12 additions & 0 deletions
12
RNTester/js/OutOfTreeTestPlatform/Libraries/Components/Navigation/NavigatorIOS.dummy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
'use strict'; | ||
|
||
module.exports = require('UnimplementedView'); |
12 changes: 12 additions & 0 deletions
12
RNTester/js/OutOfTreeTestPlatform/Libraries/Components/Picker/PickerAndroid.dummy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
'use strict'; | ||
|
||
module.exports = require('UnimplementedView'); |
12 changes: 12 additions & 0 deletions
12
RNTester/js/OutOfTreeTestPlatform/Libraries/Components/Picker/PickerIOS.dummy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
'use strict'; | ||
|
||
module.exports = require('UnimplementedView'); |
12 changes: 12 additions & 0 deletions
12
...OutOfTreeTestPlatform/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.dummy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
'use strict'; | ||
|
||
module.exports = require('UnimplementedView'); |
46 changes: 46 additions & 0 deletions
46
...er/js/OutOfTreeTestPlatform/Libraries/Components/ProgressViewIOS/ProgressViewIOS.dummy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/** | ||
* Copyright (c) 2015-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const React = require('React'); | ||
const StyleSheet = require('StyleSheet'); | ||
const Text = require('Text'); | ||
const View = require('View'); | ||
|
||
class DummyProgressViewIOS extends React.Component { | ||
render() { | ||
return ( | ||
<View style={[styles.dummy, this.props.style]}> | ||
<Text style={styles.text}> | ||
ProgressViewIOS is not supported on this platform! | ||
</Text> | ||
</View> | ||
); | ||
} | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
dummy: { | ||
width: 120, | ||
height: 20, | ||
backgroundColor: '#ffbcbc', | ||
borderWidth: 1, | ||
borderColor: 'red', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
text: { | ||
color: '#333333', | ||
margin: 5, | ||
fontSize: 10, | ||
}, | ||
}); | ||
|
||
module.exports = DummyProgressViewIOS; |
13 changes: 13 additions & 0 deletions
13
RNTester/js/OutOfTreeTestPlatform/Libraries/Components/SafeAreaView/SafeAreaView.dummy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
* @flow | ||
*/ | ||
|
||
'use strict'; | ||
|
||
module.exports = require('View'); |
46 changes: 46 additions & 0 deletions
46
...tOfTreeTestPlatform/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.dummy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/** | ||
* Copyright (c) 2015-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const React = require('React'); | ||
const StyleSheet = require('StyleSheet'); | ||
const Text = require('Text'); | ||
const View = require('View'); | ||
|
||
class DummySegmentedControlIOS extends React.Component { | ||
render() { | ||
return ( | ||
<View style={[styles.dummy, this.props.style]}> | ||
<Text style={styles.text}> | ||
SegmentedControlIOS is not supported on this platform! | ||
</Text> | ||
</View> | ||
); | ||
} | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
dummy: { | ||
width: 120, | ||
height: 50, | ||
backgroundColor: '#ffbcbc', | ||
borderWidth: 1, | ||
borderColor: 'red', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
text: { | ||
color: '#333333', | ||
margin: 5, | ||
fontSize: 10, | ||
}, | ||
}); | ||
|
||
module.exports = DummySegmentedControlIOS; |
13 changes: 13 additions & 0 deletions
13
RNTester/js/OutOfTreeTestPlatform/Libraries/Components/StatusBar/StatusBarIOS.dummy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Copyright (c) 2015-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
* @flow | ||
*/ | ||
|
||
'use strict'; | ||
|
||
module.exports = {}; |
36 changes: 36 additions & 0 deletions
36
RNTester/js/OutOfTreeTestPlatform/Libraries/Components/TabBarIOS/TabBarIOS.dummy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* Copyright (c) 2015-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
* @flow | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const React = require('React'); | ||
const StyleSheet = require('StyleSheet'); | ||
const TabBarItemIOS = require('TabBarItemIOS'); | ||
const View = require('View'); | ||
|
||
class DummyTabBarIOS extends React.Component<$FlowFixMeProps> { | ||
static Item = TabBarItemIOS; | ||
|
||
render() { | ||
return ( | ||
<View style={[this.props.style, styles.tabGroup]}> | ||
{this.props.children} | ||
</View> | ||
); | ||
} | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
tabGroup: { | ||
flex: 1, | ||
}, | ||
}); | ||
|
||
module.exports = DummyTabBarIOS; |
Oops, something went wrong.