Skip to content

Commit 83c0bea

Browse files
committed
[tizen_window_manager] Remove integration tests duplicating existing coverage
Per review, the getGeometry and lower test groups only re-checked what the pre-existing 'Can get window geometry info' and 'Control lower/activate window' tests already assert with exact expected values.
1 parent 7c77d71 commit 83c0bea

2 files changed

Lines changed: 0 additions & 35 deletions

File tree

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
## NEXT
2-
3-
* Add 4 integration test cases.
4-
51
## 0.1.0
62

73
* Initial release.

packages/tizen_window_manager/example/integration_test/tizen_window_manager_test.dart

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -29,35 +29,4 @@ void main() {
2929

3030
expect(WidgetsBinding.instance.lifecycleState, AppLifecycleState.resumed);
3131
});
32-
33-
group('WindowManager.getGeometry', () {
34-
testWidgets('returns a map with all required keys',
35-
(WidgetTester tester) async {
36-
final Map<String, int> geometry = await WindowManager.getGeometry();
37-
expect(geometry.containsKey('x'), isTrue);
38-
expect(geometry.containsKey('y'), isTrue);
39-
expect(geometry.containsKey('width'), isTrue);
40-
expect(geometry.containsKey('height'), isTrue);
41-
});
42-
43-
testWidgets('returns positive dimensions', (WidgetTester tester) async {
44-
final Map<String, int> geometry = await WindowManager.getGeometry();
45-
expect(geometry['width'], greaterThan(0));
46-
expect(geometry['height'], greaterThan(0));
47-
});
48-
});
49-
50-
group('WindowManager.lower', () {
51-
testWidgets('completes without error and window can be reactivated',
52-
(WidgetTester tester) async {
53-
await expectLater(WindowManager.lower(), completes);
54-
await Future<void>.delayed(const Duration(seconds: 1));
55-
56-
// Restore the window so subsequent tests run in a normal state.
57-
await WindowManager.activate();
58-
await Future<void>.delayed(const Duration(seconds: 2));
59-
60-
expect(WidgetsBinding.instance.lifecycleState, AppLifecycleState.resumed);
61-
});
62-
});
6332
}

0 commit comments

Comments
 (0)