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

Commit c548a568 authored by ryanlwlin's avatar ryanlwlin
Browse files

Fix broken SystemUITests

uncleared window magnification affects other tests.

Bug: 164240798
Test: atest SystemUITests
Change-Id: Ie3484200a3d9f40a019a4740f9285c21d83b5b20
parent b5722d5f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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);