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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Document/invalid-domain-change-throws-exception.html

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 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: third_party/WebKit/LayoutTests/fast/dom/Document/invalid-domain-change-throws-exception.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Document/invalid-domain-change-throws-exception.html b/third_party/WebKit/LayoutTests/fast/dom/Document/invalid-domain-change-throws-exception.html
index f9f4577a6cb6355eaa4507017ec54d04b255b069..8f585f8029d1b699a05a12d309ae1b77d19c4818 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Document/invalid-domain-change-throws-exception.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/Document/invalid-domain-change-throws-exception.html
@@ -4,6 +4,10 @@
<script src="../../../resources/js-test.js"></script>
</head>
<body>
-<script src="script-tests/invalid-domain-change-throws-exception.js"></script>
+<script>
+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: Failed to set the \'domain\' property on \'Document\': \'apple.com\' is not a suffix of \'\'."');
+</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698