From 117f43f240c4ccbafef0c9a6d5981e314903ab45 Mon Sep 17 00:00:00 2001 From: Qun Cheng Date: Fri, 26 Jun 2026 15:12:08 -0700 Subject: [PATCH] [material_ui] Enable tests using existing utilities --- .../data_table_test.dart | 7 ++----- .../{temporarily_disabled_tests => test}/switch_test.dart | 7 ++----- .../tooltip_theme_test.dart | 8 +++----- 3 files changed, 7 insertions(+), 15 deletions(-) rename packages/material_ui/{temporarily_disabled_tests => test}/data_table_test.dart (99%) rename packages/material_ui/{temporarily_disabled_tests => test}/switch_test.dart (99%) rename packages/material_ui/{temporarily_disabled_tests => test}/tooltip_theme_test.dart (99%) diff --git a/packages/material_ui/temporarily_disabled_tests/data_table_test.dart b/packages/material_ui/test/data_table_test.dart similarity index 99% rename from packages/material_ui/temporarily_disabled_tests/data_table_test.dart rename to packages/material_ui/test/data_table_test.dart index 983219bd456c..e3d9a7b7ac14 100644 --- a/packages/material_ui/temporarily_disabled_tests/data_table_test.dart +++ b/packages/material_ui/test/data_table_test.dart @@ -2,9 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -@Skip( - 'This file is skipped due to a cross-import that needs to be fixed. Tracked in https://github.com/flutter/flutter/issues/177028.', -) @TestOn('!chrome') library; @@ -12,13 +9,13 @@ import 'dart:math' as math; import 'package:flutter/foundation.dart' show kIsWeb; import 'package:flutter/gestures.dart'; -import 'package:material_ui/material_ui.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter_test/flutter_test.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:vector_math/vector_math_64.dart' show Matrix3; -import '../widgets/semantics_tester.dart'; import 'data_table_test_utils.dart'; +import 'semantics_tester.dart'; void main() { testWidgets('DataTable control test', (WidgetTester tester) async { diff --git a/packages/material_ui/temporarily_disabled_tests/switch_test.dart b/packages/material_ui/test/switch_test.dart similarity index 99% rename from packages/material_ui/temporarily_disabled_tests/switch_test.dart rename to packages/material_ui/test/switch_test.dart index d9cc60136b44..0cf34e74849b 100644 --- a/packages/material_ui/temporarily_disabled_tests/switch_test.dart +++ b/packages/material_ui/test/switch_test.dart @@ -2,9 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -@Skip( - 'This file is skipped due to a cross-import that needs to be fixed. Tracked in https://github.com/flutter/flutter/issues/177028.', -) // This file is run as part of a reduced test set in CI on Mac and Windows // machines. @Tags(['reduced-test-set']) @@ -16,12 +13,12 @@ import 'dart:ui' as ui; import 'package:cupertino_ui/cupertino_ui.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/gestures.dart'; -import 'package:material_ui/material_ui.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; +import 'package:material_ui/material_ui.dart'; -import '../widgets/semantics_tester.dart'; +import 'semantics_tester.dart'; void main() { final theme = ThemeData(); diff --git a/packages/material_ui/temporarily_disabled_tests/tooltip_theme_test.dart b/packages/material_ui/test/tooltip_theme_test.dart similarity index 99% rename from packages/material_ui/temporarily_disabled_tests/tooltip_theme_test.dart rename to packages/material_ui/test/tooltip_theme_test.dart index b2a5682c7fb1..6090f5178145 100644 --- a/packages/material_ui/temporarily_disabled_tests/tooltip_theme_test.dart +++ b/packages/material_ui/test/tooltip_theme_test.dart @@ -2,15 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -@Skip( - 'This file is skipped due to a cross-import that needs to be fixed. Tracked in https://github.com/flutter/flutter/issues/177028.', -) import 'package:flutter/gestures.dart'; -import 'package:material_ui/material_ui.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; -import '../widgets/semantics_tester.dart'; +import 'package:material_ui/material_ui.dart'; + +import 'semantics_tester.dart'; const String tooltipText = 'TIP'; const double _customPaddingValue = 10.0;