Cleanup view test definitions to prevent repetition.

Diff is a little hard to read - when doing the `useRAF` patch I duplicated the test suite setup so we could run it once with `useRAF: false` and once with `useRAF: true`. This PR removes some of the leftover code duplication.