[flutter_tools] ensure generated entrypoint matches test and web entrypoint language version (#59291)

Ensure that the language version of the test/web generated entrypoint matches the language version of the test file to run, or the overall package language version if no annotation is provided.
This commit is contained in:
Jonah Williams
2020-06-16 09:17:12 -07:00
committed by GitHub
parent 584fd5f913
commit 958f7c5b55
6 changed files with 324 additions and 18 deletions

View File

@@ -544,7 +544,7 @@ Future<void> _runAddToAppLifeCycleTests() async {
Future<void> _runFrameworkTests() async {
final bq.BigqueryApi bigqueryApi = await _getBigqueryApi();
final List<String> nullSafetyOptions = <String>['--enable-experiment=non-nullable', '--no-sound-null-safety'];
final List<String> nullSafetyOptions = <String>['--enable-experiment=non-nullable'];
final List<String> trackWidgetCreationAlternatives = <String>['--track-widget-creation', '--no-track-widget-creation'];
Future<void> runWidgets() async {

View File

@@ -2,11 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart=2.9
// @dart=2.8
import 'package:flutter_test/flutter_test.dart';
String? x;
void main() {
testWidgets('trivial', (WidgetTester tester) async {
expect(true, true);