New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 692002 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Bug

Blocking:
issue 583289



Sign in to add a comment

[Local NTP] Improve test coverage

Project Member Reported by treib@chromium.org, Feb 14 2017

Issue description

Currently, the local NTP has almost no test coverage. This needs to be improved before it becomes the default NTP.
 
Would be good to track a few use cases that we want to get covered (ideally with a test target) so that we can properly prioritize this bug and know when it's don e :-)

Comment 2 by treib@chromium.org, Feb 14 2017

I'd like two things:

- The fakebox, in particular how it redirects input to the omnibox. This also serves as a smoke test for the embeddedSearch.searchBox API, which will be helpful e.g. for  bug 631937 .

- A test for the NTP tiles, making sure the default tiles get loaded correctly. This got broken during a recent refactoring, see  bug 681749 .

I think a fully comprehensive test suite, e.g. with blacklisting tiles and undoing it again, might not be necessary. The above tests will make sure all the APIs are hooked up correctly; more tests would probably not improve the signal-to-noise ratio. WDYT?
I think it's a good first step and reasonable for blocking the NTP switch.
Of course more test coverage would be better, but we need to prioritize that work then and it probably shouldn't block the other efforts.
Thanks!


Project Member

Comment 5 by bugdroid1@chromium.org, Feb 16 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f955fb9cd61c9b6b246a9484a60068eb38c54aec

commit f955fb9cd61c9b6b246a9484a60068eb38c54aec
Author: treib <treib@chromium.org>
Date: Thu Feb 16 19:45:08 2017

[Local NTP] Add a simple test for embeddedSearch.newTabPage.mostVisited

BUG= 692002 

Review-Url: https://codereview.chromium.org/2703613002
Cr-Commit-Position: refs/heads/master@{#451059}

[modify] https://crrev.com/f955fb9cd61c9b6b246a9484a60068eb38c54aec/chrome/test/data/local_ntp_browsertest.js

Project Member

Comment 7 by bugdroid1@chromium.org, Feb 21 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/769bc0d70e165bfea010611d8eb3065e6fa6f1d0

commit 769bc0d70e165bfea010611d8eb3065e6fa6f1d0
Author: treib <treib@chromium.org>
Date: Tue Feb 21 13:16:12 2017

[Local NTP] Add a test for embeddedSearch API availability

BUG= 692002 

Review-Url: https://codereview.chromium.org/2704373002
Cr-Commit-Position: refs/heads/master@{#451750}

[modify] https://crrev.com/769bc0d70e165bfea010611d8eb3065e6fa6f1d0/chrome/browser/ui/search/local_ntp_browsertest.cc

Comment 8 by treib@chromium.org, Feb 21 2017

Status: Fixed (was: Started)
Marking fixed, since we now IMO have enough tests to unblock the other work. Of course, test coverage could always be improved further :)

Sign in to add a comment