Fix broken SystemUITests

uncleared window magnification affects other tests.

Bug: 164240798
Test: atest SystemUITests
Change-Id: Ie3484200a3d9f40a019a4740f9285c21d83b5b20
This commit is contained in:
ryanlwlin
2020-08-14 13:22:45 +08:00
parent b5722d5f0c
commit c548a568b2

View File

@@ -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);