mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Update web-platform-tests to revision 074719e3660000659cd074b8a59de69bd9b90cd7
This commit is contained in:
parent
7e4d0534c3
commit
d2429e5077
4053 changed files with 160516 additions and 486 deletions
|
@ -1,9 +1,3 @@
|
|||
// Only test a subset of tests with ?include=Foo or ?exclude=Foo in the URL.
|
||||
// Can be used together with <meta name="variant" content="...">
|
||||
// Sample usage:
|
||||
// for (const test of tests) {
|
||||
// subsetTestByKey("Foo", async_test, test.fn, test.name);
|
||||
// }
|
||||
(function() {
|
||||
var subTestKeyPattern = null;
|
||||
var match;
|
||||
|
@ -48,6 +42,11 @@
|
|||
});
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Check if `key` is in the subset specified in the URL.
|
||||
* @param {string} key
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function shouldRunSubTest(key) {
|
||||
if (key && subTestKeyPattern) {
|
||||
var found = subTestKeyPattern.test(key);
|
||||
|
@ -58,7 +57,15 @@
|
|||
}
|
||||
return true;
|
||||
}
|
||||
function subsetTestByKey(key, testFunc, ...args) {
|
||||
/**
|
||||
* Only test a subset of tests with `?include=Foo` or `?exclude=Foo` in the URL.
|
||||
* Can be used together with `<meta name="variant" content="...">`
|
||||
* Sample usage:
|
||||
* for (const test of tests) {
|
||||
* subsetTestByKey("Foo", async_test, test.fn, test.name);
|
||||
* }
|
||||
*/
|
||||
function subsetTestByKey(key, testFunc, ...args) {
|
||||
if (collectKeys) {
|
||||
if (collectCounts && key in keys) {
|
||||
keys[key]++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue