Skip to content

[tizen_window_manager] Add regression integration tests#1053

Open
seungsoo47 wants to merge 3 commits into
flutter-tizen:masterfrom
seungsoo47:tizen_window_manager-add-integration-tests
Open

[tizen_window_manager] Add regression integration tests#1053
seungsoo47 wants to merge 3 commits into
flutter-tizen:masterfrom
seungsoo47:tizen_window_manager-add-integration-tests

Conversation

@seungsoo47

@seungsoo47 seungsoo47 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Add regression integration tests covering the public API of tizen_window_manager:

  • WindowManager.getGeometry: returns a map with all required keys (x, y, width, height) and integer values; width and height are positive
  • WindowManager.lower: completes without error and window can be reactivated

Validated on RPi4 and TV emulator.

#1039

* WindowManager.getGeometry returns a map with all required keys
* WindowManager.getGeometry returns integer values for all geometry fields
* WindowManager.getGeometry returns positive dimensions
* WindowManager.lower completes without error and window can be reactivated

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds integration tests for WindowManager.getGeometry and WindowManager.lower to the Tizen window manager example, and updates the changelog. The review feedback recommends consolidating the three getGeometry tests into a single test to reduce platform channel calls and eliminate redundant type assertions.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

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.
expect(WidgetsBinding.instance.lifecycleState, AppLifecycleState.resumed);
});

group('WindowManager.getGeometry', () {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This duplicates the Can get window geometry info test. Please integrate or remove the tests.

});
});

group('WindowManager.lower', () {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This duplicates the `Control lower/activate window' test. Please integrate or remove the tests.

testWidgets('completes without error and window can be reactivated',
(WidgetTester tester) async {
await expectLater(WindowManager.lower(), completes);
await Future<void>.delayed(const Duration(seconds: 1));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 second looks a bit tight. I recommend at least 2 to 3 seconds.

@@ -1,3 +1,7 @@
## NEXT

* Add 4 integration test cases.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are actually 3 testWidgets added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants