mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
535526b03c
commit
be53bc14aa
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user