summaryrefslogtreecommitdiff
path: root/tools/wpt/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tools/wpt/utils.ts')
-rw-r--r--tools/wpt/utils.ts32
1 files changed, 0 insertions, 32 deletions
diff --git a/tools/wpt/utils.ts b/tools/wpt/utils.ts
index 4003d975d..6d982068b 100644
--- a/tools/wpt/utils.ts
+++ b/tools/wpt/utils.ts
@@ -85,38 +85,6 @@ export function saveExpectation(expectation: Expectation) {
);
}
-export function generateTestExpectations(filter: string[]) {
- const manifest = getManifest();
-
- function walk(folder: ManifestFolder, prefix: string): Expectation {
- const expectation: Expectation = {};
- for (const key in folder) {
- const path = `${prefix}/${key}`;
- const entry = folder[key];
- if (Array.isArray(entry)) {
- if (!filter.find((filter) => path.startsWith(filter))) continue;
- if (key.endsWith(".js")) {
- expectation[key] = false;
- }
- } else {
- if (!filter.find((filter) => `${path}/`.startsWith(filter))) continue;
- expectation[key] = walk(entry, path);
- }
- }
- for (const key in expectation) {
- const entry = expectation[key];
- if (typeof entry === "object") {
- if (Object.keys(expectation[key]).length === 0) {
- delete expectation[key];
- }
- }
- }
- return expectation;
- }
-
- return walk(manifest.items.testharness, "");
-}
-
export function getExpectFailForCase(
expectation: boolean | string[],
caseName: string,