diff --git a/package.json b/package.json index 39494da620d..65fd9a30a67 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "test:websocket:autobahn": "node test/autobahn/client.js", "test:websocket:autobahn:report": "node test/autobahn/report.js", "test:wpt:setup": "node test/web-platform-tests/wpt-runner.mjs setup", - "test:wpt": "npm run test:wpt:setup && node test/web-platform-tests/wpt-runner.mjs run /fetch /mimesniff /websockets /serviceWorkers /eventsource", + "test:wpt": "npm run test:wpt:setup && node test/web-platform-tests/wpt-runner.mjs run /fetch /mimesniff /xhr /websockets /eventsource", "test:cache-tests": "node test/cache-interceptor/cache-tests.mjs --ci", "coverage": "npm run coverage:clean && cross-env NODE_V8_COVERAGE=./coverage/tmp npm run test:javascript && npm run coverage:report", "coverage:ci": "npm run coverage:clean && cross-env NODE_V8_COVERAGE=./coverage/tmp npm run test:javascript && npm run coverage:report:ci", diff --git a/test/web-platform-tests/expectation.json b/test/web-platform-tests/expectation.json index 34e2cb82957..7b68739584a 100644 --- a/test/web-platform-tests/expectation.json +++ b/test/web-platform-tests/expectation.json @@ -39933,11 +39933,6 @@ "idlharness.any.html": { "success": true, "cases": [ - { - "name": "idl_test setup", - "success": false, - "message": "promise_test: Unhandled rejection with value: object \"ReferenceError: document is not defined\"" - }, { "name": "idl_test validation", "success": true @@ -40691,6 +40686,11 @@ "name": "ProgressEvent interface: new ProgressEvent(\"type\") must inherit property \"total\" with the proper type", "success": false, "message": "assert_equals: Unexpected exception when evaluating object expected null but got object \"ReferenceError: ProgressEvent is not defined\"" + }, + { + "name": "idl_test setup", + "success": false, + "message": "promise_test: Unhandled rejection with value: object \"ReferenceError: document is not defined\"" } ] }, @@ -40751,10 +40751,6 @@ "success": false, "message": "XMLHttpRequest is not defined" }, - { - "name": "Loading data…", - "success": true - }, { "name": "1) MIME types need to be parsed and serialized: text/html;charset=gbk", "success": false, @@ -41124,6 +41120,10 @@ "name": "74) MIME types need to be parsed and serialized: \"text/html\"", "success": false, "message": "XMLHttpRequest is not defined" + }, + { + "name": "Loading data…", + "success": true } ] }, @@ -42196,6 +42196,71 @@ "xmlhttprequest-timeout-worker-twice.html?timeout%20fires%20normally%20with%20same%20timeout%20set%20twice": { "success": false, "cases": [] + }, + "abort-during-navigation.window.html": { + "success": true, + "cases": [ + { + "name": "XHR should not fire abort or error events when cancelled by navigation", + "success": false, + "message": "document is not defined" + } + ] + }, + "abort-progress-events.any.html": { + "success": true, + "cases": [ + { + "name": "Events must not fire when state is UNSENT after abort()", + "success": false, + "message": "XMLHttpRequest is not defined" + }, + { + "name": "Calling open/abort in readystatechange should not crash", + "success": false, + "message": "XMLHttpRequest is not defined" + } + ] + }, + "sync-xhr-supported-by-permissions-policy.tentative.html": { + "success": true, + "cases": [ + { + "name": "document.permissionsPolicy.features should advertise sync-xhr.", + "success": false, + "message": "document is not defined" + } + ] + }, + "xmlhttprequest-sync-default-permissions-policy.tentative.sub.html": { + "success": true, + "cases": [ + { + "name": "Default \"sync-xhr\" permissions policy [\"*\"] allows the top-level document.", + "success": false, + "message": "promise_test: Unhandled rejection with value: object \"[object Object]\"" + }, + { + "name": "Default \"sync-xhr\" permissions policy [\"*\"] allows same-origin iframes.", + "success": false, + "message": "document is not defined" + }, + { + "name": "Default \"sync-xhr\" permissions policy [\"*\"] allows cross-origin iframes.", + "success": false, + "message": "document is not defined" + }, + { + "name": "permissions policy \"sync-xhr\" can be disabled in cross-origin iframes using \"allow\" attribute.", + "success": false, + "message": "document is not defined" + }, + { + "name": "permissions policy \"sync-xhr\" can be disabled in same-origin iframes using \"allow\" attribute.", + "success": false, + "message": "document is not defined" + } + ] } }, "eventsource": {