Removes trailing whitespace from source files. (#19329)

This commit is contained in:
Greg Spencer
2018-07-19 23:03:58 -07:00
committed by GitHub
parent 2d3a5c744d
commit 1cc036519c
47 changed files with 138 additions and 138 deletions

View File

@@ -259,7 +259,7 @@ class ByType extends SerializableFinder {
///
/// If the object returned by the finder does not have its own semantics node,
/// then the semantics node of the first ancestor is returned instead.
///
///
/// Throws an error if a finder returns multiple objects or if there are no
/// semantics nodes.
///

View File

@@ -573,10 +573,10 @@ class FlutterDriver {
/// Retrieves the semantics node id for the object returned by `finder`, or
/// the nearest ancestor with a semantics node.
///
///
/// Throws an error if `finder` returns multiple elements or a semantics
/// node is not found.
///
///
/// Semantics must be enabled to use this method, either using a platform
/// specific shell command or [setSemantics].
Future<int> getSemanticsId(SerializableFinder finder, { Duration timeout = _kShortTimeout}) async {

View File

@@ -63,7 +63,7 @@ class _DriverBinding extends BindingBase with ServicesBinding, SchedulerBinding,
///
/// Optionally you can pass a [DataHandler] callback. It will be called if the
/// test calls [FlutterDriver.requestData].
///
///
/// `slienceErrors` will prevent exceptions from being logged. This is useful
/// for tests where exceptions are expected. Defaults to false. Any errors
/// will still be returned in the `response` field of the result json along

View File

@@ -81,10 +81,10 @@ void main() {
final SemanticsHandle semantics = RendererBinding.instance.pipelineOwner.ensureSemantics();
await tester.pumpWidget(
const Text('hello', textDirection: TextDirection.ltr));
final Map<String, Object> arguments = new GetSemanticsId(new ByText('hello')).serialize();
final GetSemanticsIdResult result = GetSemanticsIdResult.fromJson((await extension.call(arguments))['response']);
expect(result.id, 1);
semantics.dispose();
});
@@ -92,10 +92,10 @@ void main() {
testWidgets('throws state error if no data is found', (WidgetTester tester) async {
await tester.pumpWidget(
const Text('hello', textDirection: TextDirection.ltr));
final Map<String, Object> arguments = new GetSemanticsId(new ByText('hello')).serialize();
final Map<String, Object> response = await extension.call(arguments);
expect(response['isError'], true);
expect(response['response'], contains('Bad state: No semantics data found'));
});
@@ -111,10 +111,10 @@ void main() {
]),
),
);
final Map<String, Object> arguments = new GetSemanticsId(new ByText('hello')).serialize();
final Map<String, Object> response = await extension.call(arguments);
expect(response['isError'], true);
expect(response['response'], contains('Bad state: Too many elements'));
semantics.dispose();