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

Commit f4412566 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Disable TypefaceTest#testSetSystemFontMap" into main

parents 25dcf2de df1d4043
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -27,6 +27,9 @@ import android.graphics.fonts.FontFamily;
import android.graphics.fonts.SystemFonts;
import android.os.SharedMemory;
import android.platform.test.annotations.DisabledOnRavenwood;
import android.platform.test.annotations.RequiresFlagsDisabled;
import android.platform.test.flag.junit.CheckFlagsRule;
import android.platform.test.flag.junit.DeviceFlagsValueProvider;
import android.text.FontConfig;
import android.util.ArrayMap;

@@ -37,7 +40,9 @@ import androidx.test.filters.MediumTest;
import androidx.test.filters.SmallTest;

import com.android.frameworks.coretests.R;
import com.android.text.flags.Flags;

import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;

@@ -49,6 +54,9 @@ import java.util.Random;
@RunWith(AndroidJUnit4.class)
public class TypefaceTest {

    @Rule
    public CheckFlagsRule mCheckFlagsRule = DeviceFlagsValueProvider.createCheckFlagsRule();

    // create array of all std faces
    private final Typeface[] mFaces = new Typeface[] {
        Typeface.create(Typeface.SANS_SERIF, 0),
@@ -224,6 +232,7 @@ public class TypefaceTest {
        }
    }

    @RequiresFlagsDisabled(Flags.FLAG_DO_NOT_OVERWRITE_STATIC_FINAL_FIELD)
    @SmallTest
    @Test
    public void testSetSystemFontMap() throws Exception {