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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-change-document-domain.html

Issue 2370843003: Suborigin LayoutTest formatting and refactoring (Closed)
Patch Set: Created 4 years, 3 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/http/tests/security/suborigins/suborigin-change-document-domain.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-change-document-domain.html b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-change-document-domain.html
index c27a7cd688f60080ced7a941b1044f8ec5bec2d3..802c7b4aecc8fa50ccc3825d5eb9af65ea440c34 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-change-document-domain.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-change-document-domain.html
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
+<meta charset="utf-8">
<title>Validate that a frame can't change it's document.domain and enter the suborigin</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
@@ -9,9 +10,13 @@
document.domain = '127.0.0.1';
window.secret = 'Unchanged';
window.onmessage = function(event) {
- assert_equals(secret, 'Unchanged', 'secret should not be touchable by the child in a suborigin.');
- assert_equals(event.data, 'SecurityError: Blocked a frame with origin \"http-so://foobar.127.0.0.1:8000\" from accessing a cross-origin frame.');
- done();
+ assert_equals(secret, 'Unchanged',
+ 'secret should not be touchable by the child in a suborigin.');
+ assert_equals(event.data,
+ 'SecurityError: Blocked a frame with origin ' +
+ '\"http-so://foobar.127.0.0.1:8000\" from accessing a cross-origin ' +
+ 'frame.');
+ done();
};
</script>
<iframe src="resources/child-changes-document-domain.php?suborigin=foobar"></iframe>

Powered by Google App Engine
This is Rietveld 408576698