Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Document / script-tests / invalid-domain-change-throws-exception.js
blob188e707ec41fdec0122c60b86361e58a0d94d9a0
1 description("This test checks that a SECURITY_ERR exception is raised if an attempt is made to change document.domain to an invalid value.");
3 shouldThrow('document.domain = "apple.com"', '"SecurityError: Failed to set the \'domain\' property on \'Document\': \'apple.com\' is not a suffix of \'\'."');