getAnnotationsFromRange should only ignore non-content data

Currently ignores all non-element data, but element content (e.g.
images) can be annotated.

Added test cases and updated the test runner to only compare
store indexes for a more readable output.

Bug: 50127
Change-Id: I234586a28072811c8288aab56f6abaaa0da0c88d
Merge "getAnnotationsFromRange should only ignore non-content data"