Roll engine to b64c88766dbd83bf4bab1cd1cd1757139b6cdb74. (#8124)
* Roll engine to b64c88766dbd83bf4bab1cd1cd1757139b6cdb74. Picks up changes to include inlined frames and line numbers in AOT stack traces. * Adjust/weaken stack_trace_test.dart to pass in the face of async causal stack traces (Issue #8128).
This commit is contained in:
committed by
Michael Goderbauer
parent
2d62d1b88d
commit
15af4a04af
@@ -1 +1 @@
|
||||
f306a6f7011244e5b5c7470e178760bf87560e4b
|
||||
b64c88766dbd83bf4bab1cd1cd1757139b6cdb74
|
||||
|
||||
@@ -6,19 +6,22 @@ import 'package:flutter/foundation.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
// TODO(8128): These tests and the filtering mechanism should be revisited to account for causal async stack traces.
|
||||
|
||||
test('FlutterError.defaultStackFilter', () {
|
||||
List<String> filtered = FlutterError.defaultStackFilter(StackTrace.current.toString().trimRight().split('\n')).toList();
|
||||
expect(filtered.length, 4);
|
||||
expect(filtered.length, greaterThanOrEqualTo(4));
|
||||
expect(filtered[0], matches(r'^#0 +main\.<anonymous closure> \(.*stack_trace_test\.dart:[0-9]+:[0-9]+\)$'));
|
||||
expect(filtered[1], matches(r'^#1 +Declarer\.test\.<anonymous closure>\.<<anonymous closure>_async_body>\.<anonymous closure>\.<<anonymous closure>_async_body> \(package:test/.+:[0-9]+:[0-9]+\)$'));
|
||||
expect(filtered[2], matches(r'^#[1-9][0-9]+ +Declarer\._runSetUps\.<_runSetUps_async_body> \(package:test/.+:[0-9]+:[0-9]+\)$'));
|
||||
expect(filtered[3], matches(r'^\(elided [1-9][0-9]+ frames from package dart:async, package dart:async-patch, and package stack_trace\)$'));
|
||||
expect(filtered[2], equals('<asynchronous suspension>'));
|
||||
expect(filtered.last, matches(r'^\(elided [1-9][0-9]+ frames from package dart:async, package dart:async-patch, and package stack_trace\)$'));
|
||||
});
|
||||
|
||||
test('FlutterError.defaultStackFilter (async test body)', () async {
|
||||
List<String> filtered = FlutterError.defaultStackFilter(StackTrace.current.toString().trimRight().split('\n')).toList();
|
||||
expect(filtered.length, 2);
|
||||
expect(filtered.length, greaterThanOrEqualTo(3));
|
||||
expect(filtered[0], matches(r'^#0 +main\.<anonymous closure>\.<<anonymous closure>_async_body> \(.*stack_trace_test\.dart:[0-9]+:[0-9]+\)$'));
|
||||
expect(filtered[1], matches(r'^\(elided [1-9][0-9]+ frames from package dart:async and package stack_trace\)$'));
|
||||
expect(filtered[1], equals('<asynchronous suspension>'));
|
||||
expect(filtered.last, matches(r'^\(elided [1-9][0-9]+ frames from package dart:async, package dart:async-patch, and package stack_trace\)$'));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user