mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Auto merge of #25396 - servo-wpt-sync:wpt_update_26-12-2019, r=servo-wpt-sync
Sync WPT with upstream (26-12-2019) Automated downstream sync of changes from upstream as of 26-12-2019. [no-wpt-sync] r? @servo-wpt-sync
This commit is contained in:
commit
44b3e8bb71
17 changed files with 132 additions and 34 deletions
|
@ -374704,6 +374704,18 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"loading/lazyload/image-loading-lazy-below-viewport-dynamic.tentative.html": [
|
||||
[
|
||||
"loading/lazyload/image-loading-lazy-below-viewport-dynamic.tentative.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"loading/lazyload/image-loading-lazy-in-viewport-dynamic.tentative.html": [
|
||||
[
|
||||
"loading/lazyload/image-loading-lazy-in-viewport-dynamic.tentative.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"loading/lazyload/image-loading-lazy-load-event.tentative.html": [
|
||||
[
|
||||
"loading/lazyload/image-loading-lazy-load-event.tentative.html",
|
||||
|
@ -671349,6 +671361,14 @@
|
|||
"76eef3a8f45c131bdbf90028f8bcad75be0e5f32",
|
||||
"testharness"
|
||||
],
|
||||
"loading/lazyload/image-loading-lazy-below-viewport-dynamic.tentative.html": [
|
||||
"a545410f9787a7e8650fcde54556f407bafffa83",
|
||||
"testharness"
|
||||
],
|
||||
"loading/lazyload/image-loading-lazy-in-viewport-dynamic.tentative.html": [
|
||||
"d316a6ae22bea4b4bf7a1b02ba21c24556923790",
|
||||
"testharness"
|
||||
],
|
||||
"loading/lazyload/image-loading-lazy-load-event.tentative.html": [
|
||||
"9e56a3150953494533d117841dcdd454aaa039f2",
|
||||
"testharness"
|
||||
|
@ -722414,7 +722434,7 @@
|
|||
"manual"
|
||||
],
|
||||
"web-nfc/NDEFWriter_push.https.html": [
|
||||
"a6050b8ff7112cc00ec29b596c992cafb3657b7e",
|
||||
"1bdbf0bb50b38b2e385a5938a79c7bf679805b2b",
|
||||
"testharness"
|
||||
],
|
||||
"web-nfc/README.md": [
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
[no-transition-from-ua-to-blocking-stylesheet.html]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
|
|
@ -2,3 +2,6 @@
|
|||
[listeners are called when <iframe> is resized]
|
||||
expected: FAIL
|
||||
|
||||
[listeners are called correct number of times]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -309,21 +309,15 @@
|
|||
[<iframe>: separate response Content-Type: */* text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html */*]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;x=" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: */* text/html]
|
||||
[<iframe>: combined response Content-Type: text/html;" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html;" text/plain]
|
||||
[<iframe>: combined response Content-Type: text/html */*;charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
|
||||
[<iframe>: separate response Content-Type: text/html;x=" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -14,3 +14,6 @@
|
|||
[X-Content-Type-Options%3A%20'NosniFF']
|
||||
expected: FAIL
|
||||
|
||||
[X-Content-Type-Options%3A%20%2Cnosniff]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
[embedded-credentials.tentative.sub.html]
|
||||
type: testharness
|
||||
expected: CRASH
|
||||
expected: TIMEOUT
|
||||
[Embedded credentials are treated as network errors.]
|
||||
expected: FAIL
|
||||
|
||||
[Embedded credentials are treated as network errors in frames.]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
||||
[Embedded credentials are treated as network errors in new windows.]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[traverse_the_history_2.html]
|
||||
[Multiple history traversals, last would be aborted]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[traverse_the_history_3.html]
|
||||
[Multiple history traversals, last would be aborted]
|
||||
expected: FAIL
|
||||
|
|
@ -1,8 +1,4 @@
|
|||
[skip-document-with-fragment.html]
|
||||
expected: TIMEOUT
|
||||
[Autofocus elements in iframed documents with URL fragments should be skipped.]
|
||||
expected: FAIL
|
||||
|
||||
[Autofocus elements in top-level browsing context's documents with URI fragments should be skipped.]
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[iframe_sandbox_popups_nonescaping-3.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
expected: CRASH
|
||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -10,6 +10,3 @@
|
|||
[Verifies the resolution of entry.startTime is at least 20 microseconds.]
|
||||
expected: TIMEOUT
|
||||
|
||||
[Verifies the resolution of performance.now() is at least 5 microseconds.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
[crossorigin-sandwich-TAO.sub.html]
|
||||
expected: ERROR
|
||||
[There should be one entry.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
[realtimeanalyser-fft-scaling.html]
|
||||
expected: TIMEOUT
|
||||
[X 2048-point FFT peak position is not equal to 64. Got 0.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[005.html]
|
||||
expected: ERROR
|
||||
[dedicated worker in shared worker in dedicated worker]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -0,0 +1,49 @@
|
|||
<!DOCTYPE html>
|
||||
<head>
|
||||
<title>Below viewport images with loading='lazy' and changed to
|
||||
loading='eager' load and do not block the window load event</title>
|
||||
<link rel="author" title="Rob Buis" href="mailto:rbuis@igalia.com">
|
||||
<link rel="help" href="https://github.com/scott-little/lazyload">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
|
||||
<!--
|
||||
Marked as tentative until https://github.com/whatwg/html/pull/3752 is landed.
|
||||
-->
|
||||
|
||||
<script>
|
||||
const t = async_test("Test that below viewport images with loading='lazy' " +
|
||||
"and changed to loading='eager' load and do not block " +
|
||||
"the window load event.");
|
||||
|
||||
let has_below_viewport_loaded = false;
|
||||
let has_window_loaded = false;
|
||||
|
||||
window.addEventListener("load", t.step_func(function() {
|
||||
assert_false(has_window_loaded,
|
||||
"The window.load() event should only fire once.");
|
||||
has_window_loaded = true;
|
||||
}));
|
||||
|
||||
const below_viewport_img_onload = t.step_func_done(function() {
|
||||
assert_false(has_below_viewport_loaded,
|
||||
"The in_viewport element should load only once.");
|
||||
assert_true(has_window_loaded,
|
||||
"The window.load() event should have fired before " +
|
||||
"below_viewport loaded.");
|
||||
has_below_viewport_loaded = true;
|
||||
});
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<div style="height:10000px;"></div>
|
||||
<img id="below_viewport" src="resources/image.png?pipe=trickle(d2)"
|
||||
loading="lazy" onload="below_viewport_img_onload();">
|
||||
<script>
|
||||
assert_false(has_window_loaded,
|
||||
"The window.load() event should not fire before " +
|
||||
"changing below_viewport to loading='eager'.");
|
||||
document.getElementById("below_viewport").loading = 'eager';
|
||||
</script>
|
||||
</body>
|
|
@ -0,0 +1,44 @@
|
|||
<!DOCTYPE html>
|
||||
<head>
|
||||
<title>In viewport images with loading='lazy' and changed to loading='eager'
|
||||
do not block the window load event</title>
|
||||
<link rel="author" title="Rob Buis" href="mailto:rbuis@igalia.com">
|
||||
<link rel="help" href="https://github.com/scott-little/lazyload">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
|
||||
<!--
|
||||
Marked as tentative until https://github.com/whatwg/html/pull/3752 is landed.
|
||||
-->
|
||||
|
||||
<script>
|
||||
const t = async_test("Test that in viewport images with loading='lazy' and " +
|
||||
"changed to loading='eager' do not block the window " +
|
||||
"load event.");
|
||||
|
||||
let has_in_viewport_loaded = false;
|
||||
let has_window_loaded = false;
|
||||
|
||||
const in_viewport_img_onload = t.step_func_done(function() {
|
||||
assert_false(has_in_viewport_loaded,
|
||||
"The in_viewport element should load only once.");
|
||||
assert_true(has_window_loaded,
|
||||
"The window.load() event should fire before in_viewport image loads.");
|
||||
has_in_viewport_loaded = true;
|
||||
});
|
||||
|
||||
window.addEventListener("load", t.step_func(function() {
|
||||
assert_false(has_window_loaded,
|
||||
"The window.load() event should only fire once.");
|
||||
has_window_loaded = true;
|
||||
}));
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<img id="in_viewport" src="resources/image.png?pipe=trickle(d2)"
|
||||
loading="lazy" onload="in_viewport_img_onload();">
|
||||
<script>
|
||||
document.getElementById("in_viewport").loading = 'eager';
|
||||
</script>
|
||||
</body>
|
|
@ -35,9 +35,6 @@ const invalid_type_messages =
|
|||
// "utf-16", "utf-16le" or "utf-16be".
|
||||
createMessage([createTextRecord(test_text_data, "chinese")]),
|
||||
|
||||
// NDEFRecord.lang length for 'text' record must be lower than 64.
|
||||
createMessage([createTextRecord(test_text_data, undefined /* encoding */, [...Array(64)].map(_ => 'a'))]),
|
||||
|
||||
// https://w3c.github.io/web-nfc/#dfn-map-a-url-to-ndef
|
||||
// NDEFRecord must have data.
|
||||
createMessage([createUrlRecord()]),
|
||||
|
@ -91,6 +88,10 @@ const invalid_syntax_messages =
|
|||
// Data for 'url' or 'absolute-url' record, must be a valid URL.
|
||||
createMessage([createUrlRecord('Invalid URL:// Data')]),
|
||||
createMessage([createUrlRecord('Invalid URL:// Data', true)]),
|
||||
|
||||
// NDEFRecord.lang length for 'text' record must be lower than 64.
|
||||
createMessage([createTextRecord(test_text_data, undefined /* encoding */,
|
||||
[...Array(64)].map(_ => 'a'))]),
|
||||
];
|
||||
|
||||
const invalid_signals = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue