Skip to content

Commit 7c77d71

Browse files
committed
[tizen_window_manager] Remove redundant geometry type assertions
getGeometry returns Map<String, int> via Map<String, int>.from(), which throws a TypeError if any value is not an int, so the values are guaranteed to be ints by the time the test reads them. Drop the 'returns integer values' test whose isA<int>() assertions therefore verify nothing; key presence and positive dimensions remain covered by the other tests.
1 parent 1037e6d commit 7c77d71

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

packages/tizen_window_manager/example/integration_test/tizen_window_manager_test.dart

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@ void main() {
4040
expect(geometry.containsKey('height'), isTrue);
4141
});
4242

43-
testWidgets('returns integer values for all geometry fields',
44-
(WidgetTester tester) async {
45-
final Map<String, int> geometry = await WindowManager.getGeometry();
46-
expect(geometry['x'], isA<int>());
47-
expect(geometry['y'], isA<int>());
48-
expect(geometry['width'], isA<int>());
49-
expect(geometry['height'], isA<int>());
50-
});
51-
5243
testWidgets('returns positive dimensions', (WidgetTester tester) async {
5344
final Map<String, int> geometry = await WindowManager.getGeometry();
5445
expect(geometry['width'], greaterThan(0));

0 commit comments

Comments
 (0)