Skip to content

Commit

Permalink
Update web-platform-tests to revision d1e20d6e525ebf9b99876c7f08b14cb…
Browse files Browse the repository at this point in the history
…268364f79
  • Loading branch information
servo-wpt-sync committed Dec 26, 2019
1 parent 8002c6b commit 7b95441
Show file tree
Hide file tree
Showing 17 changed files with 132 additions and 34 deletions.
22 changes: 21 additions & 1 deletion tests/wpt/metadata/MANIFEST.json
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -722414,7 +722434,7 @@
"manual"
],
"web-nfc/NDEFWriter_push.https.html": [
"a6050b8ff7112cc00ec29b596c992cafb3657b7e",
"1bdbf0bb50b38b2e385a5938a79c7bf679805b2b",
"testharness"
],
"web-nfc/README.md": [
Expand Down
@@ -1,2 +1,2 @@
[no-transition-from-ua-to-blocking-stylesheet.html]
expected: TIMEOUT
expected: FAIL
Expand Up @@ -2,3 +2,6 @@
[listeners are called when <iframe> is resized]
expected: FAIL

[listeners are called correct number of times]
expected: FAIL

12 changes: 3 additions & 9 deletions tests/wpt/metadata/fetch/content-type/response.window.js.ini
Expand Up @@ -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

Expand Up @@ -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
Expand Down

This file was deleted.

This file was deleted.

@@ -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

Expand Up @@ -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

Expand Down
@@ -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

Expand Down
@@ -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>
Expand Up @@ -35,9 +35,6 @@
// "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()]),
Expand Down Expand Up @@ -91,6 +88,10 @@
// 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 = [
Expand Down

0 comments on commit 7b95441

Please sign in to comment.