mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
RCTRootView integration tests
Reviewed By: javache Differential Revision: D2631527 fb-gh-sync-id: 377471d9e8546d7c05a045286a6ef7c5277ded16
This commit is contained in:
committed by
facebook-github-bot-0
parent
2faf8632d3
commit
0d17d6a8c0
32
IntegrationTests/PropertiesUpdateTest.js
Normal file
32
IntegrationTests/PropertiesUpdateTest.js
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
var React = require('react-native');
|
||||
var {
|
||||
View,
|
||||
} = React;
|
||||
|
||||
var { TestModule } = React.addons;
|
||||
|
||||
var PropertiesUpdateTest = React.createClass({
|
||||
|
||||
render() {
|
||||
if (this.props.markTestPassed) {
|
||||
TestModule.markTestPassed(true);
|
||||
}
|
||||
return (
|
||||
<View/>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
PropertiesUpdateTest.displayName = 'PropertiesUpdateTest';
|
||||
|
||||
module.exports = PropertiesUpdateTest;
|
||||
Reference in New Issue
Block a user