Improve result comparing in assert_selection

That's because assert_selection often compares long HTML fragment.

TEST=Layouttests\editing\assert_selection.html

Review-Url: https://codereview.chromium.org/2138653002
Cr-Commit-Position: refs/heads/master@{#404801}
2 files changed