blob: c79f4a3ef31b9c8d53dfa91ad063b604a1a5ccca [file] [log] [blame]
// 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/foundation.dart';
import 'package:flutter_test/flutter_test.dart';
class TestFoundationFlutterBinding extends BindingBase {
bool? wasLocked;
@override
Future<void> performReassemble() async {
wasLocked = locked;
return super.performReassemble();
}
}
TestFoundationFlutterBinding binding = TestFoundationFlutterBinding();
void main() {
test('Pointer events are locked during reassemble', () async {
await binding.reassembleApplication();
expect(binding.wasLocked, isTrue);
});
}