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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/ntp/NewTabPageTest.java

Issue 2745263002: Fix typo in getUrlFocusAnimatonsDisabled() (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | 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/ntp/NewTabPageTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/NewTabPageTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/NewTabPageTest.java
index a53220b4e032b2b142ffbbd49a4ee69057be08ce..ddb43b5ea53b7c0e6a9fe9d338bc8a34127c99cf 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/NewTabPageTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/NewTabPageTest.java
@@ -286,7 +286,7 @@ public class NewTabPageTest extends ChromeTabbedActivityTestBase {
@MediumTest
@Feature({"NewTabPage"})
public void testUrlFocusAnimationsDisabledOnLoad() throws InterruptedException {
- assertFalse(getUrlFocusAnimatonsDisabled());
+ assertFalse(getUrlFocusAnimationsDisabled());
ChromeTabUtils.waitForTabPageLoaded(mTab, new Runnable() {
@Override
public void run() {
@@ -298,13 +298,13 @@ public class NewTabPageTest extends ChromeTabbedActivityTestBase {
mTab.loadUrl(new LoadUrlParams(mTestServer.getURL(TEST_PAGE),
pageTransition));
// It should be disabled as soon as a load URL is triggered.
- assertTrue(getUrlFocusAnimatonsDisabled());
+ assertTrue(getUrlFocusAnimationsDisabled());
}
});
}
});
// Ensure it is still marked as disabled once the new page is fully loaded.
- assertTrue(getUrlFocusAnimatonsDisabled());
+ assertTrue(getUrlFocusAnimationsDisabled());
}
@LargeTest
@@ -328,7 +328,7 @@ public class NewTabPageTest extends ChromeTabbedActivityTestBase {
"/ntp_test.html",
"<html><body></body></html>", null, delayAction);
- assertFalse(getUrlFocusAnimatonsDisabled());
+ assertFalse(getUrlFocusAnimationsDisabled());
clickFakebox();
UrlBar urlBar = (UrlBar) getActivity().findViewById(R.id.url_bar);
@@ -362,7 +362,7 @@ public class NewTabPageTest extends ChromeTabbedActivityTestBase {
waitForUrlFocusAnimationsDisabledState(false);
delaySemaphore.release();
loadedCallback.waitForCallback(0);
- assertFalse(getUrlFocusAnimatonsDisabled());
+ assertFalse(getUrlFocusAnimationsDisabled());
} finally {
webServer.shutdown();
}
@@ -464,7 +464,7 @@ public class NewTabPageTest extends ChromeTabbedActivityTestBase {
mNtp.captureThumbnail(canvas);
}
- private boolean getUrlFocusAnimatonsDisabled() {
+ private boolean getUrlFocusAnimationsDisabled() {
return ThreadUtils.runOnUiThreadBlockingNoException(new Callable<Boolean>() {
@Override
public Boolean call() throws Exception {
@@ -477,7 +477,7 @@ public class NewTabPageTest extends ChromeTabbedActivityTestBase {
CriteriaHelper.pollInstrumentationThread(Criteria.equals(disabled, new Callable<Boolean>() {
@Override
public Boolean call() {
- return getUrlFocusAnimatonsDisabled();
+ return getUrlFocusAnimationsDisabled();
}
}));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698