summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/core_import_map.json1
-rwxr-xr-xtools/wpt.ts17
-rw-r--r--tools/wpt/expectation.json6
3 files changed, 15 insertions, 9 deletions
diff --git a/tools/core_import_map.json b/tools/core_import_map.json
index b4eed19f0..6dff4c930 100644
--- a/tools/core_import_map.json
+++ b/tools/core_import_map.json
@@ -222,6 +222,7 @@
"ext:deno_web/13_message_port.js": "../ext/web/13_message_port.js",
"ext:deno_web/14_compression.js": "../ext/web/14_compression.js",
"ext:deno_web/15_performance.js": "../ext/web/15_performance.js",
+ "ext:deno_web/16_image_data.js": "../ext/web/16_image_data.js",
"ext:deno_webidl/00_webidl.js": "../ext/webidl/00_webidl.js",
"ext:deno_websocket/01_websocket.js": "../ext/websocket/01_websocket.js",
"ext:deno_websocket/02_websocketstream.js": "../ext/websocket/02_websocketstream.js",
diff --git a/tools/wpt.ts b/tools/wpt.ts
index 07f6b6ba9..1867c1ed5 100755
--- a/tools/wpt.ts
+++ b/tools/wpt.ts
@@ -711,14 +711,15 @@ function discoverTestsToRun(
1,
) as ManifestTestVariation[]
) {
- if (!path) continue;
- const url = new URL(path, "http://web-platform.test:8000");
- if (
- !url.pathname.endsWith(".any.html") &&
- !url.pathname.endsWith(".window.html") &&
- !url.pathname.endsWith(".worker.html") &&
- !url.pathname.endsWith(".worker-module.html")
- ) {
+ // Test keys ending with ".html" include their own html boilerplate.
+ // Test keys ending with ".js" will have the necessary boilerplate generated and
+ // the manifest path will contain the full path to the generated html test file.
+ // See: https://web-platform-tests.org/writing-tests/testharness.html
+ if (!key.endsWith(".html") && !key.endsWith(".js")) continue;
+
+ const testHtmlPath = path ?? `${prefix}/${key}`;
+ const url = new URL(testHtmlPath, "http://web-platform.test:8000");
+ if (!url.pathname.endsWith(".html")) {
continue;
}
// These tests require an HTTP2 compatible server.
diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json
index 3b4b3b9d4..2c9aa8ceb 100644
--- a/tools/wpt/expectation.json
+++ b/tools/wpt/expectation.json
@@ -7011,6 +7011,11 @@
}
},
"embedded-content": {
+ "the-canvas-element": {
+ "imagedata.html": [
+ "ImageData(buffer, w, opt h), Uint8ClampedArray argument type check"
+ ]
+ },
"the-iframe-element": {
"cross-origin-to-whom-part-2.window.html": false,
"cross-origin-to-whom.window.html": false,
@@ -8389,7 +8394,6 @@
"interface-objects": {
"001.worker.html": [
"The SharedWorker interface object should be exposed.",
- "The ImageData interface object should be exposed.",
"The ImageBitmap interface object should be exposed.",
"The CanvasGradient interface object should be exposed.",
"The CanvasPattern interface object should be exposed.",