Make DumpAccessibilityEvent tests more robust.

1. Sort the event dump alphabetically, since there are some
   nondeterministic, arbitrary things that can affect the
   event order.
2. Explicitly filter out events that don't come from the web,
   using the window class and supported QueryService interfaces
   as the clue.
3. Filter out focus events on the document by default.
   We don't have any tests that need this anyway,

Make other tiny cleanups at the same time.

Bug: 622387
Change-Id: Ic5c3ea30bf2a78df43d924249949344d93acc320
Reviewed-on: https://chromium-review.googlesource.com/947039
Reviewed-by: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#540920}
48 files changed