mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
Update web-platform-tests to revision 1e4fe87a7f01c0b5c614c8f601ffa68b4a00662a
This commit is contained in:
parent
4c3f1756da
commit
432648745e
164 changed files with 8354 additions and 595 deletions
21
tests/wpt/web-platform-tests/fetch/corb/README.md
Normal file
21
tests/wpt/web-platform-tests/fetch/corb/README.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Tests related to Cross-Origin Resource Blocking (CORB).
|
||||
|
||||
This directory contains tests related to the
|
||||
[Cross-Origin Resource Blocking (CORB)](https://chromium.googlesource.com/chromium/src/+/master/content/browser/loader/cross_origin_read_blocking_explainer.md) algorithm.
|
||||
|
||||
Note that CORB is currently in very early stages of standardization path. At
|
||||
the same time, some tests in this directory (e.g.
|
||||
`css-with-json-parser-breaker`) cover behavior spec-ed outside of CORB (making
|
||||
sure that CORB doesn't change the existing web behavior) and therefore are
|
||||
valuable independently from CORB's standardization efforts.
|
||||
|
||||
Tests that cover behavior that is changed by CORB have to be marked as
|
||||
[tentative](http://web-platform-tests.org/writing-tests/file-names.html)
|
||||
(using `.tentative` substring in their filename) until CORB
|
||||
is included in the official
|
||||
[Fetch spec](https://fetch.spec.whatwg.org/).
|
||||
|
||||
The tests in this directory interact with various, random features,
|
||||
but the tests have been grouped together into the `fetch/corb` directory,
|
||||
because all of these tests verify behavior that is important to the CORB
|
||||
algorithm.
|
|
@ -0,0 +1,17 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>CORB should not block text/css with a JSON parser breaker</title>
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="http://{{domains[www1]}}:{{ports[http][0]}}/fetch/corb/resources/css-with-json-parser-breaker.css">
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<body>
|
||||
<h1 id="header">Header example</h1>
|
||||
<p>Paragraph body</p>
|
||||
</body>
|
||||
<script>
|
||||
test(function() {
|
||||
var style = getComputedStyle(document.getElementById('header'));
|
||||
assert_equals(style.getPropertyValue('color'), 'rgb(255, 0, 0)');
|
||||
}, "CORB should not block text/css with a JSON parser breaker");
|
||||
</script>
|
|
@ -0,0 +1,3 @@
|
|||
)]}'
|
||||
{}
|
||||
h1 { color: red; }
|
Loading…
Add table
Add a link
Reference in a new issue