Make WindowPerformanceTest use one object-under-test
WindowPerformanceTest exists to check the behaviour of WindowPerformance instances. It used to mock a page with DummyPageHolder (which, by way of a LocalDOMWindow, would end up owning a WindowPerformance instance) as well as construct its own WindowPerformance instance. This lead to the mock objects referring to a separate, intrinsic WindowPerformance than the one being directly manipulated by the tests. This change removes the one-off constructed WindowPerformance and exercises the WindowPerformance from the mock objects instead. Change-Id: I90980074362c36b630252a82f58b973ae1963965 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1965942Reviewed-by:Nicolás Peña Moreno <npm@chromium.org> Commit-Queue: Tom McKee <tommckee@chromium.org> Cr-Commit-Position: refs/heads/master@{#728547}
Showing
Please register or sign in to comment