Remove uses of deprecated test_api imports (#124732)
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.
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// ignore: deprecated_member_use
|
||||
import 'package:test_api/test_api.dart' hide TypeMatcher, isInstanceOf;
|
||||
import 'package:flutter_test/flutter_test.dart' hide TypeMatcher, isInstanceOf;
|
||||
|
||||
import '../../../raw/canvas.dart' as demo;
|
||||
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// ignore: deprecated_member_use
|
||||
import 'package:test_api/test_api.dart' hide TypeMatcher, isInstanceOf;
|
||||
import 'package:flutter_test/flutter_test.dart' hide TypeMatcher, isInstanceOf;
|
||||
|
||||
import '../../../raw/hello_world.dart' as demo;
|
||||
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// ignore: deprecated_member_use
|
||||
import 'package:test_api/test_api.dart' hide TypeMatcher, isInstanceOf;
|
||||
import 'package:flutter_test/flutter_test.dart' hide TypeMatcher, isInstanceOf;
|
||||
|
||||
import '../../../raw/spinning_square.dart' as demo;
|
||||
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// ignore: deprecated_member_use
|
||||
import 'package:test_api/test_api.dart' hide TypeMatcher, isInstanceOf;
|
||||
import 'package:flutter_test/flutter_test.dart' hide TypeMatcher, isInstanceOf;
|
||||
|
||||
import '../../../raw/text.dart' as demo;
|
||||
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// ignore: deprecated_member_use
|
||||
import 'package:test_api/test_api.dart' hide TypeMatcher, isInstanceOf;
|
||||
import 'package:flutter_test/flutter_test.dart' hide TypeMatcher, isInstanceOf;
|
||||
|
||||
import '../../../raw/touch_input.dart' as demo;
|
||||
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/scheduler.dart';
|
||||
// ignore: deprecated_member_use
|
||||
import 'package:test_api/test_api.dart' hide TypeMatcher, isInstanceOf;
|
||||
import 'package:flutter_test/flutter_test.dart' hide TypeMatcher, isInstanceOf;
|
||||
|
||||
import '../../../rendering/custom_coordinate_systems.dart' as demo;
|
||||
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/scheduler.dart';
|
||||
// ignore: deprecated_member_use
|
||||
import 'package:test_api/test_api.dart' hide TypeMatcher, isInstanceOf;
|
||||
import 'package:flutter_test/flutter_test.dart' hide TypeMatcher, isInstanceOf;
|
||||
|
||||
import '../../../rendering/flex_layout.dart' as demo;
|
||||
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/scheduler.dart';
|
||||
// ignore: deprecated_member_use
|
||||
import 'package:test_api/test_api.dart' hide TypeMatcher, isInstanceOf;
|
||||
import 'package:flutter_test/flutter_test.dart' hide TypeMatcher, isInstanceOf;
|
||||
|
||||
import '../../../rendering/hello_world.dart' as demo;
|
||||
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/scheduler.dart';
|
||||
// ignore: deprecated_member_use
|
||||
import 'package:test_api/test_api.dart' hide TypeMatcher, isInstanceOf;
|
||||
import 'package:flutter_test/flutter_test.dart' hide TypeMatcher, isInstanceOf;
|
||||
|
||||
import '../../../rendering/spinning_square.dart' as demo;
|
||||
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/scheduler.dart';
|
||||
// ignore: deprecated_member_use
|
||||
import 'package:test_api/test_api.dart' hide TypeMatcher, isInstanceOf;
|
||||
import 'package:flutter_test/flutter_test.dart' hide TypeMatcher, isInstanceOf;
|
||||
|
||||
import '../../../rendering/touch_input.dart' as demo;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user