From 9e2bdede15b48e583aa014380b1108f060ea5057 Mon Sep 17 00:00:00 2001 From: Martin Konicek Date: Fri, 6 Mar 2015 07:04:20 -0800 Subject: [PATCH] [react_native] JS files for D1885531 --- Libraries/Components/View/View.js | 2 +- Libraries/Text/Text.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Libraries/Components/View/View.js b/Libraries/Components/View/View.js index 060125ea7..826c395bc 100644 --- a/Libraries/Components/View/View.js +++ b/Libraries/Components/View/View.js @@ -71,7 +71,7 @@ var View = React.createClass({ accessible: PropTypes.bool, /** - * This string can be used to identify the accessible element. + * Used to locate this view in end-to-end tests. */ testID: PropTypes.string, diff --git a/Libraries/Text/Text.js b/Libraries/Text/Text.js index 07160bc66..71e022d9b 100644 --- a/Libraries/Text/Text.js +++ b/Libraries/Text/Text.js @@ -87,6 +87,10 @@ var Text = React.createClass({ */ suppressHighlighting: React.PropTypes.bool, style: stylePropType, + /** + * Used to locate this view in end-to-end tests. + */ + testID: React.PropTypes.string, }, viewConfig: viewConfig,