[Extensions SW] Fix and enable a fetch related test.
This CL enables ServiceWorkerTest. FetchFromContentScriptShouldNotGoToServiceWorkerOfPage The test expects fetch to "./sw_controlled_check" to be handled by its registered worker. But this test initiates the fetch a bit earlier than expected, specifically in failure/flaky cases. This CL ensures that the page is being controlled by the service worker before initiating the fetch from index.html. It does so by waiting for oncontrollerchange event to occur. Bug: 1014222 Change-Id: Ib235a6a80957b6f8c22ca5e167e1d37a86cc1850 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2208027 Commit-Queue: Istiaque Ahmed <lazyboy@chromium.org> Reviewed-by:David Bertoni <dbertoni@chromium.org> Cr-Commit-Position: refs/heads/master@{#770384}
Showing
Please register or sign in to comment