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

Issue 618436 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Nov 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Bug



Sign in to add a comment

[Blimp Engine] Test Engine tab class.

Project Member Reported by haibinlu@chromium.org, Jun 8 2016

Issue description

per offline discussion with Kevin and Nick, we need to add either browser test or unit test for the Engine tab class, or a mix of both.

Most of its methods are simple enough, browser test is better suited for that, and we'd like to test nav commands anyway.
 
Cc: manisca...@chromium.org
In an ideal world (where everything is free and easy to implement) we'd want both unit tests and browser tests.

Of course we don't live in an ideal world so that may not be the right approach for blimp::Engine::Tab :)  For whoever picks up this bug, if we decide not to write a unit test for Tab, I'd be interested in understanding why (insufficient test tools, unit testing this class isn't particularly useful, too difficult, had dependencies on stuff that's hard to test, etc.).

Comment 2 by w...@chromium.org, Jun 20 2016

Status: Available (was: Untriaged)
It looks like all the dependencies are injected, so it looks like a unit-test is feasible. There is no existing MockWebContents and the API surface is huge, but we could at least re-use it to test the PageLoadTracker. However, PageLoadTracker is should also be tested against a real WebContents, so we can trap any changes in the semantics there.

So basically I think both browser & unit-tests would be advisable.
Status: WontFix (was: Available)
Obsolete, WontFix.
Labels: Archive-Blimp

Sign in to add a comment