Files
firefox/testing/web-platform/tests/webgpu/framework/params/exclude.js
T
Kai Ninomiya fbe2119366 Bug 1573718 [wpt PR 18414] - Add and run the WebGPU CTS under WPT, a=testonly
Automatic update from web-platform-tests
Add and run the WebGPU CTS under WPT

This adds a build of the WebGPU CTS (https://github.com/gpuweb/cts) to WPT.
(The version hash is saved in wpt/webgpu/framework/version.js.)

This also deletes the existing WebGPU web_tests, as they have been ported into the CTS.

Bug: 984818
Change-Id: I5b514a2a893b530bcc522ff131f6c653bb996210
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1707578
Reviewed-by: Kenneth Russell <[email protected]>
Reviewed-by: Austin Eng <[email protected]>
Commit-Queue: Kai Ninomiya <[email protected]>
Cr-Commit-Position: refs/heads/master@{#687932}

--

wpt-commits: 7a9cb992767821c707c922d1cae1dffe3c8613b0
wpt-pr: 18414
2019-08-27 04:11:31 +00:00

34 lines
880 B
JavaScript

/**
* 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