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