Chromium Code Reviews| Index: chrome/android/javatests/src/org/chromium/chrome/browser/preferences/PreferencesTest.java |
| diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/PreferencesTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/PreferencesTest.java |
| index 83a658ca76dd597190a7597bf4bcab80aae5303a..3bd8b9736e0ea429ff8ac682894da0cf97b8276d 100644 |
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/PreferencesTest.java |
| +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/PreferencesTest.java |
| @@ -5,9 +5,7 @@ |
| package org.chromium.chrome.browser.preferences; |
| import android.app.Activity; |
| -import android.app.Fragment; |
| import android.app.Instrumentation; |
| -import android.app.Notification; |
| import android.content.Context; |
| import android.content.Intent; |
| import android.preference.Preference; |
| @@ -18,7 +16,6 @@ |
| import org.chromium.base.ThreadUtils; |
| import org.chromium.base.test.util.Feature; |
| import org.chromium.chrome.browser.accessibility.FontSizePrefs; |
| -import org.chromium.chrome.browser.preferences.website.WebsitePreferences; |
| import org.chromium.chrome.browser.search_engines.TemplateUrlService; |
| import org.chromium.chrome.browser.search_engines.TemplateUrlService.LoadListener; |
| import org.chromium.chrome.shell.ChromeShellTestBase; |
| @@ -125,25 +122,7 @@ public void run() { |
| }); |
| } |
| - /** |
| - * Starts the preference activity as if it's been opened from the App Notification settings |
| - * screen to verify that it opens the Notifications Site Settings screen. |
| - */ |
| - @SmallTest |
| - @Feature({"Preferences"}) |
| - public void testNotificationSettingsCategoryIntent() throws Exception { |
| - Instrumentation instrumentation = getInstrumentation(); |
| - |
| - Intent intent = PreferencesLauncher.createIntentForSettingsPage( |
| - instrumentation.getTargetContext(), null); |
| - intent.addCategory(Notification.INTENT_CATEGORY_NOTIFICATION_PREFERENCES); |
| - |
| - Activity activity = instrumentation.startActivitySync(intent); |
| - assertTrue(activity instanceof Preferences); |
| - |
| - Fragment fragment = ((Preferences) activity).getFragmentForTest(); |
| - assertTrue(fragment instanceof WebsitePreferences); |
| - } |
| + // TODO(mvanouwerkerk): Write new preference intent tests for notification settings. |
|
Peter Beverloo
2015/02/25 18:26:09
Please attach a bug to this and mention it in the
Michael van Ouwerkerk
2015/02/25 19:00:19
Done. Also added an item to the task tracker.
|
| /** |
| * Tests setting FontScaleFactor and ForceEnableZoom in AccessibilityPreferences and ensures |