Turn Dart 2 mode by default. (#15565)
This commit is contained in:
committed by
GitHub
parent
c663e3367d
commit
71b2cfb2a0
@@ -8,8 +8,7 @@ When the exception was thrown, this was the stack:
|
||||
<asynchronous suspension>
|
||||
#1 .+ \(package:flutter_test[/\\]src[/\\]widget_tester\.dart:[0-9]+:[0-9]+\)
|
||||
<<skip until matching line>>
|
||||
^\(elided [0-9]+ .+[^)]$
|
||||
^.+\)$
|
||||
^\(elided [0-9]+ .+\)$
|
||||
|
||||
The test description was:
|
||||
Exception handling in test harness - string
|
||||
@@ -28,8 +27,7 @@ When the exception was thrown, this was the stack:
|
||||
<asynchronous suspension>
|
||||
#1 .+ \(package:flutter_test[/\\]src[/\\]widget_tester\.dart:[0-9]+:[0-9]+\)
|
||||
<<skip until matching line>>
|
||||
^\(elided [0-9]+ .+[^)]$
|
||||
^.+\)$
|
||||
^\(elided [0-9]+ .+\)$
|
||||
|
||||
The test description was:
|
||||
Exception handling in test harness - FlutterError
|
||||
@@ -45,11 +43,10 @@ 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:9\)
|
||||
#[0-9]+ +main.<anonymous closure> \(.+[/\\]dev[/\\]automated_tests[/\\]flutter_test[/\\]exception_handling_test\.dart:15:105\)
|
||||
#[0-9]+ +main.<anonymous closure> \(.+[/\\]dev[/\\]automated_tests[/\\]flutter_test[/\\]exception_handling_test\.dart:15:77\)
|
||||
#[0-9]+ +.+ \(package:flutter_test[/\\]src[/\\]widget_tester\.dart:[0-9]+:[0-9]+\)
|
||||
<<skip until matching line>>
|
||||
^\(elided [0-9]+ .+[^)]$
|
||||
^.+\)$
|
||||
^\(elided [0-9]+ .+\)$
|
||||
|
||||
The test description was:
|
||||
Exception handling in test harness - uncaught Future error
|
||||
|
||||
@@ -29,7 +29,6 @@ const Map<String, ShardRunner> _kShards = const <String, ShardRunner>{
|
||||
'docs': _generateDocs,
|
||||
'analyze': _analyzeRepo,
|
||||
'tests': _runTests,
|
||||
'tests_dart2': _runTestsDart2,
|
||||
'coverage': _runCoverage,
|
||||
};
|
||||
|
||||
@@ -130,15 +129,6 @@ Future<Null> _analyzeRepo() async {
|
||||
print('${bold}DONE: Analysis successful.$reset');
|
||||
}
|
||||
|
||||
Future<Null> _runTestsDart2() async {
|
||||
if (Platform.isWindows) {
|
||||
// AppVeyor platform is overloaded, won't be able to handle additional
|
||||
// load of dart2 testing.
|
||||
return;
|
||||
}
|
||||
_runTests(options: <String>['--preview-dart-2']);
|
||||
}
|
||||
|
||||
Future<Null> _runTests({List<String> options: const <String>[]}) async {
|
||||
// Verify that the tests actually return failure on failure and success on success.
|
||||
final String automatedTests = path.join(flutterRoot, 'dev', 'automated_tests');
|
||||
@@ -631,4 +621,4 @@ Future<Null> _verifyVersion(String filename) async {
|
||||
print('$red━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━$reset');
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user