Skip to content
Permalink
Browse files

Update web-platform-tests to revision d1e20d6e525ebf9b99876c7f08b14cb…

…268364f79
  • Loading branch information
servo-wpt-sync committed Dec 26, 2019
1 parent 8002c6b commit 7b9544157403351e7311ae2ae1816b29c764fabf
Showing with 132 additions and 34 deletions.
  1. +21 −1 tests/wpt/metadata/MANIFEST.json
  2. +1 −1 tests/wpt/metadata/css/css-transitions/no-transition-from-ua-to-blocking-stylesheet.html.ini
  3. +3 −0 tests/wpt/metadata/css/cssom-view/MediaQueryList-addListener-removeListener.html.ini
  4. +3 −9 tests/wpt/metadata/fetch/content-type/response.window.js.ini
  5. +3 −0 tests/wpt/metadata/fetch/nosniff/parsing-nosniff.window.js.ini
  6. +2 −2 tests/wpt/metadata/fetch/security/embedded-credentials.tentative.sub.html.ini
  7. +0 −4 tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_2.html.ini
  8. +0 −4 tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_3.html.ini
  9. +0 −4 .../wpt/metadata/html/interaction/focus/the-autofocus-attribute/skip-document-with-fragment.html.ini
  10. +1 −1 ...a/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-3.html.ini
  11. +0 −3 tests/wpt/metadata/performance-timeline/webtiming-resolution.any.js.ini
  12. +0 −1 tests/wpt/metadata/resource-timing/crossorigin-sandwich-TAO.sub.html.ini
  13. +0 −1 .../metadata/webaudio/the-audio-api/the-analysernode-interface/realtimeanalyser-fft-scaling.html.ini
  14. +1 −0 tests/wpt/metadata/workers/semantics/multiple-workers/005.html.ini
  15. +49 −0 .../wpt/web-platform-tests/loading/lazyload/image-loading-lazy-below-viewport-dynamic.tentative.html
  16. +44 −0 tests/wpt/web-platform-tests/loading/lazyload/image-loading-lazy-in-viewport-dynamic.tentative.html
  17. +4 −3 tests/wpt/web-platform-tests/web-nfc/NDEFWriter_push.https.html
{}
]
],
"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",
"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"
"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

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

@@ -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 @@
// "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 @@
// 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 = [

0 comments on commit 7b95441

Please sign in to comment.
You can’t perform that action at this time.