forked from firka/flutter
Adjust tools tests that would be broken by formatting (#160393)
These tests depend on line numbers that `dart format` is changing. Pre-format the files in question and adjust the tests so they continue to pass when the entire repo is formatted.
This commit is contained in:
committed by
GitHub
parent
e19e117c37
commit
79506323b9
@@ -46,7 +46,7 @@ The following message was thrown running a test:
|
||||
Who lives, who dies, who tells your story\?
|
||||
|
||||
When the exception was thrown, this was the stack:
|
||||
#[0-9]+ +main.<anonymous closure> \(.+[/\\]dev[/\\]automated_tests[/\\]flutter_test[/\\]exception_handling_test\.dart:16:5\)
|
||||
#[0-9]+ +main.<anonymous closure> \(.+[/\\]dev[/\\]automated_tests[/\\]flutter_test[/\\]exception_handling_test\.dart:18:5\)
|
||||
<<skip until matching line>>
|
||||
#[0-9]+ +.+ \(package:flutter_test[/\\]src[/\\]widget_tester\.dart:[0-9]+:[0-9]+\)
|
||||
<<skip until matching line>>
|
||||
|
||||
@@ -12,7 +12,9 @@ void main() {
|
||||
testWidgets('Exception handling in test harness - FlutterError', (WidgetTester tester) async {
|
||||
throw FlutterError('Who lives, who dies, who tells your story?');
|
||||
});
|
||||
testWidgets('Exception handling in test harness - uncaught Future error', (WidgetTester tester) async {
|
||||
testWidgets('Exception handling in test harness - uncaught Future error', (
|
||||
WidgetTester tester,
|
||||
) async {
|
||||
Future<void>.error('Who lives, who dies, who tells your story?');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ The following message was thrown running a test:
|
||||
Who lives, who dies, who tells your story\?
|
||||
|
||||
When the exception was thrown, this was the stack:
|
||||
#4 main.<anonymous closure> \(.+[/\\]dev[/\\]automated_tests[/\\]integration_test[/\\]exception_handling_test\.dart:16:5\)
|
||||
#4 main.<anonymous closure> \(.+[/\\]dev[/\\]automated_tests[/\\]integration_test[/\\]exception_handling_test\.dart:18:5\)
|
||||
<<skip until matching line>>
|
||||
The test description was:
|
||||
Exception handling in test harness - uncaught Future error
|
||||
|
||||
@@ -12,7 +12,9 @@ void main() {
|
||||
testWidgets('Exception handling in test harness - FlutterError', (WidgetTester tester) async {
|
||||
throw FlutterError('Who lives, who dies, who tells your story?');
|
||||
});
|
||||
testWidgets('Exception handling in test harness - uncaught Future error', (WidgetTester tester) async {
|
||||
testWidgets('Exception handling in test harness - uncaught Future error', (
|
||||
WidgetTester tester,
|
||||
) async {
|
||||
Future<void>.error('Who lives, who dies, who tells your story?');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user