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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-in-meta-disallowed.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-in-meta-disallowed.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-in-meta-disallowed.html b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-in-meta-disallowed.html
index 08650b21507749df66530d466211a540301ee842..0cd9aa966f92a540b3533101307d4e47b12656e7 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-in-meta-disallowed.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-in-meta-disallowed.html
@@ -1,22 +1,25 @@
<!DOCTYPE html>
<html>
- <head>
- <meta http-equiv="Suborigin" content="foobar">
- <title>The &lt;meta&gt; tag does not allow a page to enter a suborigin.</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- </head>
- <script>
- window.onmessage = function(event) {
- var secret;
- try {
- secret = document.getElementById('iframe').contentWindow.secret;
- } catch(e) {
- secret = '' + e;
- }
- assert_equals(secret, 'SecurityError: Blocked a frame with origin \"http://127.0.0.1:8000\" from accessing a cross-origin frame.');
- done();
- };
- </script>
- <iframe id="iframe" src="resources/post-to-parent.php?suborigin=foobar"></iframe>
+<head>
+<meta charset="utf-8">
+<meta http-equiv="Suborigin" content="foobar">
+<title>The &lt;meta&gt; tag does not allow a page to enter a suborigin.</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+</head>
+<script>
+window.onmessage = function(event) {
+ var secret;
+ try {
+ secret = document.getElementById('iframe').contentWindow.secret;
+ } catch(e) {
+ secret = '' + e;
+ }
+ assert_equals(secret,
+ 'SecurityError: Blocked a frame with origin \"http://127.0.0.1:8000\" ' +
+ 'from accessing a cross-origin frame.');
+ done();
+};
+</script>
+<iframe id="iframe" src="resources/post-to-parent.php?suborigin=foobar"></iframe>
</html>

Powered by Google App Engine
This is Rietveld 408576698