Skip to content

Commit

Permalink
Fix typos in CriteriaHelper and CallbackHelper docs.
Browse files Browse the repository at this point in the history
TBR=jbudorick

Review-Url: https://codereview.chromium.org/2508903002
Cr-Commit-Position: refs/heads/master@{#432546}
  • Loading branch information
mvano authored and Commit bot committed Nov 16, 2016
1 parent 745af0b commit 3f7c4e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
* // performed tasks.
* doSomeOperationAndWait(codeUnerTest, delegate.getOnOperationFailedHelper());
*
* // The helper can be resued for as many calls as needed, just be sure to get the count each
* // The helper can be reused for as many calls as needed, just be sure to get the count each
* // time.
* onOperationFailedCallCount = delegate.getOnOperationFailedHelper().getCallCount();
* codeUnderTest.doSomethingElseButStillFailOnAnotherThread();
Expand All @@ -109,8 +109,8 @@
* // Shows how to turn an async operation + completion callback into a synchronous operation.
* private void doSomeOperationAndWait(final CodeUnderTest underTest,
* CallbackHelper operationHelper) throws InterruptedException, TimeoutException {
* final int callCount = operaitonHelper.getCallCount();
* getInstrumentaiton().runOnMainSync(new Runnable() {
* final int callCount = operationHelper.getCallCount();
* getInstrumentation().runOnMainSync(new Runnable() {
* @Override
* public void run() {
* // This schedules a call to a method on the injected TestDelegate. The TestDelegate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* public void waitForTabFullyLoaded(final Tab tab) {
* CriteriaHelper.pollUiThread(new Criteria() {
* {@literal @}Override
* public boolean isSatisified() {
* public boolean isSatisfied() {
* if (tab.getWebContents() == null) {
* updateFailureReason("Tab has no web contents");
* return false;
Expand Down

0 comments on commit 3f7c4e3

Please sign in to comment.