[flutter_tools] add support for dart defines to flutter test (#70791)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
[0-9]+:[0-9]+ [+]1: All tests passed!
|
||||
11
dev/automated_tests/flutter_test/dart_defines_test.dart
Normal file
11
dev/automated_tests/flutter_test/dart_defines_test.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
test('Dart defines can be provided', () {
|
||||
expect(const String.fromEnvironment('flutter.test.foo'), 'bar');
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user