Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c010e304 authored by Nergi Rahardi's avatar Nergi Rahardi
Browse files

Cleanup ResolutionPreferenceFragmentTest

- Removed duplicated test (testCreateAndStart and
testCreateAndStartDefaultDisplayNotAllowed). Both tests are basically
the same since both -1 and 0 id not in set up displays
- Make TestableResolutionPreferenceFragment static class, this is to be
used in the next CL so this fragment can be added to a test Activity (to
validate `Activity.finishFragment()`
- Make displayId as initFragment param, as it should be init only once
when fragment started
- Modify to use displays[id] rather than specifying numbers

Bug: 407007697
Test: atest ResolutionPreferenceFragmentTest
Flag: EXEMPT cleanup test
Change-Id: I81f4696f13e4e64acd3e70e09098b130f5d87d43
parent 649a1980
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment