Unverified Commit be53bc14 authored by Lau Ching Jun's avatar Lau Ching Jun Committed by GitHub

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.
parent 535526b0
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment