Fix broken SystemUITests
uncleared window magnification affects other tests. Bug: 164240798 Test: atest SystemUITests Change-Id: Ie3484200a3d9f40a019a4740f9285c21d83b5b20
This commit is contained in:
@@ -38,6 +38,7 @@ import androidx.test.filters.MediumTest;
|
||||
import com.android.internal.graphics.SfVsyncFrameCallbackProvider;
|
||||
import com.android.systemui.SysuiTestCase;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -94,6 +95,11 @@ public class WindowMagnificationAnimationControllerTest extends SysuiTestCase {
|
||||
mContext, mController, newValueAnimator());
|
||||
}
|
||||
|
||||
@After
|
||||
public void tearDown() throws Exception {
|
||||
mInstrumentation.runOnMainSync(() -> mController.deleteWindowMagnification());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void enableWindowMagnification_disabled_expectedStartAndEndValues() {
|
||||
enableWindowMagnificationAndWaitAnimating(mWaitingAnimationPeriod);
|
||||
|
||||
Reference in New Issue
Block a user