From 3de0ba5a6453b8e51eff582356e44870ec4de954 Mon Sep 17 00:00:00 2001 From: Konstantin Scheglov Date: Fri, 6 Nov 2020 09:55:29 -0800 Subject: [PATCH] Ignore several import_of_legacy_library_into_null_safe (flutter/engine#22326) --- engine/src/flutter/lib/web_ui/lib/src/engine.dart | 4 ++-- .../flutter/lib/web_ui/test/engine/path_metrics_test.dart | 8 ++++---- .../test/engine/surface/path/path_iterator_test.dart | 4 ++-- .../test/engine/surface/path/path_winding_test.dart | 4 ++-- engine/src/flutter/lib/web_ui/test/engine/ulps_test.dart | 4 ++-- .../golden_tests/engine/color_filter_golden_test.dart | 6 +++--- engine/src/flutter/lib/web_ui/test/lerp_test.dart | 4 ++-- engine/src/flutter/lib/web_ui/test/path_test.dart | 6 +++--- .../flutter/lib/web_ui/test/text/line_breaker_test.dart | 4 ++-- 9 files changed, 22 insertions(+), 22 deletions(-) diff --git a/engine/src/flutter/lib/web_ui/lib/src/engine.dart b/engine/src/flutter/lib/web_ui/lib/src/engine.dart index bf31b05a38..53d778fb91 100644 --- a/engine/src/flutter/lib/web_ui/lib/src/engine.dart +++ b/engine/src/flutter/lib/web_ui/lib/src/engine.dart @@ -17,8 +17,8 @@ import 'dart:js_util' as js_util; import 'dart:math' as math; import 'dart:typed_data'; -import 'package:js/js.dart'; -import 'package:meta/meta.dart'; +import 'package:js/js.dart'; // ignore: import_of_legacy_library_into_null_safe +import 'package:meta/meta.dart'; // ignore: import_of_legacy_library_into_null_safe import '../ui.dart' as ui; diff --git a/engine/src/flutter/lib/web_ui/test/engine/path_metrics_test.dart b/engine/src/flutter/lib/web_ui/test/engine/path_metrics_test.dart index a8938f913d..a709120753 100644 --- a/engine/src/flutter/lib/web_ui/test/engine/path_metrics_test.dart +++ b/engine/src/flutter/lib/web_ui/test/engine/path_metrics_test.dart @@ -4,11 +4,11 @@ import 'dart:math' as math; -import 'package:test/bootstrap/browser.dart'; -import 'package:test/test.dart'; -import 'package:ui/ui.dart'; +import 'package:test/bootstrap/browser.dart'; // ignore: import_of_legacy_library_into_null_safe +import 'package:test/test.dart'; // ignore: import_of_legacy_library_into_null_safe +import 'package:ui/ui.dart'; // ignore: import_of_legacy_library_into_null_safe -import '../matchers.dart'; +import '../matchers.dart'; // ignore: import_of_legacy_library_into_null_safe const double kTolerance = 0.001; diff --git a/engine/src/flutter/lib/web_ui/test/engine/surface/path/path_iterator_test.dart b/engine/src/flutter/lib/web_ui/test/engine/surface/path/path_iterator_test.dart index 3e4c21e029..f0c914330a 100644 --- a/engine/src/flutter/lib/web_ui/test/engine/surface/path/path_iterator_test.dart +++ b/engine/src/flutter/lib/web_ui/test/engine/surface/path/path_iterator_test.dart @@ -5,8 +5,8 @@ import 'dart:typed_data'; import 'package:ui/src/engine.dart'; -import 'package:test/bootstrap/browser.dart'; -import 'package:test/test.dart'; +import 'package:test/bootstrap/browser.dart'; // ignore: import_of_legacy_library_into_null_safe +import 'package:test/test.dart'; // ignore: import_of_legacy_library_into_null_safe void main() { internalBootstrapBrowserTest(() => testMain); diff --git a/engine/src/flutter/lib/web_ui/test/engine/surface/path/path_winding_test.dart b/engine/src/flutter/lib/web_ui/test/engine/surface/path/path_winding_test.dart index b5bde4c075..e7658e608c 100644 --- a/engine/src/flutter/lib/web_ui/test/engine/surface/path/path_winding_test.dart +++ b/engine/src/flutter/lib/web_ui/test/engine/surface/path/path_winding_test.dart @@ -5,8 +5,8 @@ // @dart = 2.10 import 'dart:math' as math; -import 'package:test/bootstrap/browser.dart'; -import 'package:test/test.dart'; +import 'package:test/bootstrap/browser.dart'; // ignore: import_of_legacy_library_into_null_safe +import 'package:test/test.dart'; // ignore: import_of_legacy_library_into_null_safe import 'package:ui/ui.dart' hide window; import 'package:ui/src/engine.dart'; diff --git a/engine/src/flutter/lib/web_ui/test/engine/ulps_test.dart b/engine/src/flutter/lib/web_ui/test/engine/ulps_test.dart index d0a26c45fa..871efcd538 100644 --- a/engine/src/flutter/lib/web_ui/test/engine/ulps_test.dart +++ b/engine/src/flutter/lib/web_ui/test/engine/ulps_test.dart @@ -3,8 +3,8 @@ // found in the LICENSE file. import 'dart:typed_data'; -import 'package:test/bootstrap/browser.dart'; -import 'package:test/test.dart'; +import 'package:test/bootstrap/browser.dart'; // ignore: import_of_legacy_library_into_null_safe +import 'package:test/test.dart'; // ignore: import_of_legacy_library_into_null_safe import 'package:ui/src/engine.dart'; void main() { diff --git a/engine/src/flutter/lib/web_ui/test/golden_tests/engine/color_filter_golden_test.dart b/engine/src/flutter/lib/web_ui/test/golden_tests/engine/color_filter_golden_test.dart index c393065284..ac34b1f165 100644 --- a/engine/src/flutter/lib/web_ui/test/golden_tests/engine/color_filter_golden_test.dart +++ b/engine/src/flutter/lib/web_ui/test/golden_tests/engine/color_filter_golden_test.dart @@ -6,12 +6,12 @@ import 'dart:html' as html; import 'dart:js_util' as js_util; -import 'package:test/bootstrap/browser.dart'; -import 'package:test/test.dart'; +import 'package:test/bootstrap/browser.dart'; // ignore: import_of_legacy_library_into_null_safe +import 'package:test/test.dart'; // ignore: import_of_legacy_library_into_null_safe import 'package:ui/ui.dart'; import 'package:ui/src/engine.dart'; -import 'package:web_engine_tester/golden_tester.dart'; +import 'package:web_engine_tester/golden_tester.dart'; // ignore: import_of_legacy_library_into_null_safe final Rect region = Rect.fromLTWH(0, 0, 500, 500); diff --git a/engine/src/flutter/lib/web_ui/test/lerp_test.dart b/engine/src/flutter/lib/web_ui/test/lerp_test.dart index 433ffbd066..e7a5d7ad7c 100644 --- a/engine/src/flutter/lib/web_ui/test/lerp_test.dart +++ b/engine/src/flutter/lib/web_ui/test/lerp_test.dart @@ -3,8 +3,8 @@ // found in the LICENSE file. // @dart = 2.10 -import 'package:test/bootstrap/browser.dart'; -import 'package:test/test.dart'; +import 'package:test/bootstrap/browser.dart'; // ignore: import_of_legacy_library_into_null_safe +import 'package:test/test.dart'; // ignore: import_of_legacy_library_into_null_safe import 'package:ui/ui.dart'; diff --git a/engine/src/flutter/lib/web_ui/test/path_test.dart b/engine/src/flutter/lib/web_ui/test/path_test.dart index b466f87856..6e317f3b88 100644 --- a/engine/src/flutter/lib/web_ui/test/path_test.dart +++ b/engine/src/flutter/lib/web_ui/test/path_test.dart @@ -7,12 +7,12 @@ import 'dart:js_util' as js_util; import 'dart:html' as html; import 'dart:typed_data'; -import 'package:test/bootstrap/browser.dart'; -import 'package:test/test.dart'; +import 'package:test/bootstrap/browser.dart'; // ignore: import_of_legacy_library_into_null_safe +import 'package:test/test.dart'; // ignore: import_of_legacy_library_into_null_safe import 'package:ui/ui.dart' hide window; import 'package:ui/src/engine.dart'; -import 'matchers.dart'; +import 'matchers.dart'; // ignore: import_of_legacy_library_into_null_safe void main() { internalBootstrapBrowserTest(() => testMain); diff --git a/engine/src/flutter/lib/web_ui/test/text/line_breaker_test.dart b/engine/src/flutter/lib/web_ui/test/text/line_breaker_test.dart index 8dd5f65bb1..3d33d1a985 100644 --- a/engine/src/flutter/lib/web_ui/test/text/line_breaker_test.dart +++ b/engine/src/flutter/lib/web_ui/test/text/line_breaker_test.dart @@ -3,8 +3,8 @@ // found in the LICENSE file. // @dart = 2.10 -import 'package:test/bootstrap/browser.dart'; -import 'package:test/test.dart'; +import 'package:test/bootstrap/browser.dart'; // ignore: import_of_legacy_library_into_null_safe +import 'package:test/test.dart'; // ignore: import_of_legacy_library_into_null_safe import 'package:ui/src/engine.dart'; import 'package:ui/ui.dart';