From cf94ed6839713f79e138854712613fea554525b8 Mon Sep 17 00:00:00 2001 From: Elliott Brooks <21270878+elliette@users.noreply.github.com> Date: Thu, 25 Jun 2026 14:32:40 -0700 Subject: [PATCH 1/2] Enable chip_test --- .../{temporarily_disabled_tests => test}/chip_test.dart | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) rename packages/material_ui/{temporarily_disabled_tests => test}/chip_test.dart (99%) diff --git a/packages/material_ui/temporarily_disabled_tests/chip_test.dart b/packages/material_ui/test/chip_test.dart similarity index 99% rename from packages/material_ui/temporarily_disabled_tests/chip_test.dart rename to packages/material_ui/test/chip_test.dart index 8331e358162..c717534e7fa 100644 --- a/packages/material_ui/temporarily_disabled_tests/chip_test.dart +++ b/packages/material_ui/test/chip_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']) @@ -12,14 +9,14 @@ library; 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/scheduler.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; +import 'package:material_ui/material_ui.dart'; -import '../widgets/feedback_tester.dart'; -import '../test/semantics_tester.dart'; +import 'feedback_tester.dart'; +import 'semantics_tester.dart'; Finder findRenderChipElement() { return find.byElementPredicate((Element e) => '${e.renderObject.runtimeType}' == '_RenderChip'); From 56ce5d77fd7498e624d077fe1e78d2195ce2adb4 Mon Sep 17 00:00:00 2001 From: Elliott Brooks <21270878+elliette@users.noreply.github.com> Date: Fri, 26 Jun 2026 16:07:40 -0700 Subject: [PATCH 2/2] Throw exception --- packages/material_ui/test/chip_test.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/material_ui/test/chip_test.dart b/packages/material_ui/test/chip_test.dart index c717534e7fa..954a897f116 100644 --- a/packages/material_ui/test/chip_test.dart +++ b/packages/material_ui/test/chip_test.dart @@ -200,9 +200,9 @@ PaintPattern uniqueRipplePattern(Offset expectedCenter, double expectedRadius) { if (offsetsAreClose(center, expectedCenter) && radiiAreClose(radius, expectedRadius)) { return true; } - throw ''' + throw Exception(''' Expected: center == $expectedCenter, radius == $expectedRadius - Found: center == $center radius == $radius'''; + Found: center == $center radius == $radius'''); }); }