We did it. One unified test, with no special logic, successfully checks browsers with two completely different ways of handling window events. If we remove our production code’s use of the Capture API, it fails on IE. If we remove the window event handler, it fails on the other browsers. It’s a beautiful solution. Now it just needs beautiful code.