Commit 32c1dacc authored by Chromium WPT Sync's avatar Chromium WPT Sync Committed by Commit Bot

Import wpt@08d063d028f26c1ade1b151a1fb01a9d29877fdd

Using wpt-import in Chromium 4de0dd39.
With Chromium commits locally applied on WPT:
14350ac7 "[PE] Don't truncate table cell's padding"
af1c15b1 "bluetooth: Use DeviceUUID in FakeBluetooth"
5dc0cbee "[css-typed-om] Clean up parsing tests."
a9a7e883 "Move core CORB logic into //services/network."
5e638c8e "Upstream some CSSOM tests"
300cd0df "Moved XR getViewport, removed XRDevice.external"


Build: https://ci.chromium.org/buildbot/chromium.infra.cron/wpt-importer/13462

Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md

Directory owners for changes in this CL:
bsittler@chromium.org, pwnall@chromium.org:
  external/wpt/cookie-store
domenic@chromium.org, ricea@chromium.org:
  external/wpt/streams
jrummell@chromium.org:
  external/wpt/encrypted-media
jsbell@chromium.org:
  external/wpt/IndexedDB
  external/wpt/storage
jsbell@chromium.org, mek@chromium.org:
  external/wpt/FileAPI
kpaulhamus@chromium.org:
  external/wpt/webauthn
yhirano@chromium.org, mkwst@chromium.org, japhet@chromium.org:
  external/wpt/fetch

TBR=robertma

No-Export: true
Change-Id: Iaf6b4b3ef0e660eeb63f85e60b03c0a2a9237be1
Reviewed-on: https://chromium-review.googlesource.com/954924
Commit-Queue: Blink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Reviewed-by: default avatarBlink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Cr-Commit-Position: refs/heads/master@{#541763}
parent e075e2be
......@@ -25,7 +25,7 @@ setup(function() {
var idl_array = new IdlArray();
var request = new XMLHttpRequest();
request.open("GET", "idlharness.idl");
request.open("GET", "/interfaces/FileAPI.idl");
request.send();
request.onload = function() {
var idls = request.responseText;
......
......@@ -2,7 +2,7 @@ importScripts("/resources/testharness.js");
importScripts("/resources/WebIDLParser.js", "/resources/idlharness.js");
var request = new XMLHttpRequest();
request.open("GET", "idlharness.idl");
request.open("GET", "/interfaces/FileAPI.idl");
request.send();
request.onload = function() {
var idl_array = new IdlArray();
......
......@@ -13,7 +13,7 @@
"use strict";
async_test(function(t) {
var request = new XMLHttpRequest();
request.open("GET", "interfaces.idl");
request.open("GET", "/interfaces/IndexedDB.idl");
request.send();
request.onload = t.step_func(function() {
var idlArray = new IdlArray();
......
......@@ -5,7 +5,7 @@ importScripts("/resources/WebIDLParser.js", "/resources/idlharness.js");
async_test(function(t) {
var request = new XMLHttpRequest();
request.open("GET", "interfaces.idl");
request.open("GET", "/interfaces/IndexedDB.idl");
request.send();
request.onload = t.step_func(function() {
var idlArray = new IdlArray();
......
......@@ -13,7 +13,7 @@
'use strict';
promise_test(function() {
return fetch('interfaces.idl')
return fetch('/interfaces/background-fetch.idl')
.then(response => response.text())
.then(idls => {
var idlArray = new IdlArray();
......
......@@ -4,7 +4,7 @@ importScripts('/resources/testharness.js');
importScripts('/resources/WebIDLParser.js', '/resources/idlharness.js');
promise_test(function() {
return fetch('interfaces.idl')
return fetch('/interfaces/background-fetch.idl')
.then(response => response.text())
.then(idls => {
var idlArray = new IdlArray();
......
......@@ -10,7 +10,7 @@
'use strict';
promise_test(async t => {
const urls = ['/interfaces/html.idl', 'cookie-store.idl'];
const urls = ['/interfaces/html.idl', '/interfaces/cookie-store.idl'];
const [html, cookie_store] = await Promise.all(
urls.map(url => fetch(url).then(response => response.text())));
......
......@@ -7,7 +7,7 @@ importScripts('/resources/testharness.js',
'/resources/idlharness.js');
promise_test(async t => {
const urls = ['cookie-store.idl'];
const urls = ['/interfaces/cookie-store.idl'];
const [cookie_store] = await Promise.all(
urls.map(url => fetch(url).then(response => response.text())));
......
......@@ -22,7 +22,7 @@
<script>
setup(function() {
fetch( 'EncryptedMediaExtensions.idl')
fetch( '/interfaces/encrypted-media.idl' )
.then( function( response ) {
if ( !response.ok ) throw new Error( 'IDL fetch failed' );
return response.text();
......
......@@ -14,7 +14,7 @@ entry_test((t, entry, item) => {
assert_true(entry.isDirectory);
Promise.all([
getEntriesAsPromise(entry),
fetch('interfaces.idl').then(r => r.text())
fetch('/interfaces/entries-api.idl').then(r => r.text())
]).then(t.step_func(([entries, idls]) => {
window.samples = {
item: item,
......
......@@ -10,7 +10,7 @@
'use strict';
promise_test(t => {
return fetch('interfaces.idl')
return fetch('/interfaces/entries-api.idl')
.then(r => r.text())
.then(idls => {
......
This is a testharness.js-based test.
Found 68 tests; 42 PASS, 26 FAIL, 0 TIMEOUT, 0 NOTRUN.
Found 71 tests; 44 PASS, 27 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS Setup.
PASS "data://test/,X"
FAIL "data://test:test/,X" assert_unreached: Should have rejected: undefined Reached unreachable code
......@@ -36,7 +36,10 @@ PASS "data:†,X"
PASS "data:†/†,X"
PASS "data:X,X"
FAIL "data:image/png,X X" assert_array_equals: lengths differ, expected 3 got 2
FAIL "data:application/javascript,X X" assert_array_equals: lengths differ, expected 3 got 2
PASS "data:application/xml,X X"
PASS "data:text/javascript,X X"
PASS "data:text/plain,X X"
FAIL "data:unknown/unknown,X X" assert_array_equals: lengths differ, expected 3 got 2
PASS "data:text/plain;a=\",\",X"
FAIL "data:text/plain;a=%2C,X" assert_equals: expected "text/plain;a=%2C" but got "text/plain"
......
This is a testharness.js-based test.
Found 68 tests; 42 PASS, 26 FAIL, 0 TIMEOUT, 0 NOTRUN.
Found 71 tests; 44 PASS, 27 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS Setup.
PASS "data://test/,X"
FAIL "data://test:test/,X" assert_unreached: Should have rejected: undefined Reached unreachable code
......@@ -36,7 +36,10 @@ PASS "data:†,X"
PASS "data:†/†,X"
PASS "data:X,X"
FAIL "data:image/png,X X" assert_array_equals: lengths differ, expected 3 got 2
FAIL "data:application/javascript,X X" assert_array_equals: lengths differ, expected 3 got 2
PASS "data:application/xml,X X"
PASS "data:text/javascript,X X"
PASS "data:text/plain,X X"
FAIL "data:unknown/unknown,X X" assert_array_equals: lengths differ, expected 3 got 2
PASS "data:text/plain;a=\",\",X"
FAIL "data:text/plain;a=%2C,X" assert_equals: expected "text/plain;a=%2C" but got "text/plain"
......
......@@ -100,9 +100,18 @@
["data:image/png,X X",
"image/png",
[88, 32, 88]],
["data:application/javascript,X X",
"application/javascript",
[88, 32, 88]],
["data:application/xml,X X",
"application/xml",
[88, 32, 88]],
["data:text/javascript,X X",
"text/javascript",
[88, 32, 88]],
["data:text/plain,X X",
"text/plain",
[88, 32, 88]],
["data:unknown/unknown,X X",
"unknown/unknown",
[88, 32, 88]],
......
......@@ -6,7 +6,8 @@ typedef (ArrayBufferView or ArrayBuffer) BufferSource;
[
Exposed=(Window,Worker),
Constructor(optional DOMString message = "", optional DOMString name = "Error")]
Constructor(optional DOMString message = "", optional DOMString name = "Error")
]
interface DOMException { // but see below note about ECMAScript binding
readonly attribute DOMString name;
readonly attribute DOMString message;
......@@ -40,5 +41,7 @@ interface DOMException { // but see below note about ECMAScript binding
};
typedef unsigned long long DOMTimeStamp;
callback Function = any (any... arguments);
callback VoidFunction = void ();
......@@ -9,7 +9,7 @@
<script>
'use strict';
promise_test(t => {
return fetch('interfaces.idl')
return fetch('/interfaces/storage.idl')
.then(response => response.text())
.then(idls => {
var idl_array = new IdlArray();
......
......@@ -4,7 +4,7 @@ importScripts('/resources/testharness.js');
importScripts('/resources/WebIDLParser.js', '/resources/idlharness.js');
promise_test(t => {
return fetch('interfaces.idl')
return fetch('/interfaces/storage.idl')
.then(response => response.text())
.then(idls => {
var idl_array = new IdlArray();
......
......@@ -24,8 +24,8 @@ PASS Underlying source: calling close twice on a non-empty stream should throw t
PASS Underlying source: calling close on an empty canceled stream should throw
PASS Underlying source: calling close on a non-empty canceled stream should throw
PASS Underlying source: calling close after error should throw
PASS Underlying source: calling error twice should throw the second time
PASS Underlying source: calling error after close should throw
FAIL Underlying source: calling error twice should not throw Cannot error a readable stream that is already errored
FAIL Underlying source: calling error after close should not throw Cannot error a close readable stream
PASS Underlying source: calling error and returning a rejected promise from start should cause the stream to error with the first error
PASS Underlying source: calling error and returning a rejected promise from pull should cause the stream to error with the first error
PASS read should not error if it dequeues and pull() throws
......
......@@ -24,8 +24,8 @@ PASS Underlying source: calling close twice on a non-empty stream should throw t
PASS Underlying source: calling close on an empty canceled stream should throw
PASS Underlying source: calling close on a non-empty canceled stream should throw
PASS Underlying source: calling close after error should throw
PASS Underlying source: calling error twice should throw the second time
PASS Underlying source: calling error after close should throw
FAIL Underlying source: calling error twice should not throw Cannot error a readable stream that is already errored
FAIL Underlying source: calling error after close should not throw Cannot error a close readable stream
PASS Underlying source: calling error and returning a rejected promise from start should cause the stream to error with the first error
PASS Underlying source: calling error and returning a rejected promise from pull should cause the stream to error with the first error
PASS read should not error if it dequeues and pull() throws
......
......@@ -306,7 +306,7 @@ promise_test(() => {
const closed = new ReadableStream({
start(c) {
c.error(theError);
assert_throws(new TypeError(), () => c.error(), 'second call to error should throw a TypeError');
c.error();
startCalled = true;
}
}).getReader().closed;
......@@ -316,7 +316,7 @@ promise_test(() => {
assert_equals(e, theError, 'closed should reject with the error');
});
}, 'Underlying source: calling error twice should throw the second time');
}, 'Underlying source: calling error twice should not throw');
promise_test(() => {
......@@ -325,14 +325,14 @@ promise_test(() => {
const closed = new ReadableStream({
start(c) {
c.close();
assert_throws(new TypeError(), () => c.error(), 'second call to error should throw a TypeError');
c.error();
startCalled = true;
}
}).getReader().closed;
return closed.then(() => assert_true(startCalled));
}, 'Underlying source: calling error after close should throw');
}, 'Underlying source: calling error after close should not throw');
promise_test(() => {
......
......@@ -25,8 +25,8 @@ PASS Underlying source: calling close twice on a non-empty stream should throw t
PASS Underlying source: calling close on an empty canceled stream should throw
PASS Underlying source: calling close on a non-empty canceled stream should throw
PASS Underlying source: calling close after error should throw
PASS Underlying source: calling error twice should throw the second time
PASS Underlying source: calling error after close should throw
FAIL Underlying source: calling error twice should not throw Cannot error a readable stream that is already errored
FAIL Underlying source: calling error after close should not throw Cannot error a close readable stream
PASS Underlying source: calling error and returning a rejected promise from start should cause the stream to error with the first error
PASS Underlying source: calling error and returning a rejected promise from pull should cause the stream to error with the first error
PASS read should not error if it dequeues and pull() throws
......
......@@ -24,8 +24,8 @@ PASS Underlying source: calling close twice on a non-empty stream should throw t
PASS Underlying source: calling close on an empty canceled stream should throw
PASS Underlying source: calling close on a non-empty canceled stream should throw
PASS Underlying source: calling close after error should throw
PASS Underlying source: calling error twice should throw the second time
PASS Underlying source: calling error after close should throw
FAIL Underlying source: calling error twice should not throw Cannot error a readable stream that is already errored
FAIL Underlying source: calling error after close should not throw Cannot error a close readable stream
PASS Underlying source: calling error and returning a rejected promise from start should cause the stream to error with the first error
PASS Underlying source: calling error and returning a rejected promise from pull should cause the stream to error with the first error
PASS read should not error if it dequeues and pull() throws
......
This is a testharness.js-based test.
FAIL ReadableStreamController methods should continue working properly when scripts lose their reference to the readable stream promise_test: Unhandled rejection with value: object "TypeError: Cannot error a close readable stream"
PASS ReadableStream closed promise should fulfill even if the stream and reader JS references are lost
PASS ReadableStream closed promise should reject even if stream and reader JS references are lost
PASS Garbage-collecting a ReadableStreamDefaultReader should not unlock its stream
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL ReadableStreamController methods should continue working properly when scripts lose their reference to the readable stream promise_test: Unhandled rejection with value: object "TypeError: Cannot error a close readable stream"
PASS ReadableStream closed promise should fulfill even if the stream and reader JS references are lost
PASS ReadableStream closed promise should reject even if stream and reader JS references are lost
PASS Garbage-collecting a ReadableStreamDefaultReader should not unlock its stream
Harness: the test ran to completion.
......@@ -19,7 +19,7 @@ promise_test(() => {
return delay(50).then(() => {
controller.close();
assert_throws(new TypeError(), () => controller.close(), 'close should throw a TypeError the second time');
assert_throws(new TypeError(), () => controller.error(), 'error should throw a TypeError on a closed stream');
controller.error();
});
}, 'ReadableStreamController methods should continue working properly when scripts lose their reference to the ' +
......
This is a testharness.js-based test.
PASS Service worker test setup
FAIL ReadableStreamController methods should continue working properly when scripts lose their reference to the readable stream promise_test: Unhandled rejection with value: object "TypeError: Cannot error a close readable stream"
PASS ReadableStream closed promise should fulfill even if the stream and reader JS references are lost
PASS ReadableStream closed promise should reject even if stream and reader JS references are lost
PASS Garbage-collecting a ReadableStreamDefaultReader should not unlock its stream
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL ReadableStreamController methods should continue working properly when scripts lose their reference to the readable stream promise_test: Unhandled rejection with value: object "TypeError: Cannot error a close readable stream"
PASS ReadableStream closed promise should fulfill even if the stream and reader JS references are lost
PASS ReadableStream closed promise should reject even if stream and reader JS references are lost
PASS Garbage-collecting a ReadableStreamDefaultReader should not unlock its stream
Harness: the test ran to completion.
......@@ -51,7 +51,7 @@ standardSetup(function() {
// test harness function
window.promise_test(function() {
return fetchIdl("interfaces.idl") // load the IDL file ...
return fetchIdl("/interfaces/webauthn.idl") // load the IDL file ...
.then(function(idls) {
return runIdlTests(idls); // ... then run the tests.
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment