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

Side by Side 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, 2 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 unified diff | Download patch
OLDNEW
1 <?php 1 <?php
2 header("Suborigin: foobar"); 2 header("Suborigin: foobar");
3 ?> 3 ?>
4 <!DOCTYPE html> 4 <!DOCTYPE html>
5 <html> 5 <html>
6 <head> 6 <head>
7 <meta charset="utf-8">
7 <title>Suborigin can't access cross origin cssRules</title> 8 <title>Suborigin can't access cross origin cssRules</title>
8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharness.js"></script>
9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/resources/testharnessreport.js"></script>
10 <link rel="stylesheet" href="/security/resources/cssStyle.css"></link> 11 <link rel="stylesheet" href="/security/resources/cssStyle.css"></link>
11 </head> 12 </head>
12 <script> 13 <script>
13 window.onload = function() { 14 window.onload = function() {
14 var sheet = document.styleSheets[0]; 15 var sheet = document.styleSheets[0];
15 assert_equals(sheet.cssRules, null, "stylesheet rules should not be readable from a suborigin"); 16 assert_equals(sheet.cssRules, null,
16 done(); 17 'stylesheet rules should not be readable from a suborigin');
18 done();
17 }; 19 };
18 </script> 20 </script>
19 </html> 21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698