Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappInfoTest.java

Issue 2335843002: Remove the logic of fetching metadata when launching WebAPKs. (Closed)
Patch Set: Update comment. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappInfo.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappInfoTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappInfoTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappInfoTest.java
index 39f6fcbfd477cf66cc843cb98a045e7331184513..22667117ee1500c11b8afc0862ee376a64223d14 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappInfoTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappInfoTest.java
@@ -338,29 +338,6 @@ public class WebappInfoTest extends InstrumentationTestCase {
assertEquals(packageName, info.webApkPackageName());
}
- @SmallTest
- @Feature({"Webapps"})
- public void testUpdateThemeColorAndOrientation() {
- long themeColor = 0xFF00FF00L;
- int orientation = ScreenOrientationValues.DEFAULT;
-
- Intent intent = createIntentWithUrlAndId();
- intent.putExtra(ShortcutHelper.EXTRA_THEME_COLOR, themeColor);
- intent.putExtra(ShortcutHelper.EXTRA_ORIENTATION, orientation);
-
- WebappInfo info = WebappInfo.create(intent);
- assertEquals(themeColor, info.themeColor());
- assertEquals(orientation, info.orientation());
-
- // Updates the theme color and orientation.
- themeColor = 0xFF0000FFL;
- orientation = ScreenOrientationValues.LANDSCAPE;
- info.updateThemeColor(themeColor);
- info.updateOrientation(orientation);
- assertEquals(themeColor, info.themeColor());
- assertEquals(orientation, info.orientation());
- }
-
/**
* Creates intent with url and id. If the url or id are not set WebappInfo#create() returns
* null.
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappInfo.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698