mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
I forgot that it was possible for the root view to get marked dirty without getting a new widget. This fixes that case to work.
18 lines
534 B
Dart
18 lines
534 B
Dart
// Copyright 2016 The Chromium 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/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
void main() {
|
|
testWidgets('reassemble does not crash', (WidgetTester tester) async {
|
|
await tester.pumpWidget(new MaterialApp(
|
|
home: new Text('Hello World')
|
|
));
|
|
await tester.pump();
|
|
tester.binding.reassembleApplication();
|
|
await tester.pump();
|
|
});
|
|
}
|