Update web-platform-tests to revision f0cb9071aea5ce5b641fcba5f362a0796bdc70bc

This commit is contained in:
WPT Sync Bot 2019-11-23 08:37:37 +00:00
parent 0d549e8146
commit 7289e837fd
558 changed files with 8627 additions and 6619 deletions

View file

@ -0,0 +1,21 @@
<!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=style_link rel=stylesheet>
<script>
async_test(t => {
const link = document.querySelector('#style_link');
link.onload = t.unreached_func('Sheet should fail to load');
link.onerror = t.step_func(() => {
link.onerror = t.step_func_done(() => {});
link.href = 'nonexistent.css?second';
});
link.href = 'nonexistent.css?first';
}, "Check if the <link>'s error event fires for each stylesheet it fails to load");
</script>
</head>
</html>

View file

@ -0,0 +1,21 @@
<!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=style_link rel=stylesheet>
<script>
async_test(t => {
const link = document.querySelector('#style_link');
link.onerror = t.unreached_func('Sheet should load successfully');
link.onload = t.step_func(() => {
link.onload = t.step_func_done(() => {});
link.href = 'style.css?second';
});
link.href = 'style.css?first';
}, "Check if the <link>'s load event fires for each stylesheet it loads");
</script>
</head>
</html>