Removes trailing whitespace from source files. (#19329)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user