diff --git a/.github/actions/flutter_package/action.yaml b/.github/actions/flutter_package/action.yaml index 24a1930f..7b29f081 100644 --- a/.github/actions/flutter_package/action.yaml +++ b/.github/actions/flutter_package/action.yaml @@ -52,7 +52,6 @@ runs: shell: ${{ inputs.shell }} run: | flutter pub global activate very_good_cli - very_good --analytics false very_good packages get --recursive - working-directory: ${{ inputs.working_directory }} diff --git a/example/actions/expect_environment_text/lib/src/expect_environment_text.dart b/example/actions/expect_environment_text/lib/src/expect_environment_text.dart index e75655c5..cb5d0f28 100644 --- a/example/actions/expect_environment_text/lib/src/expect_environment_text.dart +++ b/example/actions/expect_environment_text/lib/src/expect_environment_text.dart @@ -16,8 +16,8 @@ class ExpectEnvironmentText extends Action { /// Called when it executes the action in a flow file. @override Future execute(Tester tester) async { - if (!await ExpectVisible( - text: "Environment: (Development|Staging|Production|None){1}", + if (!await const ExpectVisible( + text: 'Environment: (Development|Staging|Production|None){1}', ).execute(tester)) { return false; } diff --git a/example/actions/expect_environment_text/pubspec.yaml b/example/actions/expect_environment_text/pubspec.yaml index b7c7f4ae..c81eea10 100644 --- a/example/actions/expect_environment_text/pubspec.yaml +++ b/example/actions/expect_environment_text/pubspec.yaml @@ -6,6 +6,6 @@ environment: sdk: ">=3.0.0 <4.0.0" dependencies: - fluttium: ^0.1.0-dev.1 flutter: sdk: flutter + fluttium: ^0.1.0-dev.1 diff --git a/example/lib/simple_menu/view/simple_menu.dart b/example/lib/simple_menu/view/simple_menu.dart index e993d2f8..4834ad6d 100644 --- a/example/lib/simple_menu/view/simple_menu.dart +++ b/example/lib/simple_menu/view/simple_menu.dart @@ -36,7 +36,7 @@ class _SimpleMenuPageState extends State { child: Row( children: [Text('Menu Item 1')], ), - ) + ), ], context: context, position: _getRelativeRect(widgetKey), diff --git a/packages/fluttium/lib/src/actions/clear_text.dart b/packages/fluttium/lib/src/actions/clear_text.dart index 28a643e1..81a44192 100644 --- a/packages/fluttium/lib/src/actions/clear_text.dart +++ b/packages/fluttium/lib/src/actions/clear_text.dart @@ -58,7 +58,7 @@ class ClearText extends Action { SystemChannels.textInput.codec.encodeMethodCall( const MethodCall('TextInputClient.performSelectors', [ -1, - ['deleteBackward:'] + ['deleteBackward:'], ]), ), ); diff --git a/packages/fluttium/lib/src/actions/swipe.dart b/packages/fluttium/lib/src/actions/swipe.dart index 858a78b2..f7e96b87 100644 --- a/packages/fluttium/lib/src/actions/swipe.dart +++ b/packages/fluttium/lib/src/actions/swipe.dart @@ -15,7 +15,7 @@ import 'package:fluttium/src/actions/scroll.dart'; /// ``` /// {@endtemplate} class Swipe extends Scroll { - /// {@template swipe} + /// {@macro swipe} Swipe({ required super.within, required super.until, diff --git a/packages/fluttium/lib/src/registry.dart b/packages/fluttium/lib/src/registry.dart index c6c46094..08611611 100644 --- a/packages/fluttium/lib/src/registry.dart +++ b/packages/fluttium/lib/src/registry.dart @@ -38,7 +38,7 @@ class Registry { timeout: timeout, ), aliases: const [ - Alias(['in'], #within) + Alias(['in'], #within), ], ), 'swipe': ActionRegistration( @@ -57,7 +57,7 @@ class Registry { timeout: timeout, ), aliases: const [ - Alias(['in'], #within) + Alias(['in'], #within), ], ), }; diff --git a/packages/fluttium/lib/src/tester.dart b/packages/fluttium/lib/src/tester.dart index 34e76814..f6734b0b 100644 --- a/packages/fluttium/lib/src/tester.dart +++ b/packages/fluttium/lib/src/tester.dart @@ -23,7 +23,8 @@ class Tester { final Registry _registry; - SemanticsOwner get _semanticsOwner => _binding.pipelineOwner.semanticsOwner!; + SemanticsOwner? get _semanticsOwner => + _binding.rootPipelineOwner.semanticsOwner; /// The current screen's media query information. MediaQueryData get mediaQuery => @@ -103,7 +104,7 @@ class Tester { /// /// The [text] can be a [String] that can also be used as a [RegExp]. Future find(String text, {Duration? timeout}) async { - var nodes = _findNodes(_semanticsOwner.rootSemanticsNode!, text); + var nodes = _findNodes(_semanticsOwner!.rootSemanticsNode, text); final end = clock.now().add(timeout ?? const Duration(seconds: 10)); while (nodes.isEmpty) { @@ -111,15 +112,15 @@ class Tester { if (clock.now().isAfter(end)) { return null; } - nodes = _findNodes(_semanticsOwner.rootSemanticsNode!, text); + nodes = _findNodes(_semanticsOwner!.rootSemanticsNode, text); } return nodes.first; } - List _findNodes(SemanticsNode node, String text) { + List _findNodes(SemanticsNode? node, String text) { final nodes = []; - node.visitChildren((n) { + node?.visitChildren((n) { // Add all descendants that match the pattern. if (!n.mergeAllDescendantsIntoThisNode) { nodes.addAll(_findNodes(n, text)); @@ -169,8 +170,7 @@ class Tester { /// Wait for the semantics tree to be fully build. Future ready() async { - while (_binding.pipelineOwner.semanticsOwner == null || - _binding.pipelineOwner.semanticsOwner!.rootSemanticsNode == null) { + while (_semanticsOwner!.rootSemanticsNode == null) { await _binding.endOfFrame; } } diff --git a/packages/fluttium/test/helpers/matchers/is_delete_backwards.dart b/packages/fluttium/test/helpers/matchers/is_delete_backwards.dart index 94d93abe..1a625bcf 100644 --- a/packages/fluttium/test/helpers/matchers/is_delete_backwards.dart +++ b/packages/fluttium/test/helpers/matchers/is_delete_backwards.dart @@ -6,7 +6,7 @@ Matcher get isDeleteBackward { 'method': 'TextInputClient.performSelectors', 'args': [ -1, - ['deleteBackward:'] + ['deleteBackward:'], ], }); diff --git a/packages/fluttium/test/helpers/matchers/is_text.dart b/packages/fluttium/test/helpers/matchers/is_text.dart index 627c2a70..ce93e9c0 100644 --- a/packages/fluttium/test/helpers/matchers/is_text.dart +++ b/packages/fluttium/test/helpers/matchers/is_text.dart @@ -9,7 +9,7 @@ Matcher isText(String text) { TextEditingValue( text: text, selection: TextSelection.collapsed(offset: text.length), - ).toJSON() + ).toJSON(), ], }); diff --git a/packages/fluttium/test/src/registry_test.dart b/packages/fluttium/test/src/registry_test.dart index 8a3b65a8..b27de996 100644 --- a/packages/fluttium/test/src/registry_test.dart +++ b/packages/fluttium/test/src/registry_test.dart @@ -65,7 +65,7 @@ void main() { 'action', _TestActionWithArguments.new, aliases: [ - Alias(['withKey'], #key) + Alias(['withKey'], #key), ], ); @@ -73,7 +73,7 @@ void main() { expect( registry.actions['action']!.aliases, equals([ - Alias(['withKey'], #key) + Alias(['withKey'], #key), ]), ); }); @@ -130,7 +130,7 @@ void main() { 'action', _TestActionWithArguments.new, aliases: [ - Alias(['withKey'], #key) + Alias(['withKey'], #key), ], ); diff --git a/packages/fluttium/test/src/tester_test.dart b/packages/fluttium/test/src/tester_test.dart index bbb21c38..5fbde686 100644 --- a/packages/fluttium/test/src/tester_test.dart +++ b/packages/fluttium/test/src/tester_test.dart @@ -26,7 +26,12 @@ class _MockRegistry extends Mock implements Registry {} class _MockChannelBuffers extends Mock implements ChannelBuffers {} -class _MockPipelineOwner extends Mock implements PipelineOwner {} +class _MockPipelineOwner extends Mock implements PipelineOwner { + @override + String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + return super.toString(); + } +} class _MockSemanticsOwner extends Mock implements SemanticsOwner {} @@ -302,7 +307,7 @@ void main() { semanticsOwner = _MockSemanticsOwner(); final pipelineOwner = _MockPipelineOwner(); - when(() => binding.pipelineOwner).thenReturn(pipelineOwner); + when(() => binding.rootPipelineOwner).thenReturn(pipelineOwner); when(() => pipelineOwner.semanticsOwner).thenReturn(semanticsOwner); rootNode = MockSemanticsNode(); @@ -488,7 +493,7 @@ void main() { semanticsOwner = _MockSemanticsOwner(); final pipelineOwner = _MockPipelineOwner(); - when(() => binding.pipelineOwner).thenReturn(pipelineOwner); + when(() => binding.rootPipelineOwner).thenReturn(pipelineOwner); when(() => pipelineOwner.semanticsOwner).thenReturn(semanticsOwner); rootNode = MockSemanticsNode(); @@ -498,7 +503,8 @@ void main() { test('resolve when ready', () { expect(tester.ready(), completes); - verify(() => binding.pipelineOwner.semanticsOwner).called(equals(2)); + verify(() => binding.rootPipelineOwner.semanticsOwner) + .called(equals(2)); verify(() => semanticsOwner.rootSemanticsNode).called(equals(1)); }); @@ -510,7 +516,8 @@ void main() { expect(tester.ready(), completes); - verify(() => binding.pipelineOwner.semanticsOwner).called(equals(2)); + verify(() => binding.rootPipelineOwner.semanticsOwner) + .called(equals(2)); verify(() => semanticsOwner.rootSemanticsNode).called(equals(1)); verify(() => binding.endOfFrame).called(equals(1)); }); diff --git a/packages/fluttium_cli/test/src/commands/test_command/test_command_test.dart b/packages/fluttium_cli/test/src/commands/test_command/test_command_test.dart index 89f43c16..c1aa84cf 100644 --- a/packages/fluttium_cli/test/src/commands/test_command/test_command_test.dart +++ b/packages/fluttium_cli/test/src/commands/test_command/test_command_test.dart @@ -769,9 +769,9 @@ Either adjust the constraint in the Fluttium configuration or update the CLI to fileStep.copyWith( status: StepStatus.done, files: { - 'file.txt': [1, 2, 3] + 'file.txt': [1, 2, 3], }, - ) + ), ]); await Future.delayed(Duration.zero); @@ -834,7 +834,7 @@ Either adjust the constraint in the Fluttium configuration or update the CLI to stepStateController.add([ step1.copyWith(status: StepStatus.done), step2.copyWith(status: StepStatus.running), - step3 + step3, ]); await Future.delayed(Duration.zero); @@ -845,7 +845,7 @@ Either adjust the constraint in the Fluttium configuration or update the CLI to stepStateController.add([ step1.copyWith(status: StepStatus.done), step2.copyWith(status: StepStatus.failed), - step3 + step3, ]); await Future.delayed(Duration.zero); @@ -911,7 +911,7 @@ Either adjust the constraint in the Fluttium configuration or update the CLI to stepStateController.add([ step1.copyWith(status: StepStatus.done), step2.copyWith(status: StepStatus.running), - step3 + step3, ]); await Future.delayed(Duration.zero); @@ -923,7 +923,7 @@ Either adjust the constraint in the Fluttium configuration or update the CLI to stepStateController.add([ step1.copyWith(status: StepStatus.done), step2.copyWith(status: StepStatus.done), - step3.copyWith(status: StepStatus.done) + step3.copyWith(status: StepStatus.done), ]); await Future.delayed(Duration.zero); @@ -970,7 +970,7 @@ Either adjust the constraint in the Fluttium configuration or update the CLI to stepStateController.add([ step1.copyWith(status: StepStatus.done), step2.copyWith(status: StepStatus.running), - step3 + step3, ]); await Future.delayed(Duration.zero); @@ -982,7 +982,7 @@ Either adjust the constraint in the Fluttium configuration or update the CLI to stepStateController.add([ step1.copyWith(status: StepStatus.done), step2.copyWith(status: StepStatus.failed), - step3 + step3, ]); await Future.delayed(Duration.zero); @@ -1087,7 +1087,7 @@ Either adjust the constraint in the Fluttium configuration or update the CLI to stepStateController.add([ step1.copyWith(status: StepStatus.done), step2.copyWith(status: StepStatus.running), - step3 + step3, ]); await Future.delayed(Duration.zero); @@ -1132,7 +1132,7 @@ Either adjust the constraint in the Fluttium configuration or update the CLI to stepStateController.add([ step1.copyWith(status: StepStatus.done), step2.copyWith(status: StepStatus.running), - step3 + step3, ]); await Future.delayed(Duration.zero); @@ -1143,7 +1143,7 @@ Either adjust the constraint in the Fluttium configuration or update the CLI to stepStateController.add([ step1.copyWith(status: StepStatus.done), step2.copyWith(status: StepStatus.failed), - step3 + step3, ]); await Future.delayed(Duration.zero); @@ -1235,11 +1235,11 @@ Either adjust the constraint in the Fluttium configuration or update the CLI to step1.copyWith( status: StepStatus.done, files: { - 'test_file': [1, 2, 3] + 'test_file': [1, 2, 3], }, ), step2, - step3 + step3, ]); await Future.delayed(Duration.zero); diff --git a/packages/fluttium_cli/test/src/json_decode_safely_test.dart b/packages/fluttium_cli/test/src/json_decode_safely_test.dart index 3685b588..43abdca2 100644 --- a/packages/fluttium_cli/test/src/json_decode_safely_test.dart +++ b/packages/fluttium_cli/test/src/json_decode_safely_test.dart @@ -66,7 +66,7 @@ Some output 'b': { 'd': 5, 'e': 6, - 'f': [7, 8, 9] + 'f': [7, 8, 9], }, 'c': 4, }), diff --git a/packages/fluttium_driver/test/src/fluttium_driver_test.dart b/packages/fluttium_driver/test/src/fluttium_driver_test.dart index e1d9b933..e2938bff 100644 --- a/packages/fluttium_driver/test/src/fluttium_driver_test.dart +++ b/packages/fluttium_driver/test/src/fluttium_driver_test.dart @@ -118,7 +118,7 @@ void main() { (_) async => [ GeneratedFile.created( path: '/project_directory/.fluttium_test_launcher.dart', - ) + ), ], ); launcherGeneratorHooks = _MockGeneratorHooks(); @@ -209,7 +209,7 @@ name: project_name 'run', '/project_directory/.fluttium_test_launcher.dart', '-d', - 'deviceId' + 'deviceId', ]), ), runInShell: any(named: 'runInShell'), @@ -352,11 +352,11 @@ name: project_name 'source': ''' hosted: https://pub.dev/packages/hosted_action - version: ^1.2.3''' + version: ^1.2.3''', }, { 'name': 'git_action_simple', - 'source': 'git@github.com/wolfenrain/git_action_simple' + 'source': 'git@github.com/wolfenrain/git_action_simple', }, { 'name': 'git_action_advanced', @@ -365,21 +365,21 @@ name: project_name git: url: git@github.com/wolfenrain/git_action_advanced ref: dev - path: packages/advanced''' + path: packages/advanced''', }, { 'name': 'path_action', 'source': ''' - path: /project_directory/path_action''' + path: /project_directory/path_action''', } ], 'steps': [ { - 'step': json.encode({'pressOn': 'Text'}) + 'step': json.encode({'pressOn': 'Text'}), }, { - 'step': json.encode({'expectVisible': 'Text'}) + 'step': json.encode({'expectVisible': 'Text'}), } ], }), @@ -456,7 +456,7 @@ name: project_name 'run', '/project_directory/.fluttium_test_launcher.dart', '-d', - 'deviceId' + 'deviceId', ]), ), runInShell: any(named: 'runInShell', that: isTrue), @@ -512,7 +512,7 @@ name: project_name 'stepName1', status: StepStatus.done, files: const { - 'fileName': [1, 2, 3] + 'fileName': [1, 2, 3], }, ), StepState( @@ -744,9 +744,9 @@ extension on MessageType { {'type': 'start'}, { 'type': 'data', - 'data': r'"{\"type\":\"fatal\",\"data\":\"\\\"fatal reason\\\"\"}"' + 'data': r'"{\"type\":\"fatal\",\"data\":\"\\\"fatal reason\\\"\"}"', }, - {'type': 'done'} + {'type': 'done'}, ].map((data) => utf8.encode('${json.encode(data)}\n')); case MessageType.announce: return [ @@ -754,9 +754,9 @@ extension on MessageType { { 'type': 'data', 'data': - '"{\\"type\\":\\"announce\\",\\"data\\":\\"\\\\\\"$stepName\\\\\\"\\"}"' + '"{\\"type\\":\\"announce\\",\\"data\\":\\"\\\\\\"$stepName\\\\\\"\\"}"', }, - {'type': 'done'} + {'type': 'done'}, ].map((data) => utf8.encode('${json.encode(data)}\n')); case MessageType.start: return [ @@ -764,7 +764,7 @@ extension on MessageType { { 'type': 'data', 'data': - '"{\\"type\\":\\"start\\",\\"data\\":\\"\\\\\\"$stepName\\\\\\"\\"}"' + '"{\\"type\\":\\"start\\",\\"data\\":\\"\\\\\\"$stepName\\\\\\"\\"}"', }, {'type': 'done'}, ].map((data) => utf8.encode('${json.encode(data)}\n')); @@ -774,7 +774,7 @@ extension on MessageType { { 'type': 'data', 'data': - '"{\\"type\\":\\"done\\",\\"data\\":\\"\\\\\\"$stepName\\\\\\"\\"}"' + '"{\\"type\\":\\"done\\",\\"data\\":\\"\\\\\\"$stepName\\\\\\"\\"}"', }, {'type': 'done'}, ].map((data) => utf8.encode('${json.encode(data)}\n')); @@ -784,7 +784,7 @@ extension on MessageType { { 'type': 'data', 'data': - '"{\\"type\\":\\"fail\\",\\"data\\":\\"[\\\\\\"$stepName\\\\\\",\\\\\\"reason\\\\\\"]\\"}"' + '"{\\"type\\":\\"fail\\",\\"data\\":\\"[\\\\\\"$stepName\\\\\\",\\\\\\"reason\\\\\\"]\\"}"', }, {'type': 'done'}, ].map((data) => utf8.encode('${json.encode(data)}\n')); @@ -794,7 +794,7 @@ extension on MessageType { { 'type': 'data', 'data': - r'"{\"type\":\"store\",\"data\":\"[\\\"fileName\\\",[1,2,3]]\"}"' + r'"{\"type\":\"store\",\"data\":\"[\\\"fileName\\\",[1,2,3]]\"}"', }, {'type': 'done'}, ].map((data) => utf8.encode('${json.encode(data)}\n')); diff --git a/packages/fluttium_driver/test/src/step_result_test.dart b/packages/fluttium_driver/test/src/step_result_test.dart index a0612a40..047d9f40 100644 --- a/packages/fluttium_driver/test/src/step_result_test.dart +++ b/packages/fluttium_driver/test/src/step_result_test.dart @@ -18,7 +18,7 @@ void main() { final copied = state.copyWith( status: StepStatus.done, files: { - 'file': [1, 2, 3] + 'file': [1, 2, 3], }, failReason: 'failReason', ); @@ -28,7 +28,7 @@ void main() { expect( copied.files, equals({ - 'file': [1, 2, 3] + 'file': [1, 2, 3], }), ); expect(copied.failReason, equals('failReason')); diff --git a/packages/fluttium_interfaces/lib/src/fluttium/fluttium_yaml.dart b/packages/fluttium_interfaces/lib/src/fluttium/fluttium_yaml.dart index f3a75666..a955ec9b 100644 --- a/packages/fluttium_interfaces/lib/src/fluttium/fluttium_yaml.dart +++ b/packages/fluttium_interfaces/lib/src/fluttium/fluttium_yaml.dart @@ -31,7 +31,7 @@ class FluttiumYaml extends Equatable { actions: { for (final entry in (yaml['actions'] as Map? ?? {}).entries) - entry.key: ActionLocation.fromJson(entry.value) + entry.key: ActionLocation.fromJson(entry.value), }, driver: DriverConfiguration.fromJson( yaml['driver'] as Map? ?? {}, diff --git a/packages/fluttium_interfaces/lib/src/user_flow/user_flow_yaml.dart b/packages/fluttium_interfaces/lib/src/user_flow/user_flow_yaml.dart index 697e15f1..5f4ec30b 100644 --- a/packages/fluttium_interfaces/lib/src/user_flow/user_flow_yaml.dart +++ b/packages/fluttium_interfaces/lib/src/user_flow/user_flow_yaml.dart @@ -28,7 +28,7 @@ class UserFlowYaml extends Equatable { description: metaData['description'] as String? ?? '', steps: [ for (final step in stepData.cast>()) - UserFlowStep.fromJson(step) + UserFlowStep.fromJson(step), ], ); } diff --git a/packages/fluttium_interfaces/test/src/fluttium/action_location_test.dart b/packages/fluttium_interfaces/test/src/fluttium/action_location_test.dart index 0ca7da43..cc091883 100644 --- a/packages/fluttium_interfaces/test/src/fluttium/action_location_test.dart +++ b/packages/fluttium_interfaces/test/src/fluttium/action_location_test.dart @@ -66,7 +66,7 @@ void main() { 'url': 'git@git.some.where/some/action.git', 'ref': 'main', 'path': 'some/path', - } + }, }); expect(location.hosted, isNull); diff --git a/packages/fluttium_interfaces/test/src/user_flow/user_flow_step_test.dart b/packages/fluttium_interfaces/test/src/user_flow/user_flow_step_test.dart index 49cd71c0..9cd1ef48 100644 --- a/packages/fluttium_interfaces/test/src/user_flow/user_flow_step_test.dart +++ b/packages/fluttium_interfaces/test/src/user_flow/user_flow_step_test.dart @@ -19,7 +19,7 @@ void main() { final step = UserFlowStep.fromJson(const { 'expectVisible': { 'text': 'findByText', - } + }, }); expect(step.actionName, equals('expectVisible')); diff --git a/packages/fluttium_protocol/example/main.dart b/packages/fluttium_protocol/example/main.dart index 0d67567f..0c8af5a2 100644 --- a/packages/fluttium_protocol/example/main.dart +++ b/packages/fluttium_protocol/example/main.dart @@ -22,19 +22,19 @@ Stream> _fakeData() async* { {'type': 'start'}, { 'type': 'data', - 'data': r'"{\"type\":\"announce\",\"data\":\"\\\"stepName\\\"\"}"' + 'data': r'"{\"type\":\"announce\",\"data\":\"\\\"stepName\\\"\"}"', }, {'type': 'done'}, {'type': 'start'}, { 'type': 'data', - 'data': r'"{\"type\":\"start\",\"data\":\"\\\"stepName\\\"\"}"' + 'data': r'"{\"type\":\"start\",\"data\":\"\\\"stepName\\\"\"}"', }, {'type': 'done'}, {'type': 'start'}, { 'type': 'data', - 'data': r'"{\"type\":\"done\",\"data\":\"\\\"stepName\\\"\"}"' + 'data': r'"{\"type\":\"done\",\"data\":\"\\\"stepName\\\"\"}"', }, {'type': 'done'}, ]; diff --git a/packages/fluttium_protocol/test/src/emitter_test.dart b/packages/fluttium_protocol/test/src/emitter_test.dart index 516d08fd..954e7bb5 100644 --- a/packages/fluttium_protocol/test/src/emitter_test.dart +++ b/packages/fluttium_protocol/test/src/emitter_test.dart @@ -18,7 +18,7 @@ void main() { equals([ '{"type":"start"}', r'{"type":"data","data":"\"{\\\"type\\\":\\\"announce\\\",\\\"data\\\":\\\"\\\\\\\"step\\\\\\\"\\\"}\""}', - '{"type":"done"}' + '{"type":"done"}', ]), ); }); @@ -36,7 +36,7 @@ void main() { equals([ '{"type":"start"}', r'{"type":"data","data":"\"{\\\"type\\\":\\\"start\\\",\\\"data\\\":\\\"\\\\\\\"step\\\\\\\"\\\"}\""}', - '{"type":"done"}' + '{"type":"done"}', ]), ); }); @@ -54,7 +54,7 @@ void main() { equals([ '{"type":"start"}', r'{"type":"data","data":"\"{\\\"type\\\":\\\"done\\\",\\\"data\\\":\\\"\\\\\\\"step\\\\\\\"\\\"}\""}', - '{"type":"done"}' + '{"type":"done"}', ]), ); }); @@ -73,7 +73,7 @@ void main() { equals([ '{"type":"start"}', r'{"type":"data","data":"\"{\\\"type\\\":\\\"store\\\",\\\"data\\\":\\\"[\\\\\\\"fileName\\\\\\\",[]]\\\"}\""}', - '{"type":"done"}' + '{"type":"done"}', ]), ); }); @@ -98,7 +98,7 @@ void main() { r'{"type":"data","data":"\"89,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160\""}', r'{"type":"data","data":"\",161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,1\""}', r'{"type":"data","data":"\"32,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231]]\\\"}\""}', - '{"type":"done"}' + '{"type":"done"}', ]), ); }); @@ -117,7 +117,7 @@ void main() { equals([ '{"type":"start"}', r'{"type":"data","data":"\"{\\\"type\\\":\\\"fatal\\\",\\\"data\\\":\\\"\\\\\\\"reason\\\\\\\"\\\"}\""}', - '{"type":"done"}' + '{"type":"done"}', ]), ); }); @@ -135,7 +135,7 @@ void main() { equals([ '{"type":"start"}', r'{"type":"data","data":"\"{\\\"type\\\":\\\"fail\\\",\\\"data\\\":\\\"[\\\\\\\"step\\\\\\\",\\\\\\\"reason\\\\\\\"]\\\"}\""}', - '{"type":"done"}' + '{"type":"done"}', ]), ); });