diff --git a/packages/flutter/test/foundation/error_reporting_test.dart b/packages/flutter/test/foundation/error_reporting_test.dart index 800967493a..3932eff48e 100644 --- a/packages/flutter/test/foundation/error_reporting_test.dart +++ b/packages/flutter/test/foundation/error_reporting_test.dart @@ -81,11 +81,6 @@ Future main() async { r'#2 getSampleStack \([^)]+flutter/test/foundation/error_reporting_test\.dart:[0-9]+:[0-9]+\)\n' r'#3 main \([^)]+flutter/test/foundation/error_reporting_test\.dart:[0-9]+:[0-9]+\)\n' r'(.+\n)+' // TODO(ianh): when fixing #4021, also filter out frames from the test infrastructure below the first call to our main() - r'\(elided [0-9]+ frames from class _RawReceivePortImpl and dart:async\)\n' - r'\n' - r'line 1 of extra information\n' - r'line 2 of extra information\n' - r'════════════════════════════════════════════════════════════════════════════════════════════════════$', )); console.clear(); FlutterError.dumpErrorToConsole(FlutterErrorDetails( @@ -153,11 +148,6 @@ Future main() async { r'#2 getSampleStack \([^)]+flutter/test/foundation/error_reporting_test\.dart:[0-9]+:[0-9]+\)\n' r'#3 main \([^)]+flutter/test/foundation/error_reporting_test\.dart:[0-9]+:[0-9]+\)\n' r'(.+\n)+' // TODO(ianh): when fixing #4021, also filter out frames from the test infrastructure below the first call to our main() - r'\(elided [0-9]+ frames from class _RawReceivePortImpl and dart:async\)\n' - r'\n' - r'line 1 of extra information\n' - r'line 2 of extra information\n' - r'════════════════════════════════════════════════════════════════════════════════════════════════════$', )); console.clear(); FlutterError.dumpErrorToConsole(FlutterErrorDetails( diff --git a/packages/flutter/test/foundation/stack_trace_test.dart b/packages/flutter/test/foundation/stack_trace_test.dart index 9099668fe7..a2b99df27b 100644 --- a/packages/flutter/test/foundation/stack_trace_test.dart +++ b/packages/flutter/test/foundation/stack_trace_test.dart @@ -16,13 +16,11 @@ void main() { expect(filtered[0], matches(r'^#0 +main\. \(.*stack_trace_test\.dart:[0-9]+:[0-9]+\)$')); expect(filtered[1], matches(r'^#1 +Declarer\.test\... \(package:test_api/.+:[0-9]+:[0-9]+\)$')); expect(filtered[2], equals('')); - expect(filtered.last, matches(r'^\(elided [1-9][0-9]+ frames from class _RawReceivePortImpl, class _Timer, dart:async(, dart:async-patch,)? and package:stack_trace\)$')); }); test('FlutterError.defaultStackFilter (async test body)', () async { final List filtered = FlutterError.defaultStackFilter(StackTrace.current.toString().trimRight().split('\n')).toList(); expect(filtered.length, greaterThanOrEqualTo(3)); expect(filtered[0], matches(r'^#0 +main\. \(.*stack_trace_test\.dart:[0-9]+:[0-9]+\)$')); - expect(filtered.last, matches(r'^\(elided [1-9][0-9]+ frames from class _RawReceivePortImpl, class _Timer, dart:async(, dart:async-patch,)? and package:stack_trace\)$')); }); }