mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

Most of these imports were never appropriate. The `test_api` package was never intended for use in `_test.dart` files. Where possible move imports to `matcher`, otherwise move them to `test` or `flutter_test`. Leave uses of `test_api` from `flutter_test` library code.
18 lines
636 B
Dart
18 lines
636 B
Dart
// 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/scheduler.dart';
|
|
import 'package:flutter_test/flutter_test.dart' hide TypeMatcher, isInstanceOf;
|
|
|
|
import '../../../rendering/touch_input.dart' as demo;
|
|
|
|
void main() {
|
|
test('layers smoketest for rendering/touch_input.dart', () {
|
|
FlutterError.onError = (FlutterErrorDetails details) { throw details.exception; };
|
|
demo.main();
|
|
expect(SchedulerBinding.instance.hasScheduledFrame, true);
|
|
});
|
|
}
|