From e3ae7fab62dc754785ab95f4354b629bfb3139d3 Mon Sep 17 00:00:00 2001 From: Ben Konyi Date: Fri, 15 Nov 2019 12:13:59 -0800 Subject: [PATCH] Manual engine roll to b2640d97e7e8034f28b4e7b92c15b0824e433897 (#45000) Fixes failures in some tests which used regular expressions to compare stack traces which had instances of "". --- bin/internal/engine.version | 2 +- packages/flutter/test/foundation/error_reporting_test.dart | 2 -- packages/flutter/test/foundation/stack_trace_test.dart | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/internal/engine.version b/bin/internal/engine.version index 871e1cb175..23deb168cb 100644 --- a/bin/internal/engine.version +++ b/bin/internal/engine.version @@ -1 +1 @@ -096ba6892a435a9149b0406592eab7ba866bceb8 +b2640d97e7e8034f28b4e7b92c15b0824e433897 diff --git a/packages/flutter/test/foundation/error_reporting_test.dart b/packages/flutter/test/foundation/error_reporting_test.dart index 48fdc2a6a7..6c661a9594 100644 --- a/packages/flutter/test/foundation/error_reporting_test.dart +++ b/packages/flutter/test/foundation/error_reporting_test.dart @@ -79,7 +79,6 @@ Future main() async { 'When the exception was thrown, this was the stack:\n' '#0 getSampleStack\\. \\([^)]+flutter/test/foundation/error_reporting_test\\.dart:[0-9]+:[0-9]+\\)\n' '#2 getSampleStack \\([^)]+flutter/test/foundation/error_reporting_test\\.dart:[0-9]+:[0-9]+\\)\n' - '\n' // TODO(ianh): https://github.com/flutter/flutter/issues/4021 '#3 main \\([^)]+flutter/test/foundation/error_reporting_test\\.dart:[0-9]+:[0-9]+\\)\n' '(.+\n)+' // TODO(ianh): when fixing #4021, also filter out frames from the test infrastructure below the first call to our main() '\\(elided [0-9]+ frames from package dart:async\\)\n' @@ -162,7 +161,6 @@ Future main() async { 'When the exception was thrown, this was the stack:\n' '#0 getSampleStack\\. \\([^)]+flutter/test/foundation/error_reporting_test\\.dart:[0-9]+:[0-9]+\\)\n' '#2 getSampleStack \\([^)]+flutter/test/foundation/error_reporting_test\\.dart:[0-9]+:[0-9]+\\)\n' - '\n' // TODO(ianh): https://github.com/flutter/flutter/issues/4021 '#3 main \\([^)]+flutter/test/foundation/error_reporting_test\\.dart:[0-9]+:[0-9]+\\)\n' '(.+\n)+' // TODO(ianh): when fixing #4021, also filter out frames from the test infrastructure below the first call to our main() '\\(elided [0-9]+ frames from package dart:async\\)\n' diff --git a/packages/flutter/test/foundation/stack_trace_test.dart b/packages/flutter/test/foundation/stack_trace_test.dart index e935c24512..c02dcadf79 100644 --- a/packages/flutter/test/foundation/stack_trace_test.dart +++ b/packages/flutter/test/foundation/stack_trace_test.dart @@ -23,7 +23,6 @@ void main() { 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[1], equals('')); expect(filtered.last, matches(r'^\(elided [1-9][0-9]+ frames from package dart:async(, package dart:async-patch,)? and package stack_trace\)$')); }); }