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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-cssRules.php

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-cssRules.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-cssRules.php b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-cssRules.php
index 1ef1fdd84a939497c438a9d34a448e29671c0c47..9f0d00272f1c6499c809fad76baa7acab793bc07 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-cssRules.php
+++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-cssRules.php
@@ -4,6 +4,7 @@ header("Suborigin: foobar");
<!DOCTYPE html>
<html>
<head>
+<meta charset="utf-8">
<title>Suborigin can't access cross origin cssRules</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
@@ -11,9 +12,10 @@ header("Suborigin: foobar");
</head>
<script>
window.onload = function() {
- var sheet = document.styleSheets[0];
- assert_equals(sheet.cssRules, null, "stylesheet rules should not be readable from a suborigin");
- done();
+ var sheet = document.styleSheets[0];
+ assert_equals(sheet.cssRules, null,
+ 'stylesheet rules should not be readable from a suborigin');
+ done();
};
</script>
</html>

Powered by Google App Engine
This is Rietveld 408576698