mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 82b73b315ce7ed1554e7a9b7bced66a5831e4ee5
This commit is contained in:
parent
00a9f30773
commit
76712d7d25
353 changed files with 6528 additions and 1307 deletions
|
@ -0,0 +1,58 @@
|
|||
/**
|
||||
* AUTO-GENERATED - DO NOT EDIT. Source: https://github.com/gpuweb/cts
|
||||
**/
|
||||
|
||||
let _Symbol$iterator;
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
export function pcombine(params) {
|
||||
return new PCombine(params);
|
||||
}
|
||||
|
||||
function merge(a, b) {
|
||||
for (const key of Object.keys(a)) {
|
||||
if (b.hasOwnProperty(key)) {
|
||||
throw new Error('Duplicate key: ' + key);
|
||||
}
|
||||
}
|
||||
|
||||
return { ...a,
|
||||
...b
|
||||
};
|
||||
}
|
||||
|
||||
function* cartesian(iters) {
|
||||
if (iters.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (iters.length === 1) {
|
||||
yield* iters[0];
|
||||
return;
|
||||
}
|
||||
|
||||
const [as, ...rest] = iters;
|
||||
|
||||
for (const a of as) {
|
||||
for (const b of cartesian(rest)) {
|
||||
yield merge(a, b);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_Symbol$iterator = Symbol.iterator;
|
||||
|
||||
class PCombine {
|
||||
constructor(params) {
|
||||
_defineProperty(this, "params", void 0);
|
||||
|
||||
this.params = params;
|
||||
}
|
||||
|
||||
[_Symbol$iterator]() {
|
||||
return cartesian(this.params);
|
||||
}
|
||||
|
||||
}
|
||||
//# sourceMappingURL=combine.js.map
|
|
@ -0,0 +1,34 @@
|
|||
/**
|
||||
* AUTO-GENERATED - DO NOT EDIT. Source: https://github.com/gpuweb/cts
|
||||
**/
|
||||
|
||||
let _Symbol$iterator;
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
import { paramsEquals } from './index.js';
|
||||
export function pexclude(params, exclude) {
|
||||
return new PExclude(params, exclude);
|
||||
}
|
||||
_Symbol$iterator = Symbol.iterator;
|
||||
|
||||
class PExclude {
|
||||
constructor(cases, exclude) {
|
||||
_defineProperty(this, "cases", void 0);
|
||||
|
||||
_defineProperty(this, "exclude", void 0);
|
||||
|
||||
this.cases = cases;
|
||||
this.exclude = Array.from(exclude);
|
||||
}
|
||||
|
||||
*[_Symbol$iterator]() {
|
||||
for (const p of this.cases) {
|
||||
if (this.exclude.every(e => !paramsEquals(p, e))) {
|
||||
yield p;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
//# sourceMappingURL=exclude.js.map
|
|
@ -0,0 +1,33 @@
|
|||
/**
|
||||
* AUTO-GENERATED - DO NOT EDIT. Source: https://github.com/gpuweb/cts
|
||||
**/
|
||||
|
||||
let _Symbol$iterator;
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
export function pfilter(cases, pred) {
|
||||
return new PFilter(cases, pred);
|
||||
}
|
||||
_Symbol$iterator = Symbol.iterator;
|
||||
|
||||
class PFilter {
|
||||
constructor(cases, pred) {
|
||||
_defineProperty(this, "cases", void 0);
|
||||
|
||||
_defineProperty(this, "pred", void 0);
|
||||
|
||||
this.cases = cases;
|
||||
this.pred = pred;
|
||||
}
|
||||
|
||||
*[_Symbol$iterator]() {
|
||||
for (const p of this.cases) {
|
||||
if (this.pred(p)) {
|
||||
yield p;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
//# sourceMappingURL=filter.js.map
|
|
@ -0,0 +1,54 @@
|
|||
/**
|
||||
* AUTO-GENERATED - DO NOT EDIT. Source: https://github.com/gpuweb/cts
|
||||
**/
|
||||
|
||||
export * from './combine.js';
|
||||
export * from './filter.js';
|
||||
export * from './options.js';
|
||||
export * from './exclude.js';
|
||||
export function paramsEquals(x, y) {
|
||||
if (x === y) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (x === null || y === null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (const xk of Object.keys(x)) {
|
||||
if (!y.hasOwnProperty(xk)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (x[xk] !== y[xk]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
for (const yk of Object.keys(y)) {
|
||||
if (!x.hasOwnProperty(yk)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
export function paramsSupersets(sup, sub) {
|
||||
if (sub === null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (sup === null) {
|
||||
// && sub !== undefined
|
||||
return false;
|
||||
}
|
||||
|
||||
for (const k of Object.keys(sub)) {
|
||||
if (!sup.hasOwnProperty(k) || sup[k] !== sub[k]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
//# sourceMappingURL=index.js.map
|
|
@ -0,0 +1,36 @@
|
|||
/**
|
||||
* AUTO-GENERATED - DO NOT EDIT. Source: https://github.com/gpuweb/cts
|
||||
**/
|
||||
|
||||
let _Symbol$iterator;
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
export function poptions(name, values) {
|
||||
return new POptions(name, values);
|
||||
}
|
||||
export function pbool(name) {
|
||||
return new POptions(name, [false, true]);
|
||||
}
|
||||
_Symbol$iterator = Symbol.iterator;
|
||||
|
||||
class POptions {
|
||||
constructor(name, values) {
|
||||
_defineProperty(this, "name", void 0);
|
||||
|
||||
_defineProperty(this, "values", void 0);
|
||||
|
||||
this.name = name;
|
||||
this.values = values;
|
||||
}
|
||||
|
||||
*[_Symbol$iterator]() {
|
||||
for (const value of this.values) {
|
||||
yield {
|
||||
[this.name]: value
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
//# sourceMappingURL=options.js.map
|
Loading…
Add table
Add a link
Reference in a new issue