From ecc0101a80dc117c6b62f95ebda8f7403f0230b3 Mon Sep 17 00:00:00 2001 From: WPT Sync Bot Date: Sat, 28 Sep 2019 10:25:04 +0000 Subject: [PATCH] Update web-platform-tests to revision 4ab3cef83d73c2b6dd3616e0fe9165b3a6eed808 --- .../url/url-in-tags-revoke.window.js.ini | 6 +- .../FileAPI/url/url-with-fetch.any.js.ini | 3 - tests/wpt/metadata/MANIFEST.json | 176 +- .../zero-width-floats-positioning.html.ini | 2 - .../inline-negative-margin-001.html.ini | 4 + .../parsing/animation-computed.html.ini | 34 + .../font-display-preload.html.ini | 2 +- .../parsing/font-variant-valid.html.ini | 133 + .../transform-box/fill-box-mutation.html.ini | 2 - .../parsing/transition-computed.html.ini | 22 + .../transition-timing-function-001.html.ini | 13 - .../contentType/contenttype_txt.html.ini | 2 + .../fetch/content-type/response.window.js.ini | 11 +- .../fetch/content-type/script.window.js.ini | 3 + .../nosniff/parsing-nosniff.window.js.ini | 6 + .../traverse_the_history_5.html.ini | 4 - ...creating_browsing_context_test_01.html.ini | 5 - ...s-negative-innerwidth-innerheight.html.ini | 19 + ...features-negative-screenx-screeny.html.ini | 19 + .../open-features-negative-top-left.html.ini | 19 + ...en-features-negative-width-height.html.ini | 19 + .../open-features-non-integer-height.html.ini | 34 +- ...-features-non-integer-innerheight.html.ini | 28 +- ...n-features-non-integer-innerwidth.html.ini | 28 +- .../open-features-non-integer-left.html.ini | 28 +- ...open-features-non-integer-screenx.html.ini | 28 +- ...open-features-non-integer-screeny.html.ini | 28 +- .../open-features-non-integer-top.html.ini | 28 +- .../open-features-non-integer-width.html.ini | 34 +- .../closed-attribute.window.js.ini | 6 - .../embedded-opener-remove-frame.html.ini | 3 +- .../the-details-element/toggleEvent.html.ini | 7 - .../script-onerror-insertion-point-2.html.ini | 2 + .../parsing/DOMContentLoaded-defer.html.ini | 4 + .../promise-rejection-events-onerror.html.ini | 5 - .../idlharness.window.js.ini | 4 - .../webgl/webgl1-idlharness.any.js.ini | 2451 ---------- .../webgl/webgl2-idlharness.any.js.ini | 4167 ----------------- ...sSessionSupported_immersive.https.html.ini | 4 + ...orted_immersive_unsupported.https.html.ini | 4 + ...e_isSessionSupported_inline.https.html.ini | 4 + .../alpha/import-in-moduleworker.html.ini | 1 + .../semantics/interface-objects/003.html.ini | 6 - .../semantics/interface-objects/004.html.ini | 6 - .../css/transition_calc_implicit.html.ini | 2 - tests/wpt/web-platform-tests/.github/META.yml | 3 + ...me-ancestors-from-serviceworker.https.html | 36 + .../report-blocked-frame.sub.html | 1 + .../frame-ancestors/support/service-worker.js | 10 + .../parsing/animation-computed.html | 38 + .../parsing/font-variant-invalid.html | 62 + .../css-fonts/parsing/font-variant-valid.html | 106 + .../parsing/transition-computed.html | 29 + .../web-platform-tests/fonts/Ahem.ttf.headers | 1 + .../fonts/CanvasTest.ttf.headers | 1 + .../fonts/CanvasTest.ttf.sub.headers | 1 - tests/wpt/web-platform-tests/fonts/ahem.css | 3 +- .../web-platform-tests/fonts/ahem.css.headers | 2 + .../resources/generic-sensor-helpers.js | 9 +- .../interfaces/css-properties-values-api.idl | 4 + .../interfaces/encoding.idl | 18 +- .../interfaces/mediasession.idl | 2 +- .../interfaces/user-timing.idl | 4 +- .../web-platform-tests/interfaces/webrtc.idl | 70 +- .../observe-layout-shift.html | 5 + ...erover-legacy-align-attribute-001-ref.html | 61 + .../underover-legacy-align-attribute-001.html | 72 + .../ProximitySensor-iframe-access.https.html | 2 +- .../proximity/ProximitySensor.https.html | 22 +- .../ProximitySensor_onerror-manual.https.html | 20 - .../chromium/generic_sensor_mocks.js | 5 +- .../resources/chromium/nfc-mock.js | 2 +- .../resources/chromium/sms_mock.js | 2 +- .../animation-types/property-types.js | 2 +- ...ce_isSessionSupported_immersive.https.html | 21 + ...Supported_immersive_unsupported.https.html | 21 + ...evice_isSessionSupported_inline.https.html | 22 + 77 files changed, 1201 insertions(+), 6872 deletions(-) delete mode 100644 tests/wpt/metadata/css/CSS2/floats/zero-width-floats-positioning.html.ini create mode 100644 tests/wpt/metadata/css/CSS2/linebox/inline-negative-margin-001.html.ini create mode 100644 tests/wpt/metadata/css/css-animations/parsing/animation-computed.html.ini create mode 100644 tests/wpt/metadata/css/css-fonts/parsing/font-variant-valid.html.ini delete mode 100644 tests/wpt/metadata/css/css-transforms/transform-box/fill-box-mutation.html.ini create mode 100644 tests/wpt/metadata/css/css-transitions/parsing/transition-computed.html.ini delete mode 100644 tests/wpt/metadata/css/css-transitions/transition-timing-function-001.html.ini create mode 100644 tests/wpt/metadata/dom/nodes/Document-contentType/contentType/contenttype_txt.html.ini delete mode 100644 tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_5.html.ini delete mode 100644 tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/creating_browsing_context_test_01.html.ini delete mode 100644 tests/wpt/metadata/html/semantics/interactive-elements/the-details-element/toggleEvent.html.ini create mode 100644 tests/wpt/metadata/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-2.html.ini create mode 100644 tests/wpt/metadata/html/syntax/parsing/DOMContentLoaded-defer.html.ini delete mode 100644 tests/wpt/metadata/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html.ini delete mode 100644 tests/wpt/metadata/subresource-integrity/idlharness.window.js.ini delete mode 100644 tests/wpt/metadata/webgl/webgl1-idlharness.any.js.ini delete mode 100644 tests/wpt/metadata/webgl/webgl2-idlharness.any.js.ini create mode 100644 tests/wpt/metadata/webxr/xrDevice_isSessionSupported_immersive.https.html.ini create mode 100644 tests/wpt/metadata/webxr/xrDevice_isSessionSupported_immersive_unsupported.https.html.ini create mode 100644 tests/wpt/metadata/webxr/xrDevice_isSessionSupported_inline.https.html.ini delete mode 100644 tests/wpt/metadata/workers/semantics/interface-objects/003.html.ini delete mode 100644 tests/wpt/metadata/workers/semantics/interface-objects/004.html.ini delete mode 100644 tests/wpt/mozilla/meta/css/transition_calc_implicit.html.ini create mode 100644 tests/wpt/web-platform-tests/.github/META.yml create mode 100644 tests/wpt/web-platform-tests/content-security-policy/frame-ancestors/frame-ancestors-from-serviceworker.https.html create mode 100644 tests/wpt/web-platform-tests/content-security-policy/frame-ancestors/support/service-worker.js create mode 100644 tests/wpt/web-platform-tests/css/css-animations/parsing/animation-computed.html create mode 100644 tests/wpt/web-platform-tests/css/css-fonts/parsing/font-variant-invalid.html create mode 100644 tests/wpt/web-platform-tests/css/css-fonts/parsing/font-variant-valid.html create mode 100644 tests/wpt/web-platform-tests/css/css-transitions/parsing/transition-computed.html create mode 100644 tests/wpt/web-platform-tests/fonts/CanvasTest.ttf.headers delete mode 100644 tests/wpt/web-platform-tests/fonts/CanvasTest.ttf.sub.headers create mode 100644 tests/wpt/web-platform-tests/fonts/ahem.css.headers create mode 100644 tests/wpt/web-platform-tests/mathml/presentation-markup/scripts/underover-legacy-align-attribute-001-ref.html create mode 100644 tests/wpt/web-platform-tests/mathml/presentation-markup/scripts/underover-legacy-align-attribute-001.html delete mode 100644 tests/wpt/web-platform-tests/proximity/ProximitySensor_onerror-manual.https.html create mode 100644 tests/wpt/web-platform-tests/webxr/xrDevice_isSessionSupported_immersive.https.html create mode 100644 tests/wpt/web-platform-tests/webxr/xrDevice_isSessionSupported_immersive_unsupported.https.html create mode 100644 tests/wpt/web-platform-tests/webxr/xrDevice_isSessionSupported_inline.https.html diff --git a/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini b/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini index a9e467132440..dd4ffcf4345b 100644 --- a/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini +++ b/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini @@ -1,5 +1,4 @@ [url-in-tags-revoke.window.html] - expected: TIMEOUT [Fetching a blob URL immediately before revoking it works in an iframe.] expected: FAIL @@ -7,7 +6,7 @@ expected: FAIL [Opening a blob URL in a new window immediately before revoking it works.] - expected: TIMEOUT + expected: FAIL [Opening a blob URL in a noopener about:blank window immediately before revoking it works.] expected: FAIL @@ -15,6 +14,3 @@ [Opening a blob URL in a new window by clicking an tag works immediately before revoking the URL.] expected: FAIL - [Fetching a blob URL immediately before revoking it works in + + + + + + + + diff --git a/tests/wpt/web-platform-tests/content-security-policy/frame-ancestors/report-blocked-frame.sub.html b/tests/wpt/web-platform-tests/content-security-policy/frame-ancestors/report-blocked-frame.sub.html index 047d377cf4cf..69c098d5597f 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/frame-ancestors/report-blocked-frame.sub.html +++ b/tests/wpt/web-platform-tests/content-security-policy/frame-ancestors/report-blocked-frame.sub.html @@ -1,5 +1,6 @@ + diff --git a/tests/wpt/web-platform-tests/content-security-policy/frame-ancestors/support/service-worker.js b/tests/wpt/web-platform-tests/content-security-policy/frame-ancestors/support/service-worker.js new file mode 100644 index 000000000000..ebced90f50af --- /dev/null +++ b/tests/wpt/web-platform-tests/content-security-policy/frame-ancestors/support/service-worker.js @@ -0,0 +1,10 @@ +self.onfetch = e => { + e.respondWith(function() { + return new Promise((resolve) => { + var headers = new Headers; + headers.append("Content-Security-Policy", "frame-ancestors 'none'"); + var response = new Response("", { "headers" : headers, "status": 200, "statusText" : "OK" }); + resolve(response); + }); + }()); +}; diff --git a/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-computed.html b/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-computed.html new file mode 100644 index 000000000000..467f4357f102 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-computed.html @@ -0,0 +1,38 @@ + + + + +CSS Animations: getComputedStyle().animation + + + + + + + +
+ + + diff --git a/tests/wpt/web-platform-tests/css/css-fonts/parsing/font-variant-invalid.html b/tests/wpt/web-platform-tests/css/css-fonts/parsing/font-variant-invalid.html new file mode 100644 index 000000000000..c591acc3fcdf --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-fonts/parsing/font-variant-invalid.html @@ -0,0 +1,62 @@ + + + + +CSS Fonts Module Level 4: parsing font-variant with invalid values + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-fonts/parsing/font-variant-valid.html b/tests/wpt/web-platform-tests/css/css-fonts/parsing/font-variant-valid.html new file mode 100644 index 000000000000..921498d738e0 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-fonts/parsing/font-variant-valid.html @@ -0,0 +1,106 @@ + + + + +CSS Fonts Module Level 4: parsing font-variant with valid values + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-transitions/parsing/transition-computed.html b/tests/wpt/web-platform-tests/css/css-transitions/parsing/transition-computed.html new file mode 100644 index 000000000000..3f253c3a0d1f --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-transitions/parsing/transition-computed.html @@ -0,0 +1,29 @@ + + + + +CSS Transitions: getComputedStyle().transition + + + + + + + +
+ + + diff --git a/tests/wpt/web-platform-tests/fonts/Ahem.ttf.headers b/tests/wpt/web-platform-tests/fonts/Ahem.ttf.headers index cb762eff8068..659e3760fba9 100644 --- a/tests/wpt/web-platform-tests/fonts/Ahem.ttf.headers +++ b/tests/wpt/web-platform-tests/fonts/Ahem.ttf.headers @@ -1 +1,2 @@ Access-Control-Allow-Origin: * +Cache-Control: max-age=3600 diff --git a/tests/wpt/web-platform-tests/fonts/CanvasTest.ttf.headers b/tests/wpt/web-platform-tests/fonts/CanvasTest.ttf.headers new file mode 100644 index 000000000000..6f34caa8f2ab --- /dev/null +++ b/tests/wpt/web-platform-tests/fonts/CanvasTest.ttf.headers @@ -0,0 +1 @@ +Cache-Control: max-age=3600 diff --git a/tests/wpt/web-platform-tests/fonts/CanvasTest.ttf.sub.headers b/tests/wpt/web-platform-tests/fonts/CanvasTest.ttf.sub.headers deleted file mode 100644 index 360e6686bfb6..000000000000 --- a/tests/wpt/web-platform-tests/fonts/CanvasTest.ttf.sub.headers +++ /dev/null @@ -1 +0,0 @@ -Cache-Control: max-age=1000 diff --git a/tests/wpt/web-platform-tests/fonts/ahem.css b/tests/wpt/web-platform-tests/fonts/ahem.css index b278cc14c54a..02c1554537a6 100644 --- a/tests/wpt/web-platform-tests/fonts/ahem.css +++ b/tests/wpt/web-platform-tests/fonts/ahem.css @@ -1,5 +1,6 @@ @font-face { font-family: 'Ahem'; - src: url('/fonts/Ahem.ttf'); + src: local('Ahem'), + url('/fonts/Ahem.ttf'); } diff --git a/tests/wpt/web-platform-tests/fonts/ahem.css.headers b/tests/wpt/web-platform-tests/fonts/ahem.css.headers new file mode 100644 index 000000000000..e828b629858d --- /dev/null +++ b/tests/wpt/web-platform-tests/fonts/ahem.css.headers @@ -0,0 +1,2 @@ +Content-Type: text/css;charset=utf-8 +Cache-Control: max-age=3600 diff --git a/tests/wpt/web-platform-tests/generic-sensor/resources/generic-sensor-helpers.js b/tests/wpt/web-platform-tests/generic-sensor/resources/generic-sensor-helpers.js index 8302f6f6cfbc..afc2fadec9d8 100644 --- a/tests/wpt/web-platform-tests/generic-sensor/resources/generic-sensor-helpers.js +++ b/tests/wpt/web-platform-tests/generic-sensor/resources/generic-sensor-helpers.js @@ -61,8 +61,11 @@ function sensor_test(func, name, properties) { } function verifySensorReading(pattern, values, timestamp, isNull) { + // If |val| cannot be converted to a float, we return the original value. + // This can happen when a value in |pattern| is not a number. function round(val) { - return Number.parseFloat(val).toPrecision(6); + const res = Number.parseFloat(val).toPrecision(6); + return res === "NaN" ? val : res; } if (isNull) { @@ -92,6 +95,10 @@ function verifyGeoSensorReading(pattern, {latitude, longitude, altitude, accuracy, altitudeAccuracy, heading, speed], timestamp, isNull); } +function verifyProximitySensorReading(pattern, {distance, max, near, timestamp}, isNull) { + return verifySensorReading(pattern, [distance, max, near], timestamp, isNull); +} + // A "sliding window" that iterates over |data| and returns one item at a // time, advancing and wrapping around as needed. |data| must be an array of // arrays. diff --git a/tests/wpt/web-platform-tests/interfaces/css-properties-values-api.idl b/tests/wpt/web-platform-tests/interfaces/css-properties-values-api.idl index d8f54b1e15bc..ee444ebb29d8 100644 --- a/tests/wpt/web-platform-tests/interfaces/css-properties-values-api.idl +++ b/tests/wpt/web-platform-tests/interfaces/css-properties-values-api.idl @@ -14,6 +14,10 @@ partial namespace CSS { void registerProperty(PropertyDefinition definition); }; +partial interface CSSRule { + const unsigned short PROPERTY_RULE = 18; +}; + [Exposed=Window] interface CSSPropertyRule : CSSRule { readonly attribute CSSOMString name; diff --git a/tests/wpt/web-platform-tests/interfaces/encoding.idl b/tests/wpt/web-platform-tests/interfaces/encoding.idl index c89cad4f9a15..d4fffa89334b 100644 --- a/tests/wpt/web-platform-tests/interfaces/encoding.idl +++ b/tests/wpt/web-platform-tests/interfaces/encoding.idl @@ -18,9 +18,10 @@ dictionary TextDecodeOptions { boolean stream = false; }; -[Constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {}), - Exposed=(Window,Worker)] +[Exposed=(Window,Worker)] interface TextDecoder { + constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {}); + USVString decode(optional BufferSource input, optional TextDecodeOptions options = {}); }; TextDecoder includes TextDecoderCommon; @@ -34,9 +35,10 @@ dictionary TextEncoderEncodeIntoResult { unsigned long long written; }; -[Constructor, - Exposed=(Window,Worker)] +[Exposed=(Window,Worker)] interface TextEncoder { + constructor(); + [NewObject] Uint8Array encode(optional USVString input = ""); TextEncoderEncodeIntoResult encodeInto(USVString source, Uint8Array destination); }; @@ -47,16 +49,16 @@ interface mixin GenericTransformStream { readonly attribute WritableStream writable; }; -[Constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options), - Exposed=(Window,Worker)] +[Exposed=(Window,Worker)] interface TextDecoderStream { + constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {}); }; TextDecoderStream includes TextDecoderCommon; TextDecoderStream includes GenericTransformStream; -[Constructor, - Exposed=(Window,Worker)] +[Exposed=(Window,Worker)] interface TextEncoderStream { + constructor(); }; TextEncoderStream includes TextEncoderCommon; TextEncoderStream includes GenericTransformStream; diff --git a/tests/wpt/web-platform-tests/interfaces/mediasession.idl b/tests/wpt/web-platform-tests/interfaces/mediasession.idl index 7a5a45c56c6c..ecfb70a0d804 100644 --- a/tests/wpt/web-platform-tests/interfaces/mediasession.idl +++ b/tests/wpt/web-platform-tests/interfaces/mediasession.idl @@ -77,5 +77,5 @@ dictionary MediaSessionSeekActionDetails : MediaSessionActionDetails { dictionary MediaSessionSeekToActionDetails : MediaSessionActionDetails { required double seekTime; - bool? fastSeek; + boolean? fastSeek; }; diff --git a/tests/wpt/web-platform-tests/interfaces/user-timing.idl b/tests/wpt/web-platform-tests/interfaces/user-timing.idl index 20fb2db9caac..8af17fdc03fd 100644 --- a/tests/wpt/web-platform-tests/interfaces/user-timing.idl +++ b/tests/wpt/web-platform-tests/interfaces/user-timing.idl @@ -22,9 +22,9 @@ partial interface Performance { void clearMeasures(optional DOMString measureName); }; -[Exposed=(Window,Worker), - Constructor(DOMString markName, optional PerformanceMarkOptions markOptions = {})] +[Exposed=(Window,Worker)] interface PerformanceMark : PerformanceEntry { + constructor(DOMString markName, optional PerformanceMarkOptions markOptions = {}); readonly attribute any detail; }; diff --git a/tests/wpt/web-platform-tests/interfaces/webrtc.idl b/tests/wpt/web-platform-tests/interfaces/webrtc.idl index f56ff8038900..b8657386f9ce 100644 --- a/tests/wpt/web-platform-tests/interfaces/webrtc.idl +++ b/tests/wpt/web-platform-tests/interfaces/webrtc.idl @@ -91,19 +91,20 @@ enum RTCIceConnectionState { "connected" }; -[Exposed=Window, Constructor(optional RTCConfiguration configuration)] -interface RTCPeerConnection : EventTarget { - Promise createOffer(optional RTCOfferOptions options); - Promise createAnswer(optional RTCAnswerOptions options); - Promise setLocalDescription(optional RTCSessionDescriptionInit description); +[Exposed=Window] +interface RTCPeerConnection : EventTarget { + constructor(optional RTCConfiguration configuration = {}); + Promise createOffer(optional RTCOfferOptions options = {}); + Promise createAnswer(optional RTCAnswerOptions options = {}); + Promise setLocalDescription(optional RTCSessionDescriptionInit description = {}); readonly attribute RTCSessionDescription? localDescription; readonly attribute RTCSessionDescription? currentLocalDescription; readonly attribute RTCSessionDescription? pendingLocalDescription; - Promise setRemoteDescription(optional RTCSessionDescriptionInit description); + Promise setRemoteDescription(optional RTCSessionDescriptionInit description = {}); readonly attribute RTCSessionDescription? remoteDescription; readonly attribute RTCSessionDescription? currentRemoteDescription; readonly attribute RTCSessionDescription? pendingRemoteDescription; - Promise addIceCandidate(optional RTCIceCandidateInit candidate); + Promise addIceCandidate(optional RTCIceCandidateInit candidate = {}); readonly attribute RTCSignalingState signalingState; readonly attribute RTCIceGatheringState iceGatheringState; readonly attribute RTCIceConnectionState iceConnectionState; @@ -121,18 +122,21 @@ interface RTCPeerConnection : EventTarget { attribute EventHandler oniceconnectionstatechange; attribute EventHandler onicegatheringstatechange; attribute EventHandler onconnectionstatechange; -}; -partial interface RTCPeerConnection { + // Legacy Interface Extensions + // Supporting the methods in this section is optional. + // If these methods are supported + // they must be implemented as defined + // in section "Legacy Interface Extensions" Promise createOffer(RTCSessionDescriptionCallback successCallback, RTCPeerConnectionErrorCallback failureCallback, - optional RTCOfferOptions options); - Promise setLocalDescription(optional RTCSessionDescriptionInit description, + optional RTCOfferOptions options = {}); + Promise setLocalDescription(optional RTCSessionDescriptionInit description = {}, VoidFunction successCallback, RTCPeerConnectionErrorCallback failureCallback); Promise createAnswer(RTCSessionDescriptionCallback successCallback, RTCPeerConnectionErrorCallback failureCallback); - Promise setRemoteDescription(optional RTCSessionDescriptionInit description, + Promise setRemoteDescription(optional RTCSessionDescriptionInit description = {}, VoidFunction successCallback, RTCPeerConnectionErrorCallback failureCallback); Promise addIceCandidate(RTCIceCandidateInit candidate, @@ -156,8 +160,9 @@ enum RTCSdpType { "rollback" }; -[Exposed=Window, Constructor(optional RTCSessionDescriptionInit descriptionInitDict)] +[Exposed=Window] interface RTCSessionDescription { + constructor(optional RTCSessionDescriptionInit descriptionInitDict = {}); readonly attribute RTCSdpType type; readonly attribute DOMString sdp; [Default] object toJSON(); @@ -168,8 +173,9 @@ dictionary RTCSessionDescriptionInit { DOMString sdp = ""; }; -[Exposed=Window, Constructor(optional RTCIceCandidateInit candidateInitDict)] +[Exposed=Window] interface RTCIceCandidate { + constructor(optional RTCIceCandidateInit candidateInitDict = {}); readonly attribute DOMString candidate; readonly attribute DOMString? sdpMid; readonly attribute unsigned short? sdpMLineIndex; @@ -212,9 +218,9 @@ enum RTCIceCandidateType { "relay" }; -[Exposed=Window, - Constructor(DOMString type, optional RTCPeerConnectionIceEventInit eventInitDict)] +[Exposed=Window] interface RTCPeerConnectionIceEvent : Event { + constructor(DOMString type, optional RTCPeerConnectionIceEventInit eventInitDict = {}); readonly attribute RTCIceCandidate? candidate; readonly attribute DOMString? url; }; @@ -224,9 +230,9 @@ dictionary RTCPeerConnectionIceEventInit : EventInit { DOMString? url; }; -[Exposed=Window, - Constructor(DOMString type, RTCPeerConnectionIceErrorEventInit eventInitDict)] +[Exposed=Window] interface RTCPeerConnectionIceErrorEvent : Event { + constructor(DOMString type, RTCPeerConnectionIceErrorEventInit eventInitDict); readonly attribute DOMString hostCandidate; readonly attribute DOMString url; readonly attribute unsigned short errorCode; @@ -248,7 +254,8 @@ enum RTCPriorityType { }; partial interface RTCPeerConnection { - static Promise generateCertificate(AlgorithmIdentifier keygenAlgorithm); + static Promise + generateCertificate(AlgorithmIdentifier keygenAlgorithm); }; dictionary RTCCertificateExpiration { @@ -269,7 +276,7 @@ partial interface RTCPeerConnection { RTCRtpSender addTrack(MediaStreamTrack track, MediaStream... streams); void removeTrack(RTCRtpSender sender); RTCRtpTransceiver addTransceiver((MediaStreamTrack or DOMString) trackOrKind, - optional RTCRtpTransceiverInit init); + optional RTCRtpTransceiverInit init = {}); attribute EventHandler ontrack; }; @@ -488,8 +495,9 @@ enum RTCIceComponent { "rtcp" }; -[Exposed=Window, Constructor(DOMString type, RTCTrackEventInit eventInitDict)] +[Exposed=Window] interface RTCTrackEvent : Event { + constructor(DOMString type, RTCTrackEventInit eventInitDict); readonly attribute RTCRtpReceiver receiver; readonly attribute MediaStreamTrack track; [SameObject] readonly attribute FrozenArray streams; @@ -506,7 +514,7 @@ dictionary RTCTrackEventInit : EventInit { partial interface RTCPeerConnection { readonly attribute RTCSctpTransport? sctp; RTCDataChannel createDataChannel(USVString label, - optional RTCDataChannelInit dataChannelDict); + optional RTCDataChannelInit dataChannelDict = {}); attribute EventHandler ondatachannel; }; @@ -569,8 +577,9 @@ enum RTCDataChannelState { "closed" }; -[Exposed=Window, Constructor(DOMString type, RTCDataChannelEventInit eventInitDict)] +[Exposed=Window] interface RTCDataChannelEvent : Event { + constructor(DOMString type, RTCDataChannelEventInit eventInitDict); readonly attribute RTCDataChannel channel; }; @@ -590,9 +599,9 @@ interface RTCDTMFSender : EventTarget { readonly attribute DOMString toneBuffer; }; -[Exposed=Window, - Constructor(DOMString type, RTCDTMFToneChangeEventInit eventInitDict)] +[Exposed=Window] interface RTCDTMFToneChangeEvent : Event { + constructor(DOMString type, RTCDTMFToneChangeEventInit eventInitDict); readonly attribute DOMString tone; }; @@ -616,9 +625,9 @@ dictionary RTCStats { required DOMString id; }; -[Exposed=Window, - Constructor(DOMString type, RTCStatsEventInit eventInitDict)] +[Exposed=Window] interface RTCStatsEvent : Event { + constructor(DOMString type, RTCStatsEventInit eventInitDict); readonly attribute RTCStatsReport report; }; @@ -626,8 +635,9 @@ dictionary RTCStatsEventInit : EventInit { required RTCStatsReport report; }; -[Exposed=Window, Constructor(RTCErrorInit init, optional DOMString message = "")] +[Exposed=Window] interface RTCError : DOMException { + constructor(RTCErrorInit init, optional DOMString message = ""); readonly attribute RTCErrorDetailType errorDetail; readonly attribute long? sdpLineNumber; readonly attribute long? httpRequestStatusCode; @@ -663,9 +673,9 @@ enum RTCErrorDetailType { "hardware-encoder-error" }; -[Exposed=Window, - Constructor(DOMString type, RTCErrorEventInit eventInitDict)] +[Exposed=Window] interface RTCErrorEvent : Event { + constructor(DOMString type, RTCErrorEventInit eventInitDict); [SameObject] readonly attribute RTCError error; }; diff --git a/tests/wpt/web-platform-tests/layout-instability/observe-layout-shift.html b/tests/wpt/web-platform-tests/layout-instability/observe-layout-shift.html index 8e5624e09a3d..1c35fe2aa234 100644 --- a/tests/wpt/web-platform-tests/layout-instability/observe-layout-shift.html +++ b/tests/wpt/web-platform-tests/layout-instability/observe-layout-shift.html @@ -4,6 +4,11 @@
diff --git a/tests/wpt/web-platform-tests/mathml/presentation-markup/scripts/underover-legacy-align-attribute-001-ref.html b/tests/wpt/web-platform-tests/mathml/presentation-markup/scripts/underover-legacy-align-attribute-001-ref.html new file mode 100644 index 000000000000..a9545c60f400 --- /dev/null +++ b/tests/wpt/web-platform-tests/mathml/presentation-markup/scripts/underover-legacy-align-attribute-001-ref.html @@ -0,0 +1,61 @@ + + + + + munder/mover/munderover align (reference) + + +

Test passes if the center of the following rectangles is aligned + on the same vertical axis.

+

+ + + + + + +

+

+ + + + + + +

+

+ + + + + + +

+

+ + + + + + +

+

+ + + + + + + +

+

+ + + + + + + +

+ + diff --git a/tests/wpt/web-platform-tests/mathml/presentation-markup/scripts/underover-legacy-align-attribute-001.html b/tests/wpt/web-platform-tests/mathml/presentation-markup/scripts/underover-legacy-align-attribute-001.html new file mode 100644 index 000000000000..31920c61f4eb --- /dev/null +++ b/tests/wpt/web-platform-tests/mathml/presentation-markup/scripts/underover-legacy-align-attribute-001.html @@ -0,0 +1,72 @@ + + + + + munder/mover/munderover align + + + + + + + + +

Test passes if the center of the following rectangles is aligned + on the same vertical axis.

+

+ + + + + + +

+

+ + + + + + +

+

+ + + + + + +

+

+ + + + + + +

+

+ + + + + + + +

+

+ + + + + + + +

+ + + + diff --git a/tests/wpt/web-platform-tests/proximity/ProximitySensor-iframe-access.https.html b/tests/wpt/web-platform-tests/proximity/ProximitySensor-iframe-access.https.html index 016ae48eb982..0ceba805be3a 100644 --- a/tests/wpt/web-platform-tests/proximity/ProximitySensor-iframe-access.https.html +++ b/tests/wpt/web-platform-tests/proximity/ProximitySensor-iframe-access.https.html @@ -5,7 +5,7 @@ - +
diff --git a/tests/wpt/web-platform-tests/proximity/ProximitySensor.https.html b/tests/wpt/web-platform-tests/proximity/ProximitySensor.https.html index 03db98e7d0dc..648071382552 100644 --- a/tests/wpt/web-platform-tests/proximity/ProximitySensor.https.html +++ b/tests/wpt/web-platform-tests/proximity/ProximitySensor.https.html @@ -5,10 +5,28 @@ + -
+ diff --git a/tests/wpt/web-platform-tests/proximity/ProximitySensor_onerror-manual.https.html b/tests/wpt/web-platform-tests/proximity/ProximitySensor_onerror-manual.https.html deleted file mode 100644 index 7e506f0482e1..000000000000 --- a/tests/wpt/web-platform-tests/proximity/ProximitySensor_onerror-manual.https.html +++ /dev/null @@ -1,20 +0,0 @@ - - -ProximitySensor Test: onerror - - - - - -
-

Precondition

-
    -
  1. - Disable the Proximity Sensor or run test on a device without Proximity Sensor. -
  2. -
- diff --git a/tests/wpt/web-platform-tests/resources/chromium/generic_sensor_mocks.js b/tests/wpt/web-platform-tests/resources/chromium/generic_sensor_mocks.js index d4ba89e19911..a7272a65fa3e 100644 --- a/tests/wpt/web-platform-tests/resources/chromium/generic_sensor_mocks.js +++ b/tests/wpt/web-platform-tests/resources/chromium/generic_sensor_mocks.js @@ -150,12 +150,13 @@ var GenericSensorTest = (() => { ['RelativeOrientationSensor', device.mojom.SensorType.RELATIVE_ORIENTATION_QUATERNION], ['RelativeOrientationEulerAngles', - device.mojom.SensorType.RELATIVE_ORIENTATION_EULER_ANGLES] + device.mojom.SensorType.RELATIVE_ORIENTATION_EULER_ANGLES], + ['ProximitySensor', device.mojom.SensorType.PROXIMITY] ]); this.binding_ = new mojo.Binding(device.mojom.SensorProvider, this); this.interceptor_ = new MojoInterfaceInterceptor( - device.mojom.SensorProvider.name); + device.mojom.SensorProvider.name, "context", true); this.interceptor_.oninterfacerequest = e => { this.bindToPipe(e.handle); }; diff --git a/tests/wpt/web-platform-tests/resources/chromium/nfc-mock.js b/tests/wpt/web-platform-tests/resources/chromium/nfc-mock.js index 1cc6c32caa12..30645fb00dd9 100644 --- a/tests/wpt/web-platform-tests/resources/chromium/nfc-mock.js +++ b/tests/wpt/web-platform-tests/resources/chromium/nfc-mock.js @@ -161,7 +161,7 @@ var WebNFCTest = (() => { this.bindingSet_ = new mojo.BindingSet(device.mojom.NFC); this.interceptor_ = new MojoInterfaceInterceptor( - device.mojom.NFC.name); + device.mojom.NFC.name, "context", true); this.interceptor_.oninterfacerequest = e => this.bindingSet_.addBinding(this, e.handle); this.interceptor_.start(); diff --git a/tests/wpt/web-platform-tests/resources/chromium/sms_mock.js b/tests/wpt/web-platform-tests/resources/chromium/sms_mock.js index a8cd81a5ceff..bdfbc2052fa1 100644 --- a/tests/wpt/web-platform-tests/resources/chromium/sms_mock.js +++ b/tests/wpt/web-platform-tests/resources/chromium/sms_mock.js @@ -8,7 +8,7 @@ const SmsProvider = (() => { this.mojoReceiver_ = new blink.mojom.SmsReceiverReceiver(this); this.interceptor_ = new MojoInterfaceInterceptor( - blink.mojom.SmsReceiver.$interfaceName) + blink.mojom.SmsReceiver.$interfaceName, "context", true) this.interceptor_.oninterfacerequest = (e) => { this.mojoReceiver_.$.bindHandle(e.handle); diff --git a/tests/wpt/web-platform-tests/web-animations/animation-model/animation-types/property-types.js b/tests/wpt/web-platform-tests/web-animations/animation-model/animation-types/property-types.js index 9f549c9a199e..75f7d61161a8 100644 --- a/tests/wpt/web-platform-tests/web-animations/animation-model/animation-types/property-types.js +++ b/tests/wpt/web-platform-tests/web-animations/animation-model/animation-types/property-types.js @@ -617,7 +617,7 @@ const visibilityType = { composite }); testAnimationSamples(animation, idlName, [{ time: 0, expected: 'visible' }, - { time: 1000, expected: 'visible' }]); + { time: 1000, expected: 'hidden' }]); }, `${property}: onto "visible"`); test(t => { diff --git a/tests/wpt/web-platform-tests/webxr/xrDevice_isSessionSupported_immersive.https.html b/tests/wpt/web-platform-tests/webxr/xrDevice_isSessionSupported_immersive.https.html new file mode 100644 index 000000000000..2f1129fe16e5 --- /dev/null +++ b/tests/wpt/web-platform-tests/webxr/xrDevice_isSessionSupported_immersive.https.html @@ -0,0 +1,21 @@ + + + + + + + + diff --git a/tests/wpt/web-platform-tests/webxr/xrDevice_isSessionSupported_immersive_unsupported.https.html b/tests/wpt/web-platform-tests/webxr/xrDevice_isSessionSupported_immersive_unsupported.https.html new file mode 100644 index 000000000000..41ae338787e4 --- /dev/null +++ b/tests/wpt/web-platform-tests/webxr/xrDevice_isSessionSupported_immersive_unsupported.https.html @@ -0,0 +1,21 @@ + + + + + + + + diff --git a/tests/wpt/web-platform-tests/webxr/xrDevice_isSessionSupported_inline.https.html b/tests/wpt/web-platform-tests/webxr/xrDevice_isSessionSupported_inline.https.html new file mode 100644 index 000000000000..bf8d14a8f51e --- /dev/null +++ b/tests/wpt/web-platform-tests/webxr/xrDevice_isSessionSupported_inline.https.html @@ -0,0 +1,22 @@ + + + + + + + +