Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Unified Diff: LayoutTests/fast/dom/Document/script-tests/invalid-domain-change-throws-exception.js

Issue 23321002: Convert 'document.domain' exceptions to 'es.throwSecurityError()'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/Document/script-tests/invalid-domain-change-throws-exception.js
diff --git a/LayoutTests/fast/dom/Document/script-tests/invalid-domain-change-throws-exception.js b/LayoutTests/fast/dom/Document/script-tests/invalid-domain-change-throws-exception.js
index 2c467bb7034bfdd15cd04fe75b10bb481bc0a34c..188e707ec41fdec0122c60b86361e58a0d94d9a0 100644
--- a/LayoutTests/fast/dom/Document/script-tests/invalid-domain-change-throws-exception.js
+++ b/LayoutTests/fast/dom/Document/script-tests/invalid-domain-change-throws-exception.js
@@ -1,3 +1,3 @@
description("This test checks that a SECURITY_ERR exception is raised if an attempt is made to change document.domain to an invalid value.");
-shouldThrow('document.domain = "apple.com"', '"SecurityError: \'document.domain\' assignment failed: \'apple.com\' is not a suffix of \'\'."');
+shouldThrow('document.domain = "apple.com"', '"SecurityError: Failed to set the \'domain\' property on \'Document\': \'apple.com\' is not a suffix of \'\'."');

Powered by Google App Engine
This is Rietveld 408576698