Add layout tests for hasPermission

BUG=401424

Requires https://codereview.chromium.org/677073002

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

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