mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision ead8f8b00d0b68237109f3c93d0ccae076a34f98
This commit is contained in:
parent
d029b1a0ff
commit
2178678b0f
75 changed files with 2476 additions and 391 deletions
|
@ -1,21 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Dom Farolino" href="mailto:dom@chromium.org">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-link-element">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<link id=link rel=stylesheet id=style_test
|
||||
onload="t.unreached_func('Sheet should fail to load')">
|
||||
<script>
|
||||
var t = async_test("Check if the <link>'s error event fires for each style " +
|
||||
"sheet it fails to load");
|
||||
|
||||
link.onerror = t.step_func(() => {
|
||||
link.onerror = t.step_func_done(() => {});
|
||||
link.href = 'nonexistent.css?second';
|
||||
});
|
||||
|
||||
link.href = 'nonexistent.css?first';
|
||||
</script>
|
||||
|
||||
</head>
|
||||
</html>
|
|
@ -1,21 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Dom Farolino" href="mailto:dom@chromium.org">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-link-element">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<link id=link rel=stylesheet id=style_test
|
||||
onerror="t.unreached_func('Sheet should load successfully')">
|
||||
<script>
|
||||
var t = async_test("Check if the <link>'s load event fires for each style " +
|
||||
"sheet it loads");
|
||||
|
||||
link.onload = t.step_func(() => {
|
||||
link.onload = t.step_func_done(() => {});
|
||||
link.href = 'style.css?second';
|
||||
});
|
||||
|
||||
link.href = 'style.css?first';
|
||||
</script>
|
||||
|
||||
</head>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue