* Check if `key` is in the subset specified in the URL. * @param {string} key * @returns {boolean}
(key)
| 48 | * @returns {boolean} |
| 49 | */ |
| 50 | function shouldRunSubTest(key) { |
| 51 | if (key && subTestKeyPattern) { |
| 52 | var found = subTestKeyPattern.test(key); |
| 53 | if (exclude) { |
| 54 | return !found; |
| 55 | } |
| 56 | return found; |
| 57 | } |
| 58 | return true; |
| 59 | } |
| 60 | /** |
| 61 | * Only test a subset of tests with `?include=Foo` or `?exclude=Foo` in the URL. |
| 62 | * Can be used together with `<meta name="variant" content="...">` |