Reset the global variable before running a test. (#46203)
The variable debugDisableShadows wasn't reset before each test, so the output of the test is different depending on whether the previous test has passed.
This commit is contained in:
@@ -6,6 +6,10 @@ import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
void main() {
|
||||
tearDown(() {
|
||||
debugDisableShadows = true;
|
||||
});
|
||||
|
||||
testWidgets('Shadows on BoxDecoration', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
Center(
|
||||
|
||||
Reference in New Issue
Block a user