views: changes test to not use equality

This test was assuming a newly created Window got a pointer value different
than one recently destroyed. For whatever reason my recent patch made it more
likely (on the msan bot) that the newly created pointer got the same value as
the one destroyed, leading to failure.

I'm converting the test to verify the window is destroyed using a WindowTracker.

BUG=847992
TEST=covered by tests

Change-Id: I4f9f64ad59ae15b0314619a93935d7e85bb6d8e7
Reviewed-on: https://chromium-review.googlesource.com/1168466
Reviewed-by: Michael Wasserman <msw@chromium.org>
Commit-Queue: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581788}
1 file changed