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 a9e46713244..dd4ffcf4345 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 047d377cf4c..69c098d5597 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 00000000000..ebced90f50a --- /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 00000000000..467f4357f10 --- /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 00000000000..c591acc3fcd --- /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 00000000000..921498d738e --- /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 00000000000..3f253c3a0d1 --- /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 cb762eff806..659e3760fba 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 00000000000..6f34caa8f2a --- /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 360e6686bfb..00000000000 --- 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 b278cc14c54..02c1554537a 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 00000000000..e828b629858 --- /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 8302f6f6cfb..afc2fadec9d 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 d8f54b1e15b..ee444ebb29d 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 c89cad4f9a1..d4fffa89334 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 7a5a45c56c6..ecfb70a0d80 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 20fb2db9caa..8af17fdc03f 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 f56ff803890..b8657386f9c 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 8e5624e09a3..1c35fe2aa23 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 00000000000..a9545c60f40 --- /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 00000000000..31920c61f4e --- /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 016ae48eb98..0ceba805be3 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 03db98e7d0d..64807138255 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 7e506f0482e..00000000000 --- 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 d4ba89e1991..a7272a65fa3 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 1cc6c32caa1..30645fb00dd 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 a8cd81a5cef..bdfbc2052fa 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 9f549c9a199..75f7d61161a 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 00000000000..2f1129fe16e --- /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 00000000000..41ae338787e --- /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 00000000000..bf8d14a8f51 --- /dev/null +++ b/tests/wpt/web-platform-tests/webxr/xrDevice_isSessionSupported_inline.https.html @@ -0,0 +1,22 @@ + + + + + + + +