diff options
author | Songchun Fan <schfan@google.com> | 2021-02-04 21:21:15 +0000 |
---|---|---|
committer | Songchun Fan <schfan@google.com> | 2021-02-05 00:59:41 +0000 |
commit | 9ea20ba951829292d6be7cff226e16d217774309 (patch) | |
tree | 0fe21f703094f300c3ef5a8183ada8adec5b17ba | |
parent | b6ab8bafc1713d3876716a6d4b70c53a6fc2026c (diff) | |
download | cts-9ea20ba951829292d6be7cff226e16d217774309.tar.gz |
[sts] add @SecurityTest for testing invalid font size scales
BUG: 175816890
Test: sts-tf > run sts-engbuild-no-spl-lock -m CtsProviderTestCases -t android.provider.cts.settings.Settings_SystemTest#testSystemSettingsRejectInvalidFontSizeScale
Change-Id: I7bdfbccf28f99084230068b388fea94e21892e55
(cherry picked from commit 493d5913313dfb6b64868de4c4720e5d0b82771f)
Merged-In: I7bdfbccf28f99084230068b388fea94e21892e55
-rw-r--r-- | tests/tests/provider/src/android/provider/cts/Settings_SystemTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tests/provider/src/android/provider/cts/Settings_SystemTest.java b/tests/tests/provider/src/android/provider/cts/Settings_SystemTest.java index 279b39383d6..60a883c5d63 100644 --- a/tests/tests/provider/src/android/provider/cts/Settings_SystemTest.java +++ b/tests/tests/provider/src/android/provider/cts/Settings_SystemTest.java @@ -27,6 +27,7 @@ import android.content.res.Configuration; import android.database.Cursor; import android.net.Uri; import android.os.SystemClock; +import android.platform.test.annotations.SecurityTest; import android.provider.Settings; import android.provider.Settings.SettingNotFoundException; import android.provider.Settings.System; @@ -129,6 +130,10 @@ public class Settings_SystemTest { } } + /** + * Verifies that the invalid values for the font scale setting are rejected. + */ + @SecurityTest(minPatchLevel = "2021-02") @Test public void testSystemSettingsRejectInvalidFontSizeScale() throws SettingNotFoundException { final ContentResolver cr = InstrumentationRegistry.getTargetContext().getContentResolver(); |