Rewrite tests so that they don't depend on apply-author-styles flag.

BUG=323130

Review URL: https://codereview.chromium.org/136193009

git-svn-id: svn://svn.chromium.org/blink/trunk@165141 bbb929c8-8fbe-4397-9dbb-9b2b20218538