@@ -120,37 +120,27 @@ class Simulate {
120
120
///
121
121
/// Included in Dart for completeness
122
122
@JS ('React.addons.TestUtils.findAllInRenderedTree' )
123
- external List <dynamic > findAllInRenderedTree (
124
- /* [1] */ tree,
125
- ComponentTestFunction test);
123
+ external List <dynamic > findAllInRenderedTree (/* [1] */ tree, ComponentTestFunction test);
126
124
127
125
/// Like scryRenderedDOMComponentsWithClass() but expects there to be one
128
126
/// result, and returns that one result, or throws exception if there is
129
127
/// any other number of matches besides one.
130
128
@JS ('React.addons.TestUtils.findRenderedDOMComponentWithClass' )
131
- external dynamic /* [1] */ findRenderedDOMComponentWithClass (
132
- /* [1] */ tree,
133
- String className);
129
+ external dynamic /* [1] */ findRenderedDOMComponentWithClass (/* [1] */ tree, String className);
134
130
135
131
/// Like scryRenderedDOMComponentsWithTag() but expects there to be one result,
136
132
/// and returns that one result, or throws exception if there is any other
137
133
/// number of matches besides one.
138
134
@JS ('React.addons.TestUtils.findRenderedDOMComponentWithTag' )
139
- external dynamic /* [1] */ findRenderedDOMComponentWithTag (
140
- /* [1] */ tree,
141
- String tag);
135
+ external dynamic /* [1] */ findRenderedDOMComponentWithTag (/* [1] */ tree, String tag);
142
136
143
137
@JS ('React.addons.TestUtils.findRenderedComponentWithType' )
144
- external dynamic /* [1] */ _findRenderedComponentWithType (
145
- /* [1] */ tree,
146
- dynamic type);
138
+ external dynamic /* [1] */ _findRenderedComponentWithType (/* [1] */ tree, dynamic type);
147
139
148
140
/// Same as [scryRenderedComponentsWithTypeV2] but expects there to be one result
149
141
/// and returns that one result, or throws exception if there is any other
150
142
/// number of matches besides one.
151
- /* [1] */ findRenderedComponentWithTypeV2 (
152
- /* [1] */ tree,
153
- ReactComponentFactoryProxy componentFactory) {
143
+ /* [1] */ findRenderedComponentWithTypeV2 (/* [1] */ tree, ReactComponentFactoryProxy componentFactory) {
154
144
return _findRenderedComponentWithType (tree, getComponentTypeV2 (componentFactory));
155
145
}
156
146
@@ -171,9 +161,7 @@ external bool _isCompositeComponentWithType(/* [1] */ instance, dynamic type);
171
161
172
162
/// Returns `true` if instance is a custom composite component created using `React.createClass()`
173
163
/// that is of the [ReactComponentFactoryProxy.type] of the provided [componentFactory] .
174
- bool isCompositeComponentWithTypeV2 (
175
- /* [1] */ instance,
176
- ReactComponentFactoryProxy componentFactory) {
164
+ bool isCompositeComponentWithTypeV2 (/* [1] */ instance, ReactComponentFactoryProxy componentFactory) {
177
165
return _isCompositeComponentWithType (instance, getComponentTypeV2 (componentFactory));
178
166
}
179
167
@@ -195,33 +183,25 @@ bool isElementOfTypeV2(dynamic element, ReactComponentFactoryProxy componentFact
195
183
}
196
184
197
185
@JS ('React.addons.TestUtils.scryRenderedComponentsWithType' )
198
- external List <dynamic > /* [1] */ _scryRenderedComponentsWithType (
199
- /* [1] */ tree,
200
- dynamic type);
186
+ external List <dynamic > /* [1] */ _scryRenderedComponentsWithType (/* [1] */ tree, dynamic type);
201
187
202
188
/// Finds all instances within the provided [tree]
203
189
/// that are of the [ReactComponentFactoryProxy.type] of the provided [componentFactory] .
204
- List <dynamic > /* [1] */ scryRenderedComponentsWithTypeV2 (
205
- /* [1] */ tree,
206
- ReactComponentFactoryProxy componentFactory) {
190
+ List <dynamic > /* [1] */ scryRenderedComponentsWithTypeV2 (/* [1] */ tree, ReactComponentFactoryProxy componentFactory) {
207
191
return _scryRenderedComponentsWithType (tree, getComponentTypeV2 (componentFactory));
208
192
}
209
193
210
194
@JS ('React.addons.TestUtils.scryRenderedDOMComponentsWithClass' )
211
195
212
196
/// Finds all instances of components in the rendered tree that are DOM
213
197
/// components with the class name matching className.
214
- external List <dynamic > scryRenderedDOMComponentsWithClass (
215
- /* [1] */ tree,
216
- String className);
198
+ external List <dynamic > scryRenderedDOMComponentsWithClass (/* [1] */ tree, String className);
217
199
218
200
@JS ('React.addons.TestUtils.scryRenderedDOMComponentsWithTag' )
219
201
220
202
/// Finds all instances of components in the rendered tree that are DOM
221
203
/// components with the tag name matching tagName.
222
- external List <dynamic > scryRenderedDOMComponentsWithTag (
223
- /* [1] */ tree,
224
- String tagName);
204
+ external List <dynamic > scryRenderedDOMComponentsWithTag (/* [1] */ tree, String tagName);
225
205
226
206
/// Render a Component into a detached DOM node in the document.
227
207
@JS ('React.addons.TestUtils.renderIntoDocument' )
0 commit comments