Add comments (and tweaks) to PendingAppManagerImplBrowserTest.AlreadyRegistered
This CL adds clarifying comments to PendingAppManagerImplBrowserTest.AlreadyRegistered. In addition to comments this also adds WebAppRegistrationWaiter::AwaitNextNonFailedRegistration() to avoid having to use /web_apps/no_service_worker.html for the sake of asserting on a particular RegistrationResultCode. The normal install flow with /web_apps/basic.html is flakily either kSuccess or kAlreadyInstalled as the service worker may asynchronously register during the first install pass. Change-Id: I6e6aa14882424c3ccc2affa90afd2798cfaed897 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2437549Reviewed-by:Daniel Murphy <dmurph@chromium.org> Commit-Queue: Daniel Murphy <dmurph@chromium.org> Auto-Submit: Alan Cutter <alancutter@chromium.org> Cr-Commit-Position: refs/heads/master@{#811824}
Showing
Please register or sign in to comment