Changeset 249731 in webkit
- Timestamp:
- Sep 10, 2019 1:14:46 PM (5 years ago)
- Location:
- trunk/LayoutTests/imported/w3c
- Files:
-
- 93 added
- 57 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r249725 r249731 1 2019-09-10 Chris Dumez <cdumez@apple.com> 2 3 Re-sync web-platform-tests IDL interfaces from upstream 4 https://bugs.webkit.org/show_bug.cgi?id=201630 5 6 Reviewed by Alex Christensen. 7 8 Re-sync web-platform-tests IDL interfaces from upstream 603a271948a7162. 9 10 * web-platform-tests/interfaces/BackgroundSync.idl: Added. 11 * web-platform-tests/interfaces/CSP.idl: Added. 12 * web-platform-tests/interfaces/CSS-Parser-API.idl: Added. 13 * web-platform-tests/interfaces/DOM-Parsing.idl: 14 * web-platform-tests/interfaces/FileAPI.idl: 15 * web-platform-tests/interfaces/IndexedDB.idl: 16 * web-platform-tests/interfaces/InputDeviceCapabilities.idl: Added. 17 * web-platform-tests/interfaces/META.yml: Added. 18 * web-platform-tests/interfaces/README.md: Added. 19 * web-platform-tests/interfaces/SRI.idl: Added. 20 * web-platform-tests/interfaces/WebCryptoAPI.idl: 21 * web-platform-tests/interfaces/accelerometer.idl: 22 * web-platform-tests/interfaces/ambient-light.idl: 23 * web-platform-tests/interfaces/animation-worklet.idl: Added. 24 * web-platform-tests/interfaces/appmanifest.idl: Added. 25 * web-platform-tests/interfaces/audio-output.idl: Added. 26 * web-platform-tests/interfaces/background-fetch.idl: 27 * web-platform-tests/interfaces/battery-status.idl: Added. 28 * web-platform-tests/interfaces/beacon.idl: Added. 29 * web-platform-tests/interfaces/clipboard-apis.idl: 30 * web-platform-tests/interfaces/compat.idl: Added. 31 * web-platform-tests/interfaces/console.idl: 32 * web-platform-tests/interfaces/cookie-store.idl: 33 * web-platform-tests/interfaces/cors-rfc1918.idl: Added. 34 * web-platform-tests/interfaces/csp-embedded-enforcement.idl: Added. 35 * web-platform-tests/interfaces/css-animations.idl: Added. 36 * web-platform-tests/interfaces/css-conditional.idl: Added. 37 * web-platform-tests/interfaces/css-counter-styles.idl: Added. 38 * web-platform-tests/interfaces/css-device-adapt.idl: Added. 39 * web-platform-tests/interfaces/css-font-loading.idl: Added. 40 * web-platform-tests/interfaces/css-fonts.idl: Added. 41 * web-platform-tests/interfaces/css-images.idl: Added. 42 * web-platform-tests/interfaces/css-layout-api.idl: Added. 43 * web-platform-tests/interfaces/css-masking.idl: Added. 44 * web-platform-tests/interfaces/css-paint-api.idl: Added. 45 * web-platform-tests/interfaces/css-regions.idl: Added. 46 * web-platform-tests/interfaces/css-transitions.idl: Added. 47 * web-platform-tests/interfaces/css-typed-om.idl: 48 * web-platform-tests/interfaces/element-timing.idl: Added. 49 * web-platform-tests/interfaces/encoding.idl: 50 * web-platform-tests/interfaces/encrypted-media.idl: 51 * web-platform-tests/interfaces/entries-api.idl: 52 * web-platform-tests/interfaces/event-timing.idl: Added. 53 * web-platform-tests/interfaces/feature-policy.idl: Added. 54 * web-platform-tests/interfaces/fetch.idl: 55 * web-platform-tests/interfaces/filter-effects.idl: Added. 56 * web-platform-tests/interfaces/font-metrics-api.idl: Added. 57 * web-platform-tests/interfaces/fullscreen.idl: 58 * web-platform-tests/interfaces/gamepad.idl: 59 * web-platform-tests/interfaces/generic-sensor.idl: Added. 60 * web-platform-tests/interfaces/geolocation-API.idl: Added. 61 * web-platform-tests/interfaces/geolocation-sensor.idl: 62 * web-platform-tests/interfaces/geometry.idl: 63 * web-platform-tests/interfaces/gyroscope.idl: 64 * web-platform-tests/interfaces/hr-time.idl: 65 * web-platform-tests/interfaces/html-media-capture.idl: Added. 66 * web-platform-tests/interfaces/image-capture.idl: Added. 67 * web-platform-tests/interfaces/input-events.idl: Added. 68 * web-platform-tests/interfaces/intersection-observer.idl: 69 * web-platform-tests/interfaces/keyboard-lock.idl: Added. 70 * web-platform-tests/interfaces/keyboard-map.idl: Added. 71 * web-platform-tests/interfaces/largest-contentful-paint.idl: Added. 72 * web-platform-tests/interfaces/layout-instability.idl: Added. 73 * web-platform-tests/interfaces/longtasks.idl: Added. 74 * web-platform-tests/interfaces/magnetometer.idl: 75 * web-platform-tests/interfaces/media-capabilities.idl: Added. 76 * web-platform-tests/interfaces/media-playback-quality.idl: Added. 77 * web-platform-tests/interfaces/media-source.idl: Added. 78 * web-platform-tests/interfaces/mediacapture-depth.idl: Added. 79 * web-platform-tests/interfaces/mediacapture-fromelement.idl: Added. 80 * web-platform-tests/interfaces/mediasession.idl: Added. 81 * web-platform-tests/interfaces/mediastream-recording.idl: Added. 82 * web-platform-tests/interfaces/mst-content-hint.idl: Added. 83 * web-platform-tests/interfaces/navigation-timing.idl: Added. 84 * web-platform-tests/interfaces/netinfo.idl: Added. 85 * web-platform-tests/interfaces/notifications.idl: Added. 86 * web-platform-tests/interfaces/orientation-event.idl: Added. 87 * web-platform-tests/interfaces/orientation-sensor.idl: 88 * web-platform-tests/interfaces/page-visibility.idl: Added. 89 * web-platform-tests/interfaces/paint-timing.idl: Added. 90 * web-platform-tests/interfaces/payment-handler.idl: 91 * web-platform-tests/interfaces/payment-method-basic-card.idl: Added. 92 * web-platform-tests/interfaces/payment-request.idl: 93 * web-platform-tests/interfaces/permissions.idl: Added. 94 * web-platform-tests/interfaces/picture-in-picture.idl: Added. 95 * web-platform-tests/interfaces/pointerevents-extension.idl: Added. 96 * web-platform-tests/interfaces/pointerevents.idl: Added. 97 * web-platform-tests/interfaces/pointerlock.idl: Added. 98 * web-platform-tests/interfaces/presentation-api.idl: Added. 99 * web-platform-tests/interfaces/proximity.idl: 100 * web-platform-tests/interfaces/push-api.idl: Added. 101 * web-platform-tests/interfaces/remote-playback.idl: Added. 102 * web-platform-tests/interfaces/reporting.idl: Added. 103 * web-platform-tests/interfaces/requestidlecallback.idl: Added. 104 * web-platform-tests/interfaces/resize-observer.idl: Added. 105 * web-platform-tests/interfaces/screen-capture.idl: Added. 106 * web-platform-tests/interfaces/screen-orientation.idl: 107 * web-platform-tests/interfaces/scroll-animations.idl: Added. 108 * web-platform-tests/interfaces/secure-contexts.idl: Added. 109 * web-platform-tests/interfaces/selection-api.idl: 110 * web-platform-tests/interfaces/server-timing.idl: Added. 111 * web-platform-tests/interfaces/shape-detection-api.idl: Added. 112 * web-platform-tests/interfaces/speech-api.idl: Added. 113 * web-platform-tests/interfaces/storage.idl: 114 * web-platform-tests/interfaces/touch-events.idl: Added. 115 * web-platform-tests/interfaces/trusted-types.tentative.idl: Added. 116 * web-platform-tests/interfaces/uievents.idl: 117 * web-platform-tests/interfaces/url.idl: 118 * web-platform-tests/interfaces/user-timing.idl: Added. 119 * web-platform-tests/interfaces/vibration.idl: Added. 120 * web-platform-tests/interfaces/wai-aria.idl: Added. 121 * web-platform-tests/interfaces/wake-lock.idl: 122 * web-platform-tests/interfaces/wasm-js-api.idl: Added. 123 * web-platform-tests/interfaces/wasm-web-api.idl: Added. 124 * web-platform-tests/interfaces/web-animations.idl: Added. 125 * web-platform-tests/interfaces/web-bluetooth.idl: Added. 126 * web-platform-tests/interfaces/web-nfc.idl: 127 * web-platform-tests/interfaces/web-share.idl: 128 * web-platform-tests/interfaces/webaudio.idl: Added. 129 * web-platform-tests/interfaces/webauthn.idl: 130 * web-platform-tests/interfaces/webdriver.idl: Added. 131 * web-platform-tests/interfaces/webgl1.idl: Added. 132 * web-platform-tests/interfaces/webgl2.idl: Added. 133 * web-platform-tests/interfaces/webidl.idl: 134 * web-platform-tests/interfaces/webmidi.idl: Added. 135 * web-platform-tests/interfaces/webrtc-dscp.idl: Added. 136 * web-platform-tests/interfaces/webrtc-stats.idl: Added. 137 * web-platform-tests/interfaces/webusb.idl: 138 * web-platform-tests/interfaces/webvtt.idl: Added. 139 * web-platform-tests/interfaces/webxr.idl: 140 * web-platform-tests/interfaces/worklets.idl: Added. 141 * web-platform-tests/interfaces/xhr.idl: 142 * web-platform-tests/interfaces/xslt.tentative.idl: Added. 143 1 144 2019-09-10 Chris Dumez <cdumez@apple.com> 2 145 -
trunk/LayoutTests/imported/w3c/web-platform-tests/FileAPI/idlharness-expected.txt
r235889 r249731 14 14 PASS Blob interface: attribute type 15 15 PASS Blob interface: operation slice(long long, long long, DOMString) 16 FAIL Blob interface: operation stream() assert_own_property: interface prototype object missing non-static operation expected property "stream" missing 17 FAIL Blob interface: operation text() assert_own_property: interface prototype object missing non-static operation expected property "text" missing 18 FAIL Blob interface: operation arrayBuffer() assert_own_property: interface prototype object missing non-static operation expected property "arrayBuffer" missing 16 19 PASS Blob must be primary interface of new Blob(["TEST"]) 17 20 PASS Stringification of new Blob(["TEST"]) … … 20 23 PASS Blob interface: new Blob(["TEST"]) must inherit property "slice(long long, long long, DOMString)" with the proper type 21 24 PASS Blob interface: calling slice(long long, long long, DOMString) on new Blob(["TEST"]) with too few arguments must throw TypeError 25 FAIL Blob interface: new Blob(["TEST"]) must inherit property "stream()" with the proper type assert_inherits: property "stream" not found in prototype chain 26 FAIL Blob interface: new Blob(["TEST"]) must inherit property "text()" with the proper type assert_inherits: property "text" not found in prototype chain 27 FAIL Blob interface: new Blob(["TEST"]) must inherit property "arrayBuffer()" with the proper type assert_inherits: property "arrayBuffer" not found in prototype chain 22 28 PASS File interface: existence and properties of interface object 23 29 PASS File interface object length … … 36 42 PASS Blob interface: new File(["myFileBits"], "myFileName") must inherit property "slice(long long, long long, DOMString)" with the proper type 37 43 PASS Blob interface: calling slice(long long, long long, DOMString) on new File(["myFileBits"], "myFileName") with too few arguments must throw TypeError 44 FAIL Blob interface: new File(["myFileBits"], "myFileName") must inherit property "stream()" with the proper type assert_inherits: property "stream" not found in prototype chain 45 FAIL Blob interface: new File(["myFileBits"], "myFileName") must inherit property "text()" with the proper type assert_inherits: property "text" not found in prototype chain 46 FAIL Blob interface: new File(["myFileBits"], "myFileName") must inherit property "arrayBuffer()" with the proper type assert_inherits: property "arrayBuffer" not found in prototype chain 38 47 PASS FileList interface: existence and properties of interface object 39 48 PASS FileList interface object length … … 99 108 PASS FileReader interface: new FileReader() must inherit property "onloadend" with the proper type 100 109 PASS FileReaderSync interface: existence and properties of interface object 101 PASS URL interface: operation createObjectURL( Blob)110 PASS URL interface: operation createObjectURL([object Object],[object Object]) 102 111 PASS URL interface: operation revokeObjectURL(DOMString) 103 112 -
trunk/LayoutTests/imported/w3c/web-platform-tests/FileAPI/idlharness.worker-expected.txt
r235889 r249731 12 12 PASS Blob interface: attribute type 13 13 PASS Blob interface: operation slice(long long, long long, DOMString) 14 FAIL Blob interface: operation stream() assert_own_property: interface prototype object missing non-static operation expected property "stream" missing 15 FAIL Blob interface: operation text() assert_own_property: interface prototype object missing non-static operation expected property "text" missing 16 FAIL Blob interface: operation arrayBuffer() assert_own_property: interface prototype object missing non-static operation expected property "arrayBuffer" missing 14 17 PASS Blob must be primary interface of new Blob(["TEST"]) 15 18 PASS Stringification of new Blob(["TEST"]) … … 18 21 PASS Blob interface: new Blob(["TEST"]) must inherit property "slice(long long, long long, DOMString)" with the proper type 19 22 PASS Blob interface: calling slice(long long, long long, DOMString) on new Blob(["TEST"]) with too few arguments must throw TypeError 23 FAIL Blob interface: new Blob(["TEST"]) must inherit property "stream()" with the proper type assert_inherits: property "stream" not found in prototype chain 24 FAIL Blob interface: new Blob(["TEST"]) must inherit property "text()" with the proper type assert_inherits: property "text" not found in prototype chain 25 FAIL Blob interface: new Blob(["TEST"]) must inherit property "arrayBuffer()" with the proper type assert_inherits: property "arrayBuffer" not found in prototype chain 20 26 FAIL File interface: existence and properties of interface object assert_own_property: self does not have own property "File" expected property "File" missing 21 27 FAIL File interface object length assert_own_property: self does not have own property "File" expected property "File" missing … … 34 40 FAIL Blob interface: new File(["myFileBits"], "myFileName") must inherit property "slice(long long, long long, DOMString)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: File" 35 41 FAIL Blob interface: calling slice(long long, long long, DOMString) on new File(["myFileBits"], "myFileName") with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: File" 42 FAIL Blob interface: new File(["myFileBits"], "myFileName") must inherit property "stream()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: File" 43 FAIL Blob interface: new File(["myFileBits"], "myFileName") must inherit property "text()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: File" 44 FAIL Blob interface: new File(["myFileBits"], "myFileName") must inherit property "arrayBuffer()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: File" 36 45 FAIL FileList interface: existence and properties of interface object assert_own_property: self does not have own property "FileList" expected property "FileList" missing 37 46 FAIL FileList interface object length assert_own_property: self does not have own property "FileList" expected property "FileList" missing … … 111 120 PASS FileReaderSync interface: new FileReaderSync() must inherit property "readAsDataURL(Blob)" with the proper type 112 121 PASS FileReaderSync interface: calling readAsDataURL(Blob) on new FileReaderSync() with too few arguments must throw TypeError 113 PASS URL interface: operation createObjectURL( Blob)122 PASS URL interface: operation createObjectURL([object Object],[object Object]) 114 123 PASS URL interface: operation revokeObjectURL(DOMString) 115 124 -
trunk/LayoutTests/imported/w3c/web-platform-tests/IndexedDB/interfaces.any-expected.txt
r249672 r249731 1 1 2 2 PASS Test driver 3 PASS Partial interface WindowOrWorkerGlobalScope: original interfacedefined3 PASS Partial interface mixin WindowOrWorkerGlobalScope: original interface mixin defined 4 4 PASS IDBRequest interface: existence and properties of interface object 5 5 PASS IDBRequest interface object length … … 43 43 PASS IDBFactory interface: operation open(DOMString, unsigned long long) 44 44 PASS IDBFactory interface: operation deleteDatabase(DOMString) 45 FAIL IDBFactory interface: operation databases() assert_own_property: interface prototype object missing non-static operation expected property "databases" missing 45 46 PASS IDBFactory interface: operation cmp(any, any) 46 47 PASS IDBFactory must be primary interface of [object IDBFactory] … … 50 51 PASS IDBFactory interface: [object IDBFactory] must inherit property "deleteDatabase(DOMString)" with the proper type 51 52 PASS IDBFactory interface: calling deleteDatabase(DOMString) on [object IDBFactory] with too few arguments must throw TypeError 53 FAIL IDBFactory interface: [object IDBFactory] must inherit property "databases()" with the proper type assert_inherits: property "databases" not found in prototype chain 52 54 PASS IDBFactory interface: [object IDBFactory] must inherit property "cmp(any, any)" with the proper type 53 55 PASS IDBFactory interface: calling cmp(any, any) on [object IDBFactory] with too few arguments must throw TypeError … … 153 155 PASS IDBCursor interface: attribute key 154 156 PASS IDBCursor interface: attribute primaryKey 157 FAIL IDBCursor interface: attribute request assert_true: The prototype object must have a property "request" expected true got false 155 158 PASS IDBCursor interface: operation advance(unsigned long) 156 159 PASS IDBCursor interface: operation continue(any) … … 176 179 PASS IDBTransaction interface: attribute error 177 180 PASS IDBTransaction interface: operation objectStore(DOMString) 181 FAIL IDBTransaction interface: operation commit() assert_own_property: interface prototype object missing non-static operation expected property "commit" missing 178 182 PASS IDBTransaction interface: operation abort() 179 183 PASS IDBTransaction interface: attribute onabort -
trunk/LayoutTests/imported/w3c/web-platform-tests/IndexedDB/interfaces.any.worker-expected.txt
r249672 r249731 1 1 2 2 PASS Test driver 3 PASS Partial interface WindowOrWorkerGlobalScope: original interfacedefined3 PASS Partial interface mixin WindowOrWorkerGlobalScope: original interface mixin defined 4 4 PASS EventListener interface: existence and properties of interface object 5 5 PASS NodeList interface: existence and properties of interface object … … 74 74 PASS IDBFactory interface: operation open(DOMString, unsigned long long) 75 75 PASS IDBFactory interface: operation deleteDatabase(DOMString) 76 FAIL IDBFactory interface: operation databases() assert_own_property: interface prototype object missing non-static operation expected property "databases" missing 76 77 PASS IDBFactory interface: operation cmp(any, any) 77 78 PASS IDBFactory must be primary interface of [object IDBFactory] … … 81 82 PASS IDBFactory interface: [object IDBFactory] must inherit property "deleteDatabase(DOMString)" with the proper type 82 83 PASS IDBFactory interface: calling deleteDatabase(DOMString) on [object IDBFactory] with too few arguments must throw TypeError 84 FAIL IDBFactory interface: [object IDBFactory] must inherit property "databases()" with the proper type assert_inherits: property "databases" not found in prototype chain 83 85 PASS IDBFactory interface: [object IDBFactory] must inherit property "cmp(any, any)" with the proper type 84 86 PASS IDBFactory interface: calling cmp(any, any) on [object IDBFactory] with too few arguments must throw TypeError … … 184 186 PASS IDBCursor interface: attribute key 185 187 PASS IDBCursor interface: attribute primaryKey 188 FAIL IDBCursor interface: attribute request assert_true: The prototype object must have a property "request" expected true got false 186 189 PASS IDBCursor interface: operation advance(unsigned long) 187 190 PASS IDBCursor interface: operation continue(any) … … 207 210 PASS IDBTransaction interface: attribute error 208 211 PASS IDBTransaction interface: operation objectStore(DOMString) 212 FAIL IDBTransaction interface: operation commit() assert_own_property: interface prototype object missing non-static operation expected property "commit" missing 209 213 PASS IDBTransaction interface: operation abort() 210 214 PASS IDBTransaction interface: attribute onabort -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/idlharness.https-expected.txt
r235889 r249731 4 4 5 5 6 FAIL Partial interface mixin WindowOrWorkerGlobalScope: original interface mixin defined assert_true: Original interface mixin should be defined expected true got false 6 7 PASS Crypto interface: existence and properties of interface object 7 8 PASS Crypto interface object length -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/idlharness.https.worker-expected.txt
r235889 r249731 1 1 2 FAIL Partial interface mixin WindowOrWorkerGlobalScope: original interface mixin defined assert_true: Original interface mixin should be defined expected true got false 2 3 PASS Window interface: existence and properties of interface object 3 4 FAIL ArrayBuffer interface: existence and properties of interface object assert_false: expected false got true -
trunk/LayoutTests/imported/w3c/web-platform-tests/content-security-policy/securitypolicyviolation/idlharness.window-expected.txt
r249672 r249731 1 1 2 FAIL idl_test setup promise_test: Unhandled rejection with value: object "Error fetching /interfaces/CSP.idl." 2 PASS idl_test setup 3 FAIL CSPViolationReportBody interface: existence and properties of interface object assert_own_property: self does not have own property "CSPViolationReportBody" expected property "CSPViolationReportBody" missing 4 FAIL CSPViolationReportBody interface object length assert_own_property: self does not have own property "CSPViolationReportBody" expected property "CSPViolationReportBody" missing 5 FAIL CSPViolationReportBody interface object name assert_own_property: self does not have own property "CSPViolationReportBody" expected property "CSPViolationReportBody" missing 6 FAIL CSPViolationReportBody interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSPViolationReportBody" expected property "CSPViolationReportBody" missing 7 FAIL CSPViolationReportBody interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSPViolationReportBody" expected property "CSPViolationReportBody" missing 8 FAIL CSPViolationReportBody interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSPViolationReportBody" expected property "CSPViolationReportBody" missing 9 FAIL CSPViolationReportBody interface: attribute documentURL assert_own_property: self does not have own property "CSPViolationReportBody" expected property "CSPViolationReportBody" missing 10 FAIL CSPViolationReportBody interface: attribute referrer assert_own_property: self does not have own property "CSPViolationReportBody" expected property "CSPViolationReportBody" missing 11 FAIL CSPViolationReportBody interface: attribute blockedURL assert_own_property: self does not have own property "CSPViolationReportBody" expected property "CSPViolationReportBody" missing 12 FAIL CSPViolationReportBody interface: attribute effectiveDirective assert_own_property: self does not have own property "CSPViolationReportBody" expected property "CSPViolationReportBody" missing 13 FAIL CSPViolationReportBody interface: attribute originalPolicy assert_own_property: self does not have own property "CSPViolationReportBody" expected property "CSPViolationReportBody" missing 14 FAIL CSPViolationReportBody interface: attribute sourceFile assert_own_property: self does not have own property "CSPViolationReportBody" expected property "CSPViolationReportBody" missing 15 FAIL CSPViolationReportBody interface: attribute sample assert_own_property: self does not have own property "CSPViolationReportBody" expected property "CSPViolationReportBody" missing 16 FAIL CSPViolationReportBody interface: attribute disposition assert_own_property: self does not have own property "CSPViolationReportBody" expected property "CSPViolationReportBody" missing 17 FAIL CSPViolationReportBody interface: attribute statusCode assert_own_property: self does not have own property "CSPViolationReportBody" expected property "CSPViolationReportBody" missing 18 FAIL CSPViolationReportBody interface: attribute lineNumber assert_own_property: self does not have own property "CSPViolationReportBody" expected property "CSPViolationReportBody" missing 19 FAIL CSPViolationReportBody interface: attribute columnNumber assert_own_property: self does not have own property "CSPViolationReportBody" expected property "CSPViolationReportBody" missing 20 PASS SecurityPolicyViolationEvent interface: existence and properties of interface object 21 PASS SecurityPolicyViolationEvent interface object length 22 PASS SecurityPolicyViolationEvent interface object name 23 PASS SecurityPolicyViolationEvent interface: existence and properties of interface prototype object 24 PASS SecurityPolicyViolationEvent interface: existence and properties of interface prototype object's "constructor" property 25 PASS SecurityPolicyViolationEvent interface: existence and properties of interface prototype object's @@unscopables property 26 FAIL SecurityPolicyViolationEvent interface: attribute documentURL assert_true: The prototype object must have a property "documentURL" expected true got false 27 PASS SecurityPolicyViolationEvent interface: attribute documentURI 28 PASS SecurityPolicyViolationEvent interface: attribute referrer 29 FAIL SecurityPolicyViolationEvent interface: attribute blockedURL assert_true: The prototype object must have a property "blockedURL" expected true got false 30 PASS SecurityPolicyViolationEvent interface: attribute blockedURI 31 PASS SecurityPolicyViolationEvent interface: attribute effectiveDirective 32 PASS SecurityPolicyViolationEvent interface: attribute violatedDirective 33 PASS SecurityPolicyViolationEvent interface: attribute originalPolicy 34 PASS SecurityPolicyViolationEvent interface: attribute sourceFile 35 FAIL SecurityPolicyViolationEvent interface: attribute sample assert_true: The prototype object must have a property "sample" expected true got false 36 FAIL SecurityPolicyViolationEvent interface: attribute disposition assert_true: The prototype object must have a property "disposition" expected true got false 37 PASS SecurityPolicyViolationEvent interface: attribute statusCode 38 FAIL SecurityPolicyViolationEvent interface: attribute lineno assert_true: The prototype object must have a property "lineno" expected true got false 39 PASS SecurityPolicyViolationEvent interface: attribute lineNumber 40 FAIL SecurityPolicyViolationEvent interface: attribute colno assert_true: The prototype object must have a property "colno" expected true got false 41 PASS SecurityPolicyViolationEvent interface: attribute columnNumber 42 PASS SecurityPolicyViolationEvent must be primary interface of new SecurityPolicyViolationEvent("securitypolicyviolation") 43 PASS Stringification of new SecurityPolicyViolationEvent("securitypolicyviolation") 44 FAIL SecurityPolicyViolationEvent interface: new SecurityPolicyViolationEvent("securitypolicyviolation") must inherit property "documentURL" with the proper type assert_inherits: property "documentURL" not found in prototype chain 45 PASS SecurityPolicyViolationEvent interface: new SecurityPolicyViolationEvent("securitypolicyviolation") must inherit property "documentURI" with the proper type 46 PASS SecurityPolicyViolationEvent interface: new SecurityPolicyViolationEvent("securitypolicyviolation") must inherit property "referrer" with the proper type 47 FAIL SecurityPolicyViolationEvent interface: new SecurityPolicyViolationEvent("securitypolicyviolation") must inherit property "blockedURL" with the proper type assert_inherits: property "blockedURL" not found in prototype chain 48 PASS SecurityPolicyViolationEvent interface: new SecurityPolicyViolationEvent("securitypolicyviolation") must inherit property "blockedURI" with the proper type 49 PASS SecurityPolicyViolationEvent interface: new SecurityPolicyViolationEvent("securitypolicyviolation") must inherit property "effectiveDirective" with the proper type 50 PASS SecurityPolicyViolationEvent interface: new SecurityPolicyViolationEvent("securitypolicyviolation") must inherit property "violatedDirective" with the proper type 51 PASS SecurityPolicyViolationEvent interface: new SecurityPolicyViolationEvent("securitypolicyviolation") must inherit property "originalPolicy" with the proper type 52 PASS SecurityPolicyViolationEvent interface: new SecurityPolicyViolationEvent("securitypolicyviolation") must inherit property "sourceFile" with the proper type 53 FAIL SecurityPolicyViolationEvent interface: new SecurityPolicyViolationEvent("securitypolicyviolation") must inherit property "sample" with the proper type assert_inherits: property "sample" not found in prototype chain 54 FAIL SecurityPolicyViolationEvent interface: new SecurityPolicyViolationEvent("securitypolicyviolation") must inherit property "disposition" with the proper type assert_inherits: property "disposition" not found in prototype chain 55 PASS SecurityPolicyViolationEvent interface: new SecurityPolicyViolationEvent("securitypolicyviolation") must inherit property "statusCode" with the proper type 56 FAIL SecurityPolicyViolationEvent interface: new SecurityPolicyViolationEvent("securitypolicyviolation") must inherit property "lineno" with the proper type assert_inherits: property "lineno" not found in prototype chain 57 PASS SecurityPolicyViolationEvent interface: new SecurityPolicyViolationEvent("securitypolicyviolation") must inherit property "lineNumber" with the proper type 58 FAIL SecurityPolicyViolationEvent interface: new SecurityPolicyViolationEvent("securitypolicyviolation") must inherit property "colno" with the proper type assert_inherits: property "colno" not found in prototype chain 59 PASS SecurityPolicyViolationEvent interface: new SecurityPolicyViolationEvent("securitypolicyviolation") must inherit property "columnNumber" with the proper type 3 60 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/geometry/interfaces-expected.txt
r249672 r249731 201 201 PASS DOMMatrixReadOnly interface: operation translate(unrestricted double, unrestricted double, unrestricted double) 202 202 PASS DOMMatrixReadOnly interface: operation scale(unrestricted double, unrestricted double, unrestricted double, unrestricted double, unrestricted double, unrestricted double) 203 FAIL DOMMatrixReadOnly interface: operation scaleNonUniform(unrestricted double, unrestricted double) assert_own_property: interface prototype object missing non-static operation expected property "scaleNonUniform" missing 203 204 PASS DOMMatrixReadOnly interface: operation scale3d(unrestricted double, unrestricted double, unrestricted double, unrestricted double) 204 205 PASS DOMMatrixReadOnly interface: operation rotate(unrestricted double, unrestricted double, unrestricted double) … … 252 253 PASS DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "scale(unrestricted double, unrestricted double, unrestricted double, unrestricted double, unrestricted double, unrestricted double)" with the proper type 253 254 PASS DOMMatrixReadOnly interface: calling scale(unrestricted double, unrestricted double, unrestricted double, unrestricted double, unrestricted double, unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError 255 FAIL DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "scaleNonUniform(unrestricted double, unrestricted double)" with the proper type assert_inherits: property "scaleNonUniform" not found in prototype chain 256 FAIL DOMMatrixReadOnly interface: calling scaleNonUniform(unrestricted double, unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError assert_inherits: property "scaleNonUniform" not found in prototype chain 254 257 PASS DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "scale3d(unrestricted double, unrestricted double, unrestricted double, unrestricted double)" with the proper type 255 258 PASS DOMMatrixReadOnly interface: calling scale3d(unrestricted double, unrestricted double, unrestricted double, unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/geometry/interfaces.worker-expected.txt
r249672 r249731 181 181 PASS DOMMatrixReadOnly interface: operation translate(unrestricted double, unrestricted double, unrestricted double) 182 182 PASS DOMMatrixReadOnly interface: operation scale(unrestricted double, unrestricted double, unrestricted double, unrestricted double, unrestricted double, unrestricted double) 183 FAIL DOMMatrixReadOnly interface: operation scaleNonUniform(unrestricted double, unrestricted double) assert_own_property: interface prototype object missing non-static operation expected property "scaleNonUniform" missing 183 184 PASS DOMMatrixReadOnly interface: operation scale3d(unrestricted double, unrestricted double, unrestricted double, unrestricted double) 184 185 PASS DOMMatrixReadOnly interface: operation rotate(unrestricted double, unrestricted double, unrestricted double) … … 232 233 PASS DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "scale(unrestricted double, unrestricted double, unrestricted double, unrestricted double, unrestricted double, unrestricted double)" with the proper type 233 234 PASS DOMMatrixReadOnly interface: calling scale(unrestricted double, unrestricted double, unrestricted double, unrestricted double, unrestricted double, unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError 235 FAIL DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "scaleNonUniform(unrestricted double, unrestricted double)" with the proper type assert_inherits: property "scaleNonUniform" not found in prototype chain 236 FAIL DOMMatrixReadOnly interface: calling scaleNonUniform(unrestricted double, unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError assert_inherits: property "scaleNonUniform" not found in prototype chain 234 237 PASS DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "scale3d(unrestricted double, unrestricted double, unrestricted double, unrestricted double)" with the proper type 235 238 PASS DOMMatrixReadOnly interface: calling scale3d(unrestricted double, unrestricted double, unrestricted double, unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError -
trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness-expected.txt
r235889 r249731 11 11 PASS TextDecoder interface: existence and properties of interface prototype object's "constructor" property 12 12 PASS TextDecoder interface: existence and properties of interface prototype object's @@unscopables property 13 PASS TextDecoder interface: operation decode(BufferSource, TextDecodeOptions) 13 14 PASS TextDecoder interface: attribute encoding 14 15 PASS TextDecoder interface: attribute fatal 15 16 PASS TextDecoder interface: attribute ignoreBOM 16 PASS TextDecoder interface: operation decode(BufferSource, TextDecodeOptions)17 17 PASS TextDecoder must be primary interface of new TextDecoder() 18 18 PASS Stringification of new TextDecoder() 19 PASS TextDecoder interface: new TextDecoder() must inherit property "decode(BufferSource, TextDecodeOptions)" with the proper type 20 PASS TextDecoder interface: calling decode(BufferSource, TextDecodeOptions) on new TextDecoder() with too few arguments must throw TypeError 19 21 PASS TextDecoder interface: new TextDecoder() must inherit property "encoding" with the proper type 20 22 PASS TextDecoder interface: new TextDecoder() must inherit property "fatal" with the proper type 21 23 PASS TextDecoder interface: new TextDecoder() must inherit property "ignoreBOM" with the proper type 22 PASS TextDecoder interface: new TextDecoder() must inherit property "decode(BufferSource, TextDecodeOptions)" with the proper type23 PASS TextDecoder interface: calling decode(BufferSource, TextDecodeOptions) on new TextDecoder() with too few arguments must throw TypeError24 24 PASS TextEncoder interface: existence and properties of interface object 25 25 PASS TextEncoder interface object length … … 28 28 PASS TextEncoder interface: existence and properties of interface prototype object's "constructor" property 29 29 PASS TextEncoder interface: existence and properties of interface prototype object's @@unscopables property 30 PASS TextEncoder interface: operation encode(USVString) 31 FAIL TextEncoder interface: operation encodeInto(USVString, Uint8Array) assert_own_property: interface prototype object missing non-static operation expected property "encodeInto" missing 30 32 PASS TextEncoder interface: attribute encoding 31 PASS TextEncoder interface: operation encode(USVString)32 33 PASS TextEncoder must be primary interface of new TextEncoder() 33 34 PASS Stringification of new TextEncoder() 34 PASS TextEncoder interface: new TextEncoder() must inherit property "encoding" with the proper type35 35 PASS TextEncoder interface: new TextEncoder() must inherit property "encode(USVString)" with the proper type 36 36 PASS TextEncoder interface: calling encode(USVString) on new TextEncoder() with too few arguments must throw TypeError 37 FAIL TextEncoder interface: new TextEncoder() must inherit property "encodeInto(USVString, Uint8Array)" with the proper type assert_inherits: property "encodeInto" not found in prototype chain 38 FAIL TextEncoder interface: calling encodeInto(USVString, Uint8Array) on new TextEncoder() with too few arguments must throw TypeError assert_inherits: property "encodeInto" not found in prototype chain 39 PASS TextEncoder interface: new TextEncoder() must inherit property "encoding" with the proper type 40 FAIL TextDecoderStream interface: existence and properties of interface object assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing 41 FAIL TextDecoderStream interface object length assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing 42 FAIL TextDecoderStream interface object name assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing 43 FAIL TextDecoderStream interface: existence and properties of interface prototype object assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing 44 FAIL TextDecoderStream interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing 45 FAIL TextDecoderStream interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing 46 FAIL TextDecoderStream interface: attribute encoding assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing 47 FAIL TextDecoderStream interface: attribute fatal assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing 48 FAIL TextDecoderStream interface: attribute ignoreBOM assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing 49 FAIL TextDecoderStream interface: attribute readable assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing 50 FAIL TextDecoderStream interface: attribute writable assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing 51 FAIL TextEncoderStream interface: existence and properties of interface object assert_own_property: self does not have own property "TextEncoderStream" expected property "TextEncoderStream" missing 52 FAIL TextEncoderStream interface object length assert_own_property: self does not have own property "TextEncoderStream" expected property "TextEncoderStream" missing 53 FAIL TextEncoderStream interface object name assert_own_property: self does not have own property "TextEncoderStream" expected property "TextEncoderStream" missing 54 FAIL TextEncoderStream interface: existence and properties of interface prototype object assert_own_property: self does not have own property "TextEncoderStream" expected property "TextEncoderStream" missing 55 FAIL TextEncoderStream interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "TextEncoderStream" expected property "TextEncoderStream" missing 56 FAIL TextEncoderStream interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "TextEncoderStream" expected property "TextEncoderStream" missing 57 FAIL TextEncoderStream interface: attribute encoding assert_own_property: self does not have own property "TextEncoderStream" expected property "TextEncoderStream" missing 58 FAIL TextEncoderStream interface: attribute readable assert_own_property: self does not have own property "TextEncoderStream" expected property "TextEncoderStream" missing 59 FAIL TextEncoderStream interface: attribute writable assert_own_property: self does not have own property "TextEncoderStream" expected property "TextEncoderStream" missing 37 60 -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/cors-rfc1918/idlharness.tentative.any-expected.txt
r249672 r249731 1 1 2 FAIL idl_test setup promise_test: Unhandled rejection with value: object "Error fetching /interfaces/cors-rfc1918.idl." 2 PASS idl_test setup 3 PASS Partial interface Document: original interface defined 4 PASS Partial interface WorkerGlobalScope: original interface defined 5 PASS WorkerGlobalScope interface: existence and properties of interface object 6 FAIL Document interface: attribute addressSpace assert_true: The prototype object must have a property "addressSpace" expected true got false 7 FAIL Document interface: document must inherit property "addressSpace" with the proper type assert_inherits: property "addressSpace" not found in prototype chain 3 8 -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/cors-rfc1918/idlharness.tentative.any.worker-expected.txt
r249672 r249731 1 1 2 FAIL idl_test setup promise_test: Unhandled rejection with value: object "Error fetching /interfaces/cors-rfc1918.idl." 2 PASS idl_test setup 3 PASS Partial interface Document: original interface defined 4 PASS Partial interface WorkerGlobalScope: original interface defined 5 FAIL WorkerGlobalScope interface: attribute addressSpace assert_true: The prototype object must have a property "addressSpace" expected true got false 6 FAIL WorkerGlobalScope interface: self must inherit property "addressSpace" with the proper type assert_inherits: property "addressSpace" not found in prototype chain 7 PASS Node interface: existence and properties of interface object 8 PASS Document interface: existence and properties of interface object 3 9 -
trunk/LayoutTests/imported/w3c/web-platform-tests/hr-time/idlharness-expected.txt
r249672 r249731 3 3 4 4 PASS Test driver 5 PASS Partial interface WindowOrWorkerGlobalScope: original interfacedefined5 PASS Partial interface mixin WindowOrWorkerGlobalScope: original interface mixin defined 6 6 PASS Performance interface: existence and properties of interface object 7 7 PASS Performance interface object length -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/DOM-Parsing.idl
r243813 r249731 18 18 19 19 [Constructor, Exposed=Window] 20 21 20 interface XMLSerializer { 22 21 DOMString serializeToString(Node root); -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/FileAPI.idl
r229544 r249731 1 // https://w3c.github.io/FileAPI/#idl-index 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: File API (https://w3c.github.io/FileAPI/) 2 5 3 [Constructor(optional sequence<BlobPart> blobParts, optional BlobPropertyBag options), 4 Exposed=(Window,Worker)] 6 [Constructor(optional sequence<BlobPart> blobParts, 7 optional BlobPropertyBag options = {}), 8 Exposed=(Window,Worker), Serializable] 5 9 interface Blob { 6 10 … … 8 12 readonly attribute DOMString type; 9 13 10 //slice Blob into byte-ranged chunks 14 // slice Blob into byte-ranged chunks 15 Blob slice(optional [Clamp] long long start, 16 optional [Clamp] long long end, 17 optional DOMString contentType); 11 18 12 Blob slice([Clamp] optional long long start, 13 [Clamp] optional long long end, 14 optional DOMString contentType); 19 // read from the Blob. 20 [NewObject] ReadableStream stream(); 21 [NewObject] Promise<USVString> text(); 22 [NewObject] Promise<ArrayBuffer> arrayBuffer(); 15 23 }; 24 25 enum EndingType { "transparent", "native" }; 16 26 17 27 dictionary BlobPropertyBag { 18 28 DOMString type = ""; 29 EndingType endings = "transparent"; 19 30 }; 20 31 … … 22 33 23 34 [Constructor(sequence<BlobPart> fileBits, 24 [EnsureUTF16] DOMString fileName,25 optional FilePropertyBag options),26 Exposed=(Window,Worker)]35 USVString fileName, 36 optional FilePropertyBag options = {}), 37 Exposed=(Window,Worker), Serializable] 27 38 interface File : Blob { 28 39 readonly attribute DOMString name; … … 34 45 }; 35 46 36 [Exposed=(Window,Worker) ]47 [Exposed=(Window,Worker), Serializable] 37 48 interface FileList { 38 49 getter File? item(unsigned long index); … … 46 57 void readAsArrayBuffer(Blob blob); 47 58 void readAsBinaryString(Blob blob); 48 void readAsText(Blob blob, optional DOMString label);59 void readAsText(Blob blob, optional DOMString encoding); 49 60 void readAsDataURL(Blob blob); 50 61 … … 55 66 const unsigned short LOADING = 1; 56 67 const unsigned short DONE = 2; 57 58 68 59 69 readonly attribute unsigned short readyState; … … 71 81 attribute EventHandler onerror; 72 82 attribute EventHandler onloadend; 73 74 83 }; 75 84 76 [Constructor, Exposed= Worker]85 [Constructor, Exposed=(DedicatedWorker,SharedWorker)] 77 86 interface FileReaderSync { 78 87 // Synchronously return strings … … 80 89 ArrayBuffer readAsArrayBuffer(Blob blob); 81 90 DOMString readAsBinaryString(Blob blob); 82 DOMString readAsText(Blob blob, optional DOMString label);91 DOMString readAsText(Blob blob, optional DOMString encoding); 83 92 DOMString readAsDataURL(Blob blob); 84 93 }; … … 86 95 [Exposed=(Window,DedicatedWorker,SharedWorker)] 87 96 partial interface URL { 88 static DOMString createObjectURL( Blob blob);97 static DOMString createObjectURL((Blob or MediaSource) obj); 89 98 static void revokeObjectURL(DOMString url); 90 99 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/IndexedDB.idl
r235889 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Indexed Database API 3.0 (https://w3c.github.io/IndexedDB/) 5 1 6 [Exposed=(Window,Worker)] 2 7 interface IDBRequest : EventTarget { 3 readonly attribute any 4 readonly attribute DOMException? 8 readonly attribute any result; 9 readonly attribute DOMException? error; 5 10 readonly attribute (IDBObjectStore or IDBIndex or IDBCursor)? source; 6 readonly attribute IDBTransaction? 7 readonly attribute IDBRequestReadyState 11 readonly attribute IDBTransaction? transaction; 12 readonly attribute IDBRequestReadyState readyState; 8 13 9 14 // Event handlers: … … 25 30 26 31 [Exposed=(Window,Worker), 27 Constructor(DOMString type, optional IDBVersionChangeEventInit eventInitDict )]32 Constructor(DOMString type, optional IDBVersionChangeEventInit eventInitDict = {})] 28 33 interface IDBVersionChangeEvent : Event { 29 readonly attribute unsigned long long 34 readonly attribute unsigned long long oldVersion; 30 35 readonly attribute unsigned long long? newVersion; 31 36 }; 32 37 33 38 dictionary IDBVersionChangeEventInit : EventInit { 34 unsigned long long 39 unsigned long long oldVersion = 0; 35 40 unsigned long long? newVersion = null; 36 41 }; 37 42 38 partial interface WindowOrWorkerGlobalScope {43 partial interface mixin WindowOrWorkerGlobalScope { 39 44 [SameObject] readonly attribute IDBFactory indexedDB; 40 45 }; … … 42 47 [Exposed=(Window,Worker)] 43 48 interface IDBFactory { 44 IDBOpenDBRequest open(DOMString name, 45 optional [EnforceRange] unsigned long long version); 46 IDBOpenDBRequest deleteDatabase(DOMString name); 49 [NewObject] IDBOpenDBRequest open(DOMString name, 50 optional [EnforceRange] unsigned long long version); 51 [NewObject] IDBOpenDBRequest deleteDatabase(DOMString name); 52 53 Promise<sequence<IDBDatabaseInfo>> databases(); 47 54 48 55 short cmp(any first, any second); 49 56 }; 50 57 58 dictionary IDBDatabaseInfo { 59 DOMString name; 60 unsigned long long version; 61 }; 62 51 63 [Exposed=(Window,Worker)] 52 64 interface IDBDatabase : EventTarget { 53 readonly attribute DOMString 65 readonly attribute DOMString name; 54 66 readonly attribute unsigned long long version; 55 readonly attribute DOMStringList objectStoreNames; 56 57 IDBTransaction transaction((DOMString or sequence<DOMString>) storeNames, 58 optional IDBTransactionMode mode = "readonly"); 59 void close(); 60 61 IDBObjectStore createObjectStore(DOMString name, 62 optional IDBObjectStoreParameters options); 63 void deleteObjectStore(DOMString name); 67 readonly attribute DOMStringList objectStoreNames; 68 69 [NewObject] IDBTransaction transaction((DOMString or sequence<DOMString>) storeNames, 70 optional IDBTransactionMode mode = "readonly"); 71 void close(); 72 73 [NewObject] IDBObjectStore createObjectStore( 74 DOMString name, 75 optional IDBObjectStoreParameters options = {}); 76 void deleteObjectStore(DOMString name); 64 77 65 78 // Event handlers: … … 72 85 dictionary IDBObjectStoreParameters { 73 86 (DOMString or sequence<DOMString>)? keyPath = null; 74 boolean 87 boolean autoIncrement = false; 75 88 }; 76 89 77 90 [Exposed=(Window,Worker)] 78 91 interface IDBObjectStore { 79 attribute DOMStringname;80 readonly attribute any 81 readonly attribute DOMStringList 82 readonly attribute IDBTransaction transaction;83 readonly attribute boolean 84 85 IDBRequest put(any value, optional any key);86 IDBRequest add(any value, optional any key);87 IDBRequest delete(any query);88 IDBRequest clear();89 IDBRequest get(any query);90 IDBRequest getKey(any query);91 IDBRequest getAll(optional any query,92 [EnforceRange] optionalunsigned long count);93 IDBRequest getAllKeys(optional any query,94 [EnforceRange] optionalunsigned long count);95 IDBRequest count(optional any query);96 97 IDBRequest openCursor(optional any query,98 optional IDBCursorDirection direction = "next");99 IDBRequest openKeyCursor(optional any query,100 optional IDBCursorDirection direction = "next");101 102 IDBIndex 103 104 IDBIndexcreateIndex(DOMString name,105 (DOMString or sequence<DOMString>) keyPath,106 optional IDBIndexParameters options);107 void deleteIndex(DOMString indexName);92 attribute DOMString name; 93 readonly attribute any keyPath; 94 readonly attribute DOMStringList indexNames; 95 [SameObject] readonly attribute IDBTransaction transaction; 96 readonly attribute boolean autoIncrement; 97 98 [NewObject] IDBRequest put(any value, optional any key); 99 [NewObject] IDBRequest add(any value, optional any key); 100 [NewObject] IDBRequest delete(any query); 101 [NewObject] IDBRequest clear(); 102 [NewObject] IDBRequest get(any query); 103 [NewObject] IDBRequest getKey(any query); 104 [NewObject] IDBRequest getAll(optional any query, 105 optional [EnforceRange] unsigned long count); 106 [NewObject] IDBRequest getAllKeys(optional any query, 107 optional [EnforceRange] unsigned long count); 108 [NewObject] IDBRequest count(optional any query); 109 110 [NewObject] IDBRequest openCursor(optional any query, 111 optional IDBCursorDirection direction = "next"); 112 [NewObject] IDBRequest openKeyCursor(optional any query, 113 optional IDBCursorDirection direction = "next"); 114 115 IDBIndex index(DOMString name); 116 117 [NewObject] IDBIndex createIndex(DOMString name, 118 (DOMString or sequence<DOMString>) keyPath, 119 optional IDBIndexParameters options = {}); 120 void deleteIndex(DOMString name); 108 121 }; 109 122 … … 115 128 [Exposed=(Window,Worker)] 116 129 interface IDBIndex { 117 attribute DOMStringname;118 readonly attribute IDBObjectStore objectStore;119 readonly attribute any 120 readonly attribute boolean 121 readonly attribute boolean 122 123 IDBRequest get(any query);124 IDBRequest getKey(any query);125 IDBRequest getAll(optional any query,126 [EnforceRange] optionalunsigned long count);127 IDBRequest getAllKeys(optional any query,128 [EnforceRange] optionalunsigned long count);129 IDBRequest count(optional any query);130 131 IDBRequest openCursor(optional any query,132 optional IDBCursorDirection direction = "next");133 IDBRequest openKeyCursor(optional any query,134 optional IDBCursorDirection direction = "next");130 attribute DOMString name; 131 [SameObject] readonly attribute IDBObjectStore objectStore; 132 readonly attribute any keyPath; 133 readonly attribute boolean multiEntry; 134 readonly attribute boolean unique; 135 136 [NewObject] IDBRequest get(any query); 137 [NewObject] IDBRequest getKey(any query); 138 [NewObject] IDBRequest getAll(optional any query, 139 optional [EnforceRange] unsigned long count); 140 [NewObject] IDBRequest getAllKeys(optional any query, 141 optional [EnforceRange] unsigned long count); 142 [NewObject] IDBRequest count(optional any query); 143 144 [NewObject] IDBRequest openCursor(optional any query, 145 optional IDBCursorDirection direction = "next"); 146 [NewObject] IDBRequest openKeyCursor(optional any query, 147 optional IDBCursorDirection direction = "next"); 135 148 }; 136 149 137 150 [Exposed=(Window,Worker)] 138 151 interface IDBKeyRange { 139 readonly attribute any 140 readonly attribute any 152 readonly attribute any lower; 153 readonly attribute any upper; 141 154 readonly attribute boolean lowerOpen; 142 155 readonly attribute boolean upperOpen; 143 156 144 157 // Static construction methods: 145 static IDBKeyRange only(any value);146 static IDBKeyRange lowerBound(any lower, optional boolean open = false);147 static IDBKeyRange upperBound(any upper, optional boolean open = false);148 static IDBKeyRange bound(any lower,149 any upper,150 optional boolean lowerOpen = false,151 optional boolean upperOpen = false);158 [NewObject] static IDBKeyRange only(any value); 159 [NewObject] static IDBKeyRange lowerBound(any lower, optional boolean open = false); 160 [NewObject] static IDBKeyRange upperBound(any upper, optional boolean open = false); 161 [NewObject] static IDBKeyRange bound(any lower, 162 any upper, 163 optional boolean lowerOpen = false, 164 optional boolean upperOpen = false); 152 165 153 166 boolean _includes(any key); … … 157 170 interface IDBCursor { 158 171 readonly attribute (IDBObjectStore or IDBIndex) source; 159 readonly attribute IDBCursorDirection direction; 160 readonly attribute any key; 161 readonly attribute any primaryKey; 172 readonly attribute IDBCursorDirection direction; 173 readonly attribute any key; 174 readonly attribute any primaryKey; 175 [SameObject] readonly attribute IDBRequest request; 162 176 163 177 void advance([EnforceRange] unsigned long count); … … 165 179 void continuePrimaryKey(any key, any primaryKey); 166 180 167 IDBRequest update(any value);168 IDBRequest delete();181 [NewObject] IDBRequest update(any value); 182 [NewObject] IDBRequest delete(); 169 183 }; 170 184 … … 183 197 [Exposed=(Window,Worker)] 184 198 interface IDBTransaction : EventTarget { 185 readonly attribute DOMStringList 199 readonly attribute DOMStringList objectStoreNames; 186 200 readonly attribute IDBTransactionMode mode; 187 readonly attribute IDBDatabasedb;188 readonly attribute DOMException 201 [SameObject] readonly attribute IDBDatabase db; 202 readonly attribute DOMException error; 189 203 190 204 IDBObjectStore objectStore(DOMString name); 191 void abort(); 205 void commit(); 206 void abort(); 192 207 193 208 // Event handlers: -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/WebCryptoAPI.idl
r229544 r249731 1 [NoInterfaceObject] 2 interface GlobalCrypto { 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Web Cryptography API (https://w3c.github.io/webcrypto/Overview.html) 5 6 partial interface mixin WindowOrWorkerGlobalScope { 3 7 readonly attribute Crypto crypto; 4 8 }; 5 6 //Window implements GlobalCrypto;7 //WorkerGlobalScope implements GlobalCrypto;8 9 9 10 [Exposed=(Window,Worker)] 10 11 interface Crypto { 11 readonly attribute SubtleCrypto subtle;12 [SecureContext] readonly attribute SubtleCrypto subtle; 12 13 ArrayBufferView getRandomValues(ArrayBufferView array); 13 14 }; … … 29 30 enum KeyUsage { "encrypt", "decrypt", "sign", "verify", "deriveKey", "deriveBits", "wrapKey", "unwrapKey" }; 30 31 31 [ Exposed=(Window,Worker)]32 [SecureContext,Exposed=(Window,Worker)] 32 33 interface CryptoKey { 33 34 readonly attribute KeyType type; … … 37 38 }; 38 39 39 40 40 enum KeyFormat { "raw", "spki", "pkcs8", "jwk" }; 41 41 42 [ Exposed=(Window,Worker)]42 [SecureContext,Exposed=(Window,Worker)] 43 43 interface SubtleCrypto { 44 44 Promise<any> encrypt(AlgorithmIdentifier algorithm, … … 66 66 boolean extractable, 67 67 sequence<KeyUsage> keyUsages ); 68 Promise< any> deriveBits(AlgorithmIdentifier algorithm,68 Promise<ArrayBuffer> deriveBits(AlgorithmIdentifier algorithm, 69 69 CryptoKey baseKey, 70 70 unsigned long length); 71 71 72 Promise< any> importKey(KeyFormat format,72 Promise<CryptoKey> importKey(KeyFormat format, 73 73 (BufferSource or JsonWebKey) keyData, 74 74 AlgorithmIdentifier algorithm, … … 81 81 CryptoKey wrappingKey, 82 82 AlgorithmIdentifier wrapAlgorithm); 83 Promise< any> unwrapKey(KeyFormat format,83 Promise<CryptoKey> unwrapKey(KeyFormat format, 84 84 BufferSource wrappedKey, 85 85 CryptoKey unwrappingKey, … … 91 91 92 92 dictionary RsaOtherPrimesInfo { 93 // The following fields are defined in Section 6.3.2.7 of JSON Web Algorithms93 // The following fields are defined in Section 6.3.2.7 of JSON Web Algorithms 94 94 DOMString r; 95 95 DOMString d; … … 154 154 }; 155 155 156 dictionary RsaHashedImportParams {156 dictionary RsaHashedImportParams : Algorithm { 157 157 // The hash algorithm to use 158 158 required HashAlgorithmIdentifier hash; … … 160 160 161 161 dictionary RsaPssParams : Algorithm { 162 // The desired length of the random salt163 [EnforceRange] required unsigned long saltLength;162 // The desired length of the random salt 163 [EnforceRange] required unsigned long saltLength; 164 164 }; 165 165 166 166 dictionary RsaOaepParams : Algorithm { 167 // The optional label/application data to associate with the message168 BufferSource label;167 // The optional label/application data to associate with the message 168 BufferSource label; 169 169 }; 170 170 171 171 dictionary EcdsaParams : Algorithm { 172 // The hash algorithm to use173 required HashAlgorithmIdentifier hash;172 // The hash algorithm to use 173 required HashAlgorithmIdentifier hash; 174 174 }; 175 175 … … 177 177 178 178 dictionary EcKeyGenParams : Algorithm { 179 // A named curve180 required NamedCurve namedCurve;179 // A named curve 180 required NamedCurve namedCurve; 181 181 }; 182 182 183 183 dictionary EcKeyAlgorithm : KeyAlgorithm { 184 // The named curve that the key uses185 required NamedCurve namedCurve;184 // The named curve that the key uses 185 required NamedCurve namedCurve; 186 186 }; 187 187 188 188 dictionary EcKeyImportParams : Algorithm { 189 // A named curve190 required NamedCurve namedCurve;189 // A named curve 190 required NamedCurve namedCurve; 191 191 }; 192 192 193 193 dictionary EcdhKeyDeriveParams : Algorithm { 194 // The peer's EC public key.195 required CryptoKey public;194 // The peer's EC public key. 195 required CryptoKey public; 196 196 }; 197 197 198 198 dictionary AesCtrParams : Algorithm { 199 // The initial value of the counter block. counter MUST be 16 bytes200 // (the AES block size). The counter bits are the rightmost length201 // bits of the counter block. The rest of the counter block is for202 // the nonce. The counter bits are incremented using the standard203 // incrementing function specified in NIST SP 800-38A Appendix B.1:204 // the counter bits are interpreted as a big-endian integer and205 // incremented by one.206 required BufferSource counter;207 // The length, in bits, of the rightmost part of the counter block208 // that is incremented.209 [EnforceRange] required octet length;199 // The initial value of the counter block. counter MUST be 16 bytes 200 // (the AES block size). The counter bits are the rightmost length 201 // bits of the counter block. The rest of the counter block is for 202 // the nonce. The counter bits are incremented using the standard 203 // incrementing function specified in NIST SP 800-38A Appendix B.1: 204 // the counter bits are interpreted as a big-endian integer and 205 // incremented by one. 206 required BufferSource counter; 207 // The length, in bits, of the rightmost part of the counter block 208 // that is incremented. 209 [EnforceRange] required octet length; 210 210 }; 211 211 212 212 dictionary AesKeyAlgorithm : KeyAlgorithm { 213 // The length, in bits, of the key.214 required unsigned short length;213 // The length, in bits, of the key. 214 required unsigned short length; 215 215 }; 216 216 217 217 dictionary AesKeyGenParams : Algorithm { 218 // The length, in bits, of the key.219 [EnforceRange] required unsigned short length;218 // The length, in bits, of the key. 219 [EnforceRange] required unsigned short length; 220 220 }; 221 221 222 222 dictionary AesDerivedKeyParams : Algorithm { 223 // The length, in bits, of the key.224 [EnforceRange] required unsigned short length;223 // The length, in bits, of the key. 224 [EnforceRange] required unsigned short length; 225 225 }; 226 226 227 227 dictionary AesCbcParams : Algorithm { 228 // The initialization vector. MUST be 16 bytes.229 required BufferSource iv;228 // The initialization vector. MUST be 16 bytes. 229 required BufferSource iv; 230 230 }; 231 231 232 232 dictionary AesGcmParams : Algorithm { 233 // The initialization vector to use. May be up to 2^64-1 bytes long.234 required BufferSource iv;235 // The additional authentication data to include.236 BufferSource additionalData;237 // The desired length of the authentication tag. May be 0 - 128.238 [EnforceRange] octet tagLength;233 // The initialization vector to use. May be up to 2^64-1 bytes long. 234 required BufferSource iv; 235 // The additional authentication data to include. 236 BufferSource additionalData; 237 // The desired length of the authentication tag. May be 0 - 128. 238 [EnforceRange] octet tagLength; 239 239 }; 240 240 241 241 dictionary HmacImportParams : Algorithm { 242 // The inner hash function to use.243 HashAlgorithmIdentifier hash;244 // The length (in bits) of the key.245 [EnforceRange] unsigned long length;242 // The inner hash function to use. 243 required HashAlgorithmIdentifier hash; 244 // The length (in bits) of the key. 245 [EnforceRange] unsigned long length; 246 246 }; 247 247 248 248 dictionary HmacKeyAlgorithm : KeyAlgorithm { 249 // The inner hash function to use.250 required KeyAlgorithm hash;251 // The length (in bits) of the key.252 required unsigned long length;249 // The inner hash function to use. 250 required KeyAlgorithm hash; 251 // The length (in bits) of the key. 252 required unsigned long length; 253 253 }; 254 254 255 255 dictionary HmacKeyGenParams : Algorithm { 256 // The inner hash function to use.257 required HashAlgorithmIdentifier hash;258 // The length (in bits) of the key to generate. If unspecified, the259 // recommended length will be used, which is the size of the associated hash function's block260 // size.261 [EnforceRange] unsigned long length;262 }; 263 264 dictionary Hkdf CtrParams : Algorithm {265 // The algorithm to use with HMAC (e.g.: SHA-256)266 required HashAlgorithmIdentifier hash;267 // A bit string that corresponds to the label that identifies the purpose for the derived keying material.268 required BufferSource label;269 // A bit string that corresponds to the context of the key derivation, as described in Section 5 of [NIST SP800-108] 270 required BufferSource context;256 // The inner hash function to use. 257 required HashAlgorithmIdentifier hash; 258 // The length (in bits) of the key to generate. If unspecified, the 259 // recommended length will be used, which is the size of the associated hash function's block 260 // size. 261 [EnforceRange] unsigned long length; 262 }; 263 264 dictionary HkdfParams : Algorithm { 265 // The algorithm to use with HMAC (e.g.: SHA-256) 266 required HashAlgorithmIdentifier hash; 267 // A bit string that corresponds to the salt used in the extract step. 268 required BufferSource salt; 269 // A bit string that corresponds to the context and application specific context for the derived keying material. 270 required BufferSource info; 271 271 }; 272 272 273 273 dictionary Pbkdf2Params : Algorithm { 274 required BufferSource salt;275 [EnforceRange] required unsigned long iterations;276 required HashAlgorithmIdentifier hash;277 }; 274 required BufferSource salt; 275 [EnforceRange] required unsigned long iterations; 276 required HashAlgorithmIdentifier hash; 277 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/accelerometer.idl
r229544 r249731 1 [Constructor(optional AccelerometerSensorOptions options), SecureContext, 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Accelerometer (https://w3c.github.io/accelerometer/) 5 6 [Constructor(optional AccelerometerSensorOptions options = {}), SecureContext, 2 7 Exposed=Window] 3 8 interface Accelerometer : Sensor { … … 13 18 }; 14 19 15 [Constructor(optional AccelerometerSensorOptions options ), SecureContext,20 [Constructor(optional AccelerometerSensorOptions options = {}), SecureContext, 16 21 Exposed=Window] 17 22 interface LinearAccelerationSensor : Accelerometer { 18 23 }; 19 24 20 [Constructor(optional AccelerometerSensorOptions options ), SecureContext,25 [Constructor(optional AccelerometerSensorOptions options = {}), SecureContext, 21 26 Exposed=Window] 22 27 interface GravitySensor : Accelerometer { 23 28 }; 29 30 dictionary AccelerometerReadingValues { 31 required double? x; 32 required double? y; 33 required double? z; 34 }; 35 36 dictionary LinearAccelerationReadingValues : AccelerometerReadingValues { 37 }; 38 39 dictionary GravityReadingValues : AccelerometerReadingValues { 40 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/ambient-light.idl
r229544 r249731 1 [Constructor(optional SensorOptions sensorOptions), SecureContext, Exposed=Window] 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Ambient Light Sensor (https://w3c.github.io/ambient-light/) 5 6 [Constructor(optional SensorOptions sensorOptions = {}), SecureContext, Exposed=Window] 2 7 interface AmbientLightSensor : Sensor { 3 8 readonly attribute double? illuminance; 4 9 }; 10 11 dictionary AmbientLightReadingValues { 12 required double? illuminance; 13 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/background-fetch.idl
r229544 r249731 1 // 4.1. Extensions to ServiceWorkerGlobalScope 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Background Fetch (https://wicg.github.io/background-fetch/) 2 5 3 6 partial interface ServiceWorkerGlobalScope { 4 attribute EventHandler onbackgroundfetch ed;7 attribute EventHandler onbackgroundfetchsuccess; 5 8 attribute EventHandler onbackgroundfetchfail; 6 9 attribute EventHandler onbackgroundfetchabort; … … 8 11 }; 9 12 10 // 4.2. Extensions to ServiceWorkerRegistration11 12 13 partial interface ServiceWorkerRegistration { 13 14 readonly attribute BackgroundFetchManager backgroundFetch; 14 15 }; 15 16 // 4.3. BackgroundFetchManager17 16 18 17 [Exposed=(Window,Worker)] … … 20 19 Promise<BackgroundFetchRegistration> fetch(DOMString id, (RequestInfo or sequence<RequestInfo>) requests, optional BackgroundFetchOptions options); 21 20 Promise<BackgroundFetchRegistration?> get(DOMString id); 22 Promise<FrozenArray<DOMString>> getIds(); 23 // TODO: in future this should become an async iterator for BackgroundFetchRegistration objects 21 Promise<sequence<DOMString>> getIds(); 24 22 }; 25 23 26 dictionary BackgroundFetch Options {27 sequence<I conDefinition> icons;24 dictionary BackgroundFetchUIOptions { 25 sequence<ImageResource> icons; 28 26 DOMString title; 29 unsigned long long downloadTotal;30 27 }; 31 28 32 // This is taken from https://w3c.github.io/manifest/#icons-member. 33 // This definition should probably be moved somewhere more general. 34 dictionary IconDefinition { 35 DOMString src; 36 DOMString sizes; 37 DOMString type; 29 dictionary BackgroundFetchOptions : BackgroundFetchUIOptions { 30 unsigned long long downloadTotal = 0; 38 31 }; 39 40 // 4.4. BackgroundFetchRegistration41 32 42 33 [Exposed=(Window,Worker)] … … 47 38 readonly attribute unsigned long long downloadTotal; 48 39 readonly attribute unsigned long long downloaded; 49 readonly attribute BackgroundFetchActiveFetches activeFetches; 40 readonly attribute BackgroundFetchResult result; 41 readonly attribute BackgroundFetchFailureReason failureReason; 42 readonly attribute boolean recordsAvailable; 50 43 51 44 attribute EventHandler onprogress; 52 45 53 46 Promise<boolean> abort(); 47 Promise<BackgroundFetchRecord> match(RequestInfo request, optional CacheQueryOptions options); 48 Promise<sequence<BackgroundFetchRecord>> matchAll(optional RequestInfo request, optional CacheQueryOptions options); 49 }; 50 51 enum BackgroundFetchResult { "", "success", "failure" }; 52 53 enum BackgroundFetchFailureReason { 54 // The background fetch has not completed yet, or was successful. 55 "", 56 // The operation was aborted by the user, or abort() was called. 57 "aborted", 58 // A response had a not-ok-status. 59 "bad-status", 60 // A fetch failed for other reasons, e.g. CORS, MIX, an invalid partial response, 61 // or a general network failure for a fetch that cannot be retried. 62 "fetch-error", 63 // Storage quota was reached during the operation. 64 "quota-exceeded", 65 // The provided downloadTotal was exceeded. 66 "download-total-exceeded" 54 67 }; 55 68 56 69 [Exposed=(Window,Worker)] 57 interface BackgroundFetch Fetch{70 interface BackgroundFetchRecord { 58 71 readonly attribute Request request; 72 readonly attribute Promise<Response> responseReady; 59 73 }; 60 61 [Exposed=(Window,Worker)]62 interface BackgroundFetchActiveFetches {63 Promise<BackgroundFetchActiveFetch> match(RequestInfo request);64 Promise<FrozenArray<BackgroundFetchActiveFetch>> values();65 };66 67 [Exposed=(Window,Worker)]68 interface BackgroundFetchActiveFetch : BackgroundFetchFetch {69 readonly attribute Promise<Response> responseReady;70 // In future this will include a fetch observer71 };72 73 // 4.4.3. BackgroundFetchEvent74 74 75 75 [Constructor(DOMString type, BackgroundFetchEventInit init), Exposed=ServiceWorker] 76 76 interface BackgroundFetchEvent : ExtendableEvent { 77 readonly attribute DOMString id;77 readonly attribute BackgroundFetchRegistration registration; 78 78 }; 79 79 80 80 dictionary BackgroundFetchEventInit : ExtendableEventInit { 81 required DOMString id;81 required BackgroundFetchRegistration registration; 82 82 }; 83 83 84 // 4.4.4. BackgroundFetchSettledEvent 85 86 [Constructor(DOMString type, BackgroundFetchSettledEventInit init), Exposed=ServiceWorker] 87 interface BackgroundFetchSettledEvent : BackgroundFetchEvent { 88 readonly attribute BackgroundFetchSettledFetches fetches; 84 [Constructor(DOMString type, BackgroundFetchEventInit init), Exposed=ServiceWorker] 85 interface BackgroundFetchUpdateUIEvent : BackgroundFetchEvent { 86 Promise<void> updateUI(optional BackgroundFetchUIOptions options); 89 87 }; 90 91 dictionary BackgroundFetchSettledEventInit : BackgroundFetchEventInit {92 required BackgroundFetchSettledFetches fetches;93 };94 95 [Exposed=ServiceWorker]96 interface BackgroundFetchSettledFetches {97 Promise<BackgroundFetchSettledFetch> match(RequestInfo request);98 Promise<FrozenArray<BackgroundFetchSettledFetch>> values();99 };100 101 [Exposed=ServiceWorker]102 interface BackgroundFetchSettledFetch : BackgroundFetchFetch {103 readonly attribute Response? response;104 };105 106 // 4.4.5. BackgroundFetchUpdateEvent107 108 [Constructor(DOMString type, BackgroundFetchSettledEventInit init), Exposed=ServiceWorker]109 interface BackgroundFetchUpdateEvent : BackgroundFetchSettledEvent {110 Promise<void> updateUI(DOMString title);111 };112 113 // 4.4.6. BackgroundFetchClickEvent114 115 [Constructor(DOMString type, BackgroundFetchClickEventInit init), Exposed=ServiceWorker]116 interface BackgroundFetchClickEvent : BackgroundFetchEvent {117 readonly attribute BackgroundFetchState state;118 };119 120 dictionary BackgroundFetchClickEventInit : BackgroundFetchEventInit {121 required BackgroundFetchState state;122 };123 124 enum BackgroundFetchState { "pending", "succeeded", "failed" }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/clipboard-apis.idl
r229544 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Clipboard API and events (https://w3c.github.io/clipboard-apis/) 5 1 6 dictionary ClipboardEventInit : EventInit { 2 7 DataTransfer? clipboardData = null; 3 8 }; 4 9 5 [Constructor(DOMString type, optional ClipboardEventInit eventInitDict ), Exposed=Window]10 [Constructor(DOMString type, optional ClipboardEventInit eventInitDict = {}), Exposed=Window] 6 11 interface ClipboardEvent : Event { 7 12 readonly attribute DataTransfer? clipboardData; … … 12 17 }; 13 18 19 typedef sequence<ClipboardItem> ClipboardItems; 20 14 21 [SecureContext, Exposed=Window] interface Clipboard : EventTarget { 15 Promise< DataTransfer> read();22 Promise<ClipboardItems> read(); 16 23 Promise<DOMString> readText(); 17 Promise<void> write( DataTransferdata);24 Promise<void> write(ClipboardItems data); 18 25 Promise<void> writeText(DOMString data); 26 }; 27 28 typedef (DOMString or Blob) ClipboardItemDataType; 29 typedef Promise<ClipboardItemDataType> ClipboardItemData; 30 31 callback ClipboardItemDelayedCallback = ClipboardItemData (); 32 33 [Constructor(record<DOMString, ClipboardItemData> items, 34 optional ClipboardItemOptions options = {}), 35 Exposed=Window] interface ClipboardItem { 36 static ClipboardItem createDelayed( 37 record<DOMString, ClipboardItemDelayedCallback> items, 38 optional ClipboardItemOptions options = {}); 39 40 readonly attribute PresentationStyle presentationStyle; 41 readonly attribute long long lastModified; 42 readonly attribute boolean delayed; 43 44 readonly attribute FrozenArray<DOMString> types; 45 46 Promise<Blob> getType(DOMString type); 47 }; 48 49 enum PresentationStyle { "unspecified", "inline", "attachment" }; 50 51 dictionary ClipboardItemOptions { 52 PresentationStyle presentationStyle = "unspecified"; 19 53 }; 20 54 -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/console.idl
r229544 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Console Standard (https://console.spec.whatwg.org/) 5 1 6 [Exposed=(Window,Worker,Worklet)] 2 7 namespace console { // but see namespace object requirements below … … 4 9 void assert(optional boolean condition = false, any... data); 5 10 void clear(); 6 void count(optional DOMString label = "default");7 11 void debug(any... data); 8 12 void error(any... data); 9 13 void info(any... data); 10 14 void log(any... data); 11 void table( any tabularData, optional sequence<DOMString> properties);15 void table(optional any tabularData, optional sequence<DOMString> properties); 12 16 void trace(any... data); 13 17 void warn(any... data); 14 void dir( any item, optional object? options);18 void dir(optional any item, optional object? options); 15 19 void dirxml(any... data); 20 21 // Counting 22 void count(optional DOMString label = "default"); 23 void countReset(optional DOMString label = "default"); 16 24 17 25 // Grouping … … 22 30 // Timing 23 31 void time(optional DOMString label = "default"); 32 void timeLog(optional DOMString label = "default", any... data); 24 33 void timeEnd(optional DOMString label = "default"); 25 34 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/cookie-store.idl
r229544 r249731 1 // https://github.com/WICG/cookie-store/blob/gh-pages/explainer.md 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Cookie Store API (https://wicg.github.io/cookie-store/) 2 5 3 dictionary CookieListItem { 4 USVString name; 5 USVString value; 6 }; 7 8 typedef sequence<CookieListItem> CookieList; 9 10 [ 11 Exposed=(ServiceWorker,Window) 12 ] interface CookieStore { 13 Promise<CookieList?> getAll(USVString name, optional CookieStoreGetOptions options); 14 Promise<CookieList?> getAll(optional CookieStoreGetOptions options); 15 16 Promise<CookieListItem?> get(USVString name, optional CookieStoreGetOptions options); 6 [Exposed=(ServiceWorker,Window), 7 SecureContext] 8 interface CookieStore : EventTarget { 9 Promise<CookieListItem?> get(USVString name); 17 10 Promise<CookieListItem?> get(optional CookieStoreGetOptions options); 18 11 19 Promise< boolean> has(USVString name, optional CookieStoreGetOptions options);20 Promise< boolean> has(optional CookieStoreGetOptions options);12 Promise<CookieList> getAll(USVString name); 13 Promise<CookieList> getAll(optional CookieStoreGetOptions options); 21 14 22 Promise<void> set(USVString name, USVString value, optional CookieStoreSetOptions options); 23 Promise<void> set(CookieStoreSetOptions options); 15 Promise<void> set(USVString name, USVString value, 16 optional CookieStoreSetOptions options); 17 Promise<void> set(CookieStoreSetExtraOptions options); 24 18 25 Promise<void> delete(USVString name, optional CookieStoreSetOptions options); 26 Promise<void> delete(CookieStoreSetOptions options); 19 Promise<void> delete(USVString name); 20 Promise<void> delete(CookieStoreDeleteOptions options); 21 22 [Exposed=ServiceWorker] 23 Promise<void> subscribeToChanges(sequence<CookieStoreGetOptions> subscriptions); 24 25 [Exposed=ServiceWorker] 26 Promise<sequence<CookieStoreGetOptions>> getChangeSubscriptions(); 27 28 [Exposed=Window] 29 attribute EventHandler onchange; 27 30 }; 28 31 29 32 enum CookieMatchType { 30 33 "equals", 31 "starts With"34 "starts-with" 32 35 }; 33 36 … … 38 41 }; 39 42 40 dictionary CookieStoreSetOptions { 41 USVString name; 42 USVString value; 43 DOMTimeStamp? expires = null; 44 USVString domain; 45 USVString path = "/"; 46 boolean? secure; 47 boolean httpOnly = false; 43 enum CookieSameSite { 44 "strict", 45 "lax", 46 "unrestricted" 48 47 }; 49 48 49 dictionary CookieStoreSetOptions { 50 DOMTimeStamp? expires = null; 51 USVString? domain = null; 52 USVString path = "/"; 53 boolean secure = true; 54 CookieSameSite sameSite = "strict"; 55 }; 56 57 dictionary CookieStoreSetExtraOptions : CookieStoreSetOptions { 58 required USVString name; 59 required USVString value; 60 }; 61 62 dictionary CookieStoreDeleteOptions { 63 required USVString name; 64 USVString? domain = null; 65 USVString path = "/"; 66 }; 67 68 dictionary CookieListItem { 69 required USVString name; 70 USVString value; 71 USVString? domain = null; 72 USVString path = "/"; 73 DOMTimeStamp? expires = null; 74 boolean secure = true; 75 CookieSameSite sameSite = "strict"; 76 }; 77 78 typedef sequence<CookieListItem> CookieList; 79 80 [Exposed=Window, 81 SecureContext, 82 Constructor(DOMString type, optional CookieChangeEventInit eventInitDict)] 83 interface CookieChangeEvent : Event { 84 readonly attribute CookieList changed; 85 readonly attribute CookieList deleted; 86 }; 87 88 dictionary CookieChangeEventInit : EventInit { 89 CookieList changed; 90 CookieList deleted; 91 }; 92 93 [Exposed=ServiceWorker, 94 Constructor(DOMString type, optional ExtendableCookieChangeEventInit eventInitDict) 95 ] interface ExtendableCookieChangeEvent : ExtendableEvent { 96 readonly attribute CookieList changed; 97 readonly attribute CookieList deleted; 98 }; 99 100 dictionary ExtendableCookieChangeEventInit : ExtendableEventInit { 101 CookieList changed; 102 CookieList deleted; 103 }; 104 105 [SecureContext] 50 106 partial interface Window { 51 107 [Replaceable, SameObject] readonly attribute CookieStore cookieStore; … … 54 110 partial interface ServiceWorkerGlobalScope { 55 111 [Replaceable, SameObject] readonly attribute CookieStore cookieStore; 112 113 attribute EventHandler oncookiechange; 56 114 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/css-typed-om.idl
r229544 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: CSS Typed OM Level 1 (https://drafts.css-houdini.org/css-typed-om-1/) 5 1 6 [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] 2 7 interface CSSStyleValue { 3 8 stringifier; 4 [Exposed=Window] static CSSStyleValue parse( DOMString property, DOMString cssText);5 [Exposed=Window] static sequence<CSSStyleValue> parseAll( DOMString property, DOMString cssText);9 [Exposed=Window] static CSSStyleValue parse(USVString property, USVString cssText); 10 [Exposed=Window] static sequence<CSSStyleValue> parseAll(USVString property, USVString cssText); 6 11 }; 7 12 8 13 [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] 9 14 interface StylePropertyMapReadOnly { 10 iterable< DOMString, sequence<CSSStyleValue>>;11 any get( DOMString property);15 iterable<USVString, sequence<CSSStyleValue>>; 16 any get(USVString property); 12 17 /* 'any' means (undefined or CSSStyleValue) here, 13 18 see https://github.com/heycam/webidl/issues/60 */ 14 sequence<CSSStyleValue> getAll( DOMString property);15 boolean has( DOMString property);16 readonly attribute long size;19 sequence<CSSStyleValue> getAll(USVString property); 20 boolean has(USVString property); 21 readonly attribute unsigned long size; 17 22 }; 18 23 19 24 [Exposed=Window] 20 25 interface StylePropertyMap : StylePropertyMapReadOnly { 21 void set( DOMString property, (CSSStyleValue or DOMString)... values);22 void append( DOMString property, (CSSStyleValue or DOMString)... values);23 void delete( DOMString property);26 void set(USVString property, (CSSStyleValue or USVString)... values); 27 void append(USVString property, (CSSStyleValue or USVString)... values); 28 void delete(USVString property); 24 29 void clear(); 25 30 }; 26 31 27 32 partial interface Element { 28 StylePropertyMapReadOnly computedStyleMap();33 [SameObject] StylePropertyMapReadOnly computedStyleMap(); 29 34 }; 30 35 … … 33 38 }; 34 39 35 partial interface ElementCSSInlineStyle {40 partial interface mixin ElementCSSInlineStyle { 36 41 [SameObject] readonly attribute StylePropertyMap attributeStyleMap; 37 42 }; … … 46 51 }; 47 52 48 typedef ( DOMString or CSSVariableReferenceValue) CSSUnparsedSegment;49 50 [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet), 51 Constructor( DOMString variable, optional CSSUnparsedValue? fallback = null)]53 typedef (USVString or CSSVariableReferenceValue) CSSUnparsedSegment; 54 55 [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet), 56 Constructor(USVString variable, optional CSSUnparsedValue? fallback = null)] 52 57 interface CSSVariableReferenceValue { 53 attribute DOMString variable;58 attribute USVString variable; 54 59 readonly attribute CSSUnparsedValue? fallback; 55 60 }; 56 61 57 62 [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet), 58 Constructor( DOMString value)]63 Constructor(USVString value)] 59 64 interface CSSKeywordValue : CSSStyleValue { 60 attribute DOMString value;65 attribute USVString value; 61 66 }; 62 67 … … 95 100 boolean equals(CSSNumberish... value); 96 101 97 CSSUnitValue to( DOMString unit);98 CSSMathSum toSum( DOMString... units);102 CSSUnitValue to(USVString unit); 103 CSSMathSum toSum(USVString... units); 99 104 CSSNumericType type(); 100 105 101 [Exposed=Window] static CSSNumericValue parse( DOMString cssText);102 }; 103 104 [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet), 105 Constructor(double value, DOMString unit)]106 [Exposed=Window] static CSSNumericValue parse(USVString cssText); 107 }; 108 109 [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet), 110 Constructor(double value, USVString unit)] 106 111 interface CSSUnitValue : CSSNumericValue { 107 112 attribute double value; 108 readonly attribute DOMString unit;113 readonly attribute USVString unit; 109 114 }; 110 115 … … 148 153 interface CSSMathMax : CSSMathValue { 149 154 readonly attribute CSSNumericArray values; 155 }; 156 157 [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet), 158 Constructor(CSSNumberish min, CSSNumberish val, CSSNumberish max)] 159 interface CSSMathClamp : CSSMathValue { 160 readonly attribute CSSNumericValue min; 161 readonly attribute CSSNumericValue val; 162 readonly attribute CSSNumericValue max; 150 163 }; 151 164 … … 164 177 "min", 165 178 "max", 166 }; 167 168 // FIXME: Uncomment this when IDLHarness supports CSS namespaces: 169 // https://github.com/w3c/web-platform-tests/issues/7583 170 /* 179 "clamp", 180 }; 181 171 182 partial namespace CSS { 172 183 CSSUnitValue number(double value); … … 217 228 CSSUnitValue fr(double value); 218 229 }; 219 */220 230 221 231 [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet), … … 293 303 294 304 [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet), 295 Constructor(DOMMatrixReadOnly matrix, optional CSSMatrixComponentOptions options )]305 Constructor(DOMMatrixReadOnly matrix, optional CSSMatrixComponentOptions options = {})] 296 306 interface CSSMatrixComponent : CSSTransformComponent { 297 307 attribute DOMMatrix matrix; … … 302 312 }; 303 313 304 [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),305 Constructor(CSSNumericValue x, CSSNumericValue y)]306 interface CSSPositionValue : CSSStyleValue {307 attribute CSSNumericValue x;308 attribute CSSNumericValue y;309 };310 311 314 [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] 312 315 interface CSSImageValue : CSSStyleValue { -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/encoding.idl
r230285 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Encoding Standard (https://encoding.spec.whatwg.org/) 5 6 interface mixin TextDecoderCommon { 7 readonly attribute DOMString encoding; 8 readonly attribute boolean fatal; 9 readonly attribute boolean ignoreBOM; 10 }; 11 1 12 dictionary TextDecoderOptions { 2 13 boolean fatal = false; … … 8 19 }; 9 20 10 [Constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options ),21 [Constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {}), 11 22 Exposed=(Window,Worker)] 12 23 interface TextDecoder { 24 USVString decode(optional BufferSource input, optional TextDecodeOptions options = {}); 25 }; 26 TextDecoder includes TextDecoderCommon; 27 28 interface mixin TextEncoderCommon { 13 29 readonly attribute DOMString encoding; 14 readonly attribute boolean fatal; 15 readonly attribute boolean ignoreBOM; 16 USVString decode(optional BufferSource input, optional TextDecodeOptions options); 30 }; 31 32 dictionary TextEncoderEncodeIntoResult { 33 unsigned long long read; 34 unsigned long long written; 17 35 }; 18 36 … … 20 38 Exposed=(Window,Worker)] 21 39 interface TextEncoder { 22 readonly attribute DOMString encoding;23 40 [NewObject] Uint8Array encode(optional USVString input = ""); 41 TextEncoderEncodeIntoResult encodeInto(USVString source, Uint8Array destination); 24 42 }; 43 TextEncoder includes TextEncoderCommon; 44 45 interface mixin GenericTransformStream { 46 readonly attribute ReadableStream readable; 47 readonly attribute WritableStream writable; 48 }; 49 50 [Constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options), 51 Exposed=(Window,Worker)] 52 interface TextDecoderStream { 53 }; 54 TextDecoderStream includes TextDecoderCommon; 55 TextDecoderStream includes GenericTransformStream; 56 57 [Constructor, 58 Exposed=(Window,Worker)] 59 interface TextEncoderStream { 60 }; 61 TextEncoderStream includes TextEncoderCommon; 62 TextEncoderStream includes GenericTransformStream; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/encrypted-media.idl
r229544 r249731 1 // Encrypted Media Extensions WebIDL 2 // 3 // NOTE: Please update the link below to the specification version from 4 // which this IDL was extracted. 5 // 6 // https://www.w3.org/TR/2016/WD-encrypted-media-20160610/ 7 // + commit 5499821932391ae2c2e53756ae7ab9fae89d5863 8 // 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Encrypted Media Extensions (https://w3c.github.io/encrypted-media/) 9 5 6 [Exposed=Window] 10 7 partial interface Navigator { 11 Promise<MediaKeySystemAccess> requestMediaKeySystemAccess (DOMString keySystem, sequence<MediaKeySystemConfiguration> supportedConfigurations); 8 [SecureContext] Promise<MediaKeySystemAccess> requestMediaKeySystemAccess(DOMString keySystem, 9 sequence<MediaKeySystemConfiguration> supportedConfigurations); 12 10 }; 13 11 … … 19 17 20 18 dictionary MediaKeySystemConfiguration { 21 22 23 24 25 26 27 19 DOMString label = ""; 20 sequence<DOMString> initDataTypes = []; 21 sequence<MediaKeySystemMediaCapability> audioCapabilities = []; 22 sequence<MediaKeySystemMediaCapability> videoCapabilities = []; 23 MediaKeysRequirement distinctiveIdentifier = "optional"; 24 MediaKeysRequirement persistentState = "optional"; 25 sequence<DOMString> sessionTypes; 28 26 }; 29 27 30 28 dictionary MediaKeySystemMediaCapability { 31 32 29 DOMString contentType = ""; 30 DOMString robustness = ""; 33 31 }; 34 32 33 [Exposed=Window, 34 SecureContext] 35 35 interface MediaKeySystemAccess { 36 readonly 37 MediaKeySystemConfiguration getConfiguration 38 Promise<MediaKeys> createMediaKeys 36 readonly attribute DOMString keySystem; 37 MediaKeySystemConfiguration getConfiguration(); 38 Promise<MediaKeys> createMediaKeys(); 39 39 }; 40 40 41 41 enum MediaKeySessionType { 42 42 "temporary", 43 "persistent-usage-record",44 43 "persistent-license" 45 44 }; 46 45 46 [Exposed=Window, 47 SecureContext] 47 48 interface MediaKeys { 48 MediaKeySession createSession 49 Promise<boolean> setServerCertificate 49 MediaKeySession createSession(optional MediaKeySessionType sessionType = "temporary"); 50 Promise<boolean> setServerCertificate(BufferSource serverCertificate); 50 51 }; 51 52 53 [Exposed=Window, 54 SecureContext] 52 55 interface MediaKeySession : EventTarget { 53 readonly attribute DOMString sessionId; 54 readonly attribute unrestricted double expiration; 55 readonly attribute Promise<void> closed; 56 readonly attribute MediaKeyStatusMap keyStatuses; 57 attribute EventHandler onkeystatuseschange; 58 attribute EventHandler onmessage; 59 Promise<void> generateRequest (DOMString initDataType, BufferSource initData); 60 Promise<boolean> load (DOMString sessionId); 61 Promise<void> update (BufferSource response); 62 Promise<void> close (); 63 Promise<void> remove (); 56 readonly attribute DOMString sessionId; 57 readonly attribute unrestricted double expiration; 58 readonly attribute Promise<void> closed; 59 readonly attribute MediaKeyStatusMap keyStatuses; 60 attribute EventHandler onkeystatuseschange; 61 attribute EventHandler onmessage; 62 Promise<void> generateRequest(DOMString initDataType, 63 BufferSource initData); 64 Promise<boolean> load(DOMString sessionId); 65 Promise<void> update(BufferSource response); 66 Promise<void> close(); 67 Promise<void> remove(); 64 68 }; 65 69 70 [Exposed=Window, 71 SecureContext] 66 72 interface MediaKeyStatusMap { 67 iterable<BufferSource, MediaKeyStatus>;68 readonly 69 boolean has 70 any get 73 iterable<BufferSource, MediaKeyStatus>; 74 readonly attribute unsigned long size; 75 boolean has(BufferSource keyId); 76 any get(BufferSource keyId); 71 77 }; 72 78 … … 88 94 }; 89 95 90 [Constructor(DOMString type, MediaKeyMessageEventInit eventInitDict)] 96 [Exposed=Window, 97 SecureContext, 98 Constructor(DOMString type, MediaKeyMessageEventInit eventInitDict)] 91 99 interface MediaKeyMessageEvent : Event { 92 readonly 93 readonly 100 readonly attribute MediaKeyMessageType messageType; 101 readonly attribute ArrayBuffer message; 94 102 }; 95 103 96 104 dictionary MediaKeyMessageEventInit : EventInit { 97 98 105 required MediaKeyMessageType messageType; 106 required ArrayBuffer message; 99 107 }; 100 108 101 // partial interface HTMLMediaElement : EventTarget { 109 [Exposed=Window] 102 110 partial interface HTMLMediaElement { 103 readonly attribute MediaKeys? mediaKeys; 104 attribute EventHandler onencrypted; 105 attribute EventHandler onwaitingforkey; 106 Promise<void> setMediaKeys (MediaKeys? mediaKeys); 111 [SecureContext] 112 readonly attribute MediaKeys? mediaKeys; 113 attribute EventHandler onencrypted; 114 attribute EventHandler onwaitingforkey; 115 [SecureContext] Promise<void> setMediaKeys(MediaKeys? mediaKeys); 107 116 }; 108 117 109 [Constructor(DOMString type, optional MediaEncryptedEventInit eventInitDict)] 118 [Exposed=Window, 119 Constructor(DOMString type, optional MediaEncryptedEventInit eventInitDict)] 110 120 interface MediaEncryptedEvent : Event { 111 readonly 112 readonly 121 readonly attribute DOMString initDataType; 122 readonly attribute ArrayBuffer? initData; 113 123 }; 114 124 115 125 dictionary MediaEncryptedEventInit : EventInit { 116 117 126 DOMString initDataType = ""; 127 ArrayBuffer? initData = null; 118 128 }; 119 -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/entries-api.idl
r229544 r249731 1 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content of this file was automatically extracted from the File and Directory Entries API spec. 3 // See https://wicg.github.io/entries-api/ 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: File and Directory Entries API (https://wicg.github.io/entries-api/) 4 5 5 6 partial interface File { … … 32 33 FileSystemDirectoryReader createReader(); 33 34 void getFile(optional USVString? path, 34 optional FileSystemFlags options ,35 optional FileSystemFlags options = {}, 35 36 optional FileSystemEntryCallback successCallback, 36 37 optional ErrorCallback errorCallback); 37 38 void getDirectory(optional USVString? path, 38 optional FileSystemFlags options ,39 optional FileSystemFlags options = {}, 39 40 optional FileSystemEntryCallback successCallback, 40 41 optional ErrorCallback errorCallback); -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/fetch.idl
r239693 r249731 28 28 typedef (Request or USVString) RequestInfo; 29 29 30 [Constructor(RequestInfo input, optional RequestInit init ),30 [Constructor(RequestInfo input, optional RequestInit init = {}), 31 31 Exposed=(Window,Worker)] 32 32 interface Request { … … 73 73 enum RequestCache { "default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached" }; 74 74 enum RequestRedirect { "follow", "error", "manual" }; 75 [Constructor(optional BodyInit? body = null, optional ResponseInit init ), Exposed=(Window,Worker)]75 [Constructor(optional BodyInit? body = null, optional ResponseInit init = {}), Exposed=(Window,Worker)] 76 76 interface Response { 77 77 [NewObject] static Response error(); -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/fullscreen.idl
r220772 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Fullscreen API Standard (https://fullscreen.spec.whatwg.org/) 5 6 enum FullscreenNavigationUI { 7 "auto", 8 "show", 9 "hide" 10 }; 11 12 dictionary FullscreenOptions { 13 FullscreenNavigationUI navigationUI = "auto"; 14 }; 15 1 16 partial interface Element { 2 Promise<void> requestFullscreen( );17 Promise<void> requestFullscreen(optional FullscreenOptions options); 3 18 4 19 attribute EventHandler onfullscreenchange; … … 16 31 }; 17 32 18 partial interface DocumentOrShadowRoot {33 partial interface mixin DocumentOrShadowRoot { 19 34 [LenientSetter] readonly attribute Element? fullscreenElement; 20 35 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/gamepad.idl
r229544 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Gamepad (https://w3c.github.io/gamepad/) 5 6 [Exposed=Window] 1 7 interface Gamepad { 2 readonly attribute DOMStringid;3 readonly attribute longindex;4 readonly attribute booleanconnected;5 readonly attribute DOMHighResTimeStamptimestamp;6 readonly attribute GamepadMappingTypemapping;7 readonly attribute FrozenArray<double>axes;8 8 readonly attribute DOMString id; 9 readonly attribute long index; 10 readonly attribute boolean connected; 11 readonly attribute DOMHighResTimeStamp timestamp; 12 readonly attribute GamepadMappingType mapping; 13 readonly attribute FrozenArray<double> axes; 14 readonly attribute FrozenArray<GamepadButton> buttons; 9 15 }; 10 16 17 [Exposed=Window] 11 18 interface GamepadButton { 12 13 14 readonly attribute doublevalue;19 readonly attribute boolean pressed; 20 readonly attribute boolean touched; 21 readonly attribute double value; 15 22 }; 16 23 17 24 enum GamepadMappingType { 18 19 25 "", 26 "standard", 20 27 }; 21 28 29 [Exposed=Window] 22 30 partial interface Navigator { 23 31 sequence<Gamepad?> getGamepads(); 24 32 }; 25 33 26 [Constructor(GamepadEventInit eventInitDict)] 34 [Constructor(DOMString type, GamepadEventInit eventInitDict), Exposed=Window] 35 27 36 interface GamepadEvent : Event { 28 37 [SameObject] readonly attribute Gamepad gamepad; 29 38 }; 30 39 31 40 dictionary GamepadEventInit : EventInit { 32 41 required Gamepad gamepad; 33 42 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/geolocation-sensor.idl
r229544 r249731 1 [Constructor(optional GeolocationSensorOptions options), SecureContext, Exposed=Window] 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Geolocation Sensor (https://wicg.github.io/geolocation-sensor/) 5 6 [Constructor(optional GeolocationSensorOptions options = {}), 7 SecureContext, 8 Exposed=(DedicatedWorker, Window)] 2 9 interface GeolocationSensor : Sensor { 3 static Promise<GeolocationSensorReading> read(optional ReadOptions readOptions );10 static Promise<GeolocationSensorReading> read(optional ReadOptions readOptions = {}); 4 11 readonly attribute unrestricted double? latitude; 5 12 readonly attribute unrestricted double? longitude; … … 29 36 double? speed; 30 37 }; 38 39 dictionary GeolocationReadingValues { 40 required double? latitude; 41 required double? longitude; 42 required double? altitude; 43 required double? accuracy; 44 required double? altitudeAccuracy; 45 required double? heading; 46 required double? speed; 47 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/geometry.idl
r231325 r249731 1 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content of this file was automatically extracted from the Geometry Interfaces spec. 3 // See https://drafts.fxtf.org/geometry/ 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Geometry Interfaces Module Level 1 (https://drafts.fxtf.org/geometry/) 4 5 5 6 [Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, … … 15 16 readonly attribute unrestricted double w; 16 17 17 DOMPoint matrixTransform(optional DOMMatrixInit matrix);18 [NewObject] DOMPoint matrixTransform(optional DOMMatrixInit matrix); 18 19 19 20 [Default] object toJSON(); … … 81 82 }; 82 83 84 [Exposed=Window] 83 85 interface DOMRectList { 84 86 readonly attribute unsigned long length; … … 156 158 optional unrestricted double originY = 0, 157 159 optional unrestricted double originZ = 0); 160 [NewObject] DOMMatrix scaleNonUniform(optional unrestricted double scaleX = 1, 161 optional unrestricted double scaleY = 1); 158 162 [NewObject] DOMMatrix scale3d(optional unrestricted double scale = 1, 159 163 optional unrestricted double originX = 0, -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/gyroscope.idl
r229544 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Gyroscope (https://w3c.github.io/gyroscope/) 5 1 6 [Constructor(optional GyroscopeSensorOptions sensorOptions), SecureContext, Exposed=Window] 2 7 interface Gyroscope : Sensor { … … 11 16 GyroscopeLocalCoordinateSystem referenceFrame = "device"; 12 17 }; 18 19 dictionary GyroscopeReadingValues { 20 required double? x; 21 required double? y; 22 required double? z; 23 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/hr-time.idl
r229544 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: High Resolution Time Level 2 (https://w3c.github.io/hr-time/) 5 1 6 typedef double DOMHighResTimeStamp; 2 7 … … 5 10 DOMHighResTimeStamp now(); 6 11 readonly attribute DOMHighResTimeStamp timeOrigin; 7 [Default] object 12 [Default] object toJSON(); 8 13 }; 9 14 10 partial interface WindowOrWorkerGlobalScope { 11 [Replaceable] 12 readonly attribute Performance performance; 15 partial interface mixin WindowOrWorkerGlobalScope { 16 [Replaceable] readonly attribute Performance performance; 13 17 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/intersection-observer.idl
r235889 r249731 21 21 interface IntersectionObserverEntry { 22 22 readonly attribute DOMHighResTimeStamp time; 23 readonly attribute DOMRectReadOnly rootBounds;23 readonly attribute DOMRectReadOnly? rootBounds; 24 24 readonly attribute DOMRectReadOnly boundingClientRect; 25 25 readonly attribute DOMRectReadOnly intersectionRect; … … 31 31 dictionary IntersectionObserverEntryInit { 32 32 required DOMHighResTimeStamp time; 33 required DOMRectInit rootBounds;33 required DOMRectInit? rootBounds; 34 34 required DOMRectInit boundingClientRect; 35 35 required DOMRectInit intersectionRect; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/magnetometer.idl
r229544 r249731 1 [Constructor(optional MagnetometerSensorOptions sensorOptions), SecureContext, 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Magnetometer (https://w3c.github.io/magnetometer/) 5 6 [Constructor(optional MagnetometerSensorOptions sensorOptions = {}), SecureContext, 2 7 Exposed=Window] 3 8 interface Magnetometer : Sensor { … … 7 12 }; 8 13 9 enum LocalCoordinateSystem { "device", "screen" };14 enum MagnetometerLocalCoordinateSystem { "device", "screen" }; 10 15 11 16 dictionary MagnetometerSensorOptions : SensorOptions { 12 LocalCoordinateSystem referenceFrame = "device";17 MagnetometerLocalCoordinateSystem referenceFrame = "device"; 13 18 }; 14 19 15 [Constructor(optional MagnetometerSensorOptions sensorOptions ), SecureContext,20 [Constructor(optional MagnetometerSensorOptions sensorOptions = {}), SecureContext, 16 21 Exposed=Window] 17 22 interface UncalibratedMagnetometer : Sensor { … … 23 28 readonly attribute double? zBias; 24 29 }; 30 31 dictionary MagnetometerReadingValues { 32 required double? x; 33 required double? y; 34 required double? z; 35 }; 36 37 dictionary UncalibratedMagnetometerReadingValues { 38 required double? x; 39 required double? y; 40 required double? z; 41 required double? xBias; 42 required double? yBias; 43 required double? zBias; 44 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/orientation-sensor.idl
r229544 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Orientation Sensor (https://w3c.github.io/orientation-sensor/) 5 1 6 typedef (Float32Array or Float64Array or DOMMatrix) RotationMatrixType; 2 7 … … 7 12 }; 8 13 9 enum LocalCoordinateSystem { "device", "screen" };14 enum OrientationSensorLocalCoordinateSystem { "device", "screen" }; 10 15 11 dictionary OrientationSensorOptions : SensorOptions 12 LocalCoordinateSystem referenceFrame = "device";16 dictionary OrientationSensorOptions : SensorOptions { 17 OrientationSensorLocalCoordinateSystem referenceFrame = "device"; 13 18 }; 14 19 15 [Constructor(optional OrientationSensorOptions sensorOptions ), SecureContext, Exposed=Window]20 [Constructor(optional OrientationSensorOptions sensorOptions = {}), SecureContext, Exposed=Window] 16 21 interface AbsoluteOrientationSensor : OrientationSensor { 17 22 }; 18 23 19 [Constructor(optional OrientationSensorOptions sensorOptions ), SecureContext, Exposed=Window]24 [Constructor(optional OrientationSensorOptions sensorOptions = {}), SecureContext, Exposed=Window] 20 25 interface RelativeOrientationSensor : OrientationSensor { 21 26 }; 27 28 dictionary AbsoluteOrientationReadingValues { 29 required FrozenArray<double>? quaternion; 30 }; 31 32 dictionary RelativeOrientationReadingValues : AbsoluteOrientationReadingValues { 33 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/payment-handler.idl
r229544 r249731 1 [SecureContext, 2 Exposed=(Window,Worker)] 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Payment Handler API (https://w3c.github.io/payment-handler/) 5 6 partial interface ServiceWorkerRegistration { 7 [SameObject] readonly attribute PaymentManager paymentManager; 8 }; 9 10 [SecureContext, Exposed=(Window,Worker)] 3 11 interface PaymentManager { 4 [SameObject] 5 readonly attribute PaymentInstruments instruments; 6 [Exposed=Window] static Promise<PermissionState> requestPermission(); 12 [SameObject] readonly attribute PaymentInstruments instruments; 13 attribute DOMString userHint; 7 14 }; 8 [SecureContext, 9 Exposed=(Window,Worker)]15 16 [SecureContext, Exposed=(Window,Worker)] 10 17 interface PaymentInstruments { 11 Promise<boolean> 12 Promise< PaymentInstrument>get(DOMString instrumentKey);18 Promise<boolean> delete(DOMString instrumentKey); 19 Promise<any> get(DOMString instrumentKey); 13 20 Promise<sequence<DOMString>> keys(); 14 Promise<boolean> has(DOMString instrumentKey); 15 Promise<void> set(DOMString instrumentKey, 16 PaymentInstrument details); 17 Promise<void> clear(); 21 Promise<boolean> has(DOMString instrumentKey); 22 Promise<void> set(DOMString instrumentKey, PaymentInstrument details); 23 Promise<void> clear(); 18 24 }; 25 19 26 dictionary PaymentInstrument { 20 required DOMStringname;21 22 sequence<DOMString> enabledMethods;23 objectcapabilities;27 required DOMString name; 28 sequence<ImageObject> icons; 29 DOMString method; 30 object capabilities; 24 31 }; 32 25 33 dictionary ImageObject { 26 34 required USVString src; 27 28 35 DOMString sizes; 36 DOMString type; 29 37 }; 30 [Constructor(DOMString type, CanMakePaymentEventInit eventInitDict), 31 Exposed=ServiceWorker] 38 39 partial interface ServiceWorkerGlobalScope { 40 attribute EventHandler oncanmakepayment; 41 }; 42 43 [Constructor(DOMString type, CanMakePaymentEventInit eventInitDict), Exposed=ServiceWorker] 32 44 interface CanMakePaymentEvent : ExtendableEvent { 33 readonly attribute USVString topLevelOrigin; 34 readonly attribute USVString paymentRequestOrigin; 35 readonly attribute FrozenArray<PaymentMethodData> methodData; 36 readonly attribute FrozenArray<PaymentDetailsModifier> modifiers; 37 void respondWith(Promise<boolean> canMakePaymentResponse); 45 readonly attribute USVString topOrigin; 46 readonly attribute USVString paymentRequestOrigin; 47 readonly attribute FrozenArray<PaymentMethodData> methodData; 48 void respondWith(Promise<boolean> canMakePaymentResponse); 38 49 }; 50 39 51 dictionary CanMakePaymentEventInit : ExtendableEventInit { 40 USVString topLevelOrigin; 41 USVString paymentRequestOrigin; 42 sequence<PaymentMethodData> methodData; 43 sequence<PaymentDetailsModifier> modifiers; 52 USVString topOrigin; 53 USVString paymentRequestOrigin; 54 sequence<PaymentMethodData> methodData; 44 55 }; 45 [Constructor(DOMString type, PaymentRequestEventInit eventInitDict), 46 Exposed=ServiceWorker] 56 57 partial interface ServiceWorkerGlobalScope { 58 attribute EventHandler onpaymentrequest; 59 }; 60 61 dictionary PaymentMethodChangeResponse { 62 DOMString error; 63 PaymentCurrencyAmount total; 64 FrozenArray<PaymentDetailsModifier> modifiers; 65 object paymentMethodErrors; 66 }; 67 68 [Constructor(DOMString type, PaymentRequestEventInit eventInitDict), Exposed=ServiceWorker] 47 69 interface PaymentRequestEvent : ExtendableEvent { 48 readonly attribute USVString topLevelOrigin; 49 readonly attribute USVString paymentRequestOrigin; 50 readonly attribute DOMString paymentRequestId; 51 readonly attribute FrozenArray<PaymentMethodData> methodData; 52 readonly attribute object total; 53 readonly attribute FrozenArray<PaymentDetailsModifier> modifiers; 54 readonly attribute DOMString instrumentKey; 55 Promise<WindowClient?> openWindow(USVString url); 56 void respondWith(Promise<PaymentHandlerResponse> handlerResponse); 70 readonly attribute USVString topOrigin; 71 readonly attribute USVString paymentRequestOrigin; 72 readonly attribute DOMString paymentRequestId; 73 readonly attribute FrozenArray<PaymentMethodData> methodData; 74 readonly attribute object total; 75 readonly attribute FrozenArray<PaymentDetailsModifier> modifiers; 76 readonly attribute DOMString instrumentKey; 77 readonly attribute boolean requestBillingAddress; 78 Promise<WindowClient?> openWindow(USVString url); 79 Promise<PaymentMethodChangeResponse?> changePaymentMethod(DOMString methodName, optional object? methodDetails = null); 80 void respondWith(Promise<PaymentHandlerResponse> handlerResponsePromise); 57 81 }; 82 58 83 dictionary PaymentRequestEventInit : ExtendableEventInit { 59 USVString topLevelOrigin;60 USVStringpaymentRequestOrigin;61 DOMStringpaymentRequestId;62 sequence<PaymentMethodData>methodData;63 PaymentCurrencyAmounttotal;64 65 DOMStringinstrumentKey;84 USVString topOrigin; 85 USVString paymentRequestOrigin; 86 DOMString paymentRequestId; 87 sequence<PaymentMethodData> methodData; 88 PaymentCurrencyAmount total; 89 sequence<PaymentDetailsModifier> modifiers; 90 DOMString instrumentKey; 66 91 }; 92 67 93 dictionary PaymentHandlerResponse { 68 69 objectdetails;94 DOMString methodName; 95 object details; 70 96 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/payment-request.idl
r229544 r249731 1 [Constructor(sequence<PaymentMethodData> methodData, PaymentDetailsInit details, optional PaymentOptions options), 2 SecureContext, 3 Exposed=Window] 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Payment Request API (https://w3c.github.io/payment-request/) 5 6 [SecureContext, Exposed=Window] 4 7 interface PaymentRequest : EventTarget { 5 Promise<PaymentResponse> show(); 8 constructor( 9 sequence<PaymentMethodData> methodData, 10 PaymentDetailsInit details, 11 optional PaymentOptions options = {} 12 ); 13 [NewObject] 14 Promise<PaymentResponse> show(optional Promise<PaymentDetailsUpdate> detailsPromise); 15 [NewObject] 6 16 Promise<void> abort(); 17 [NewObject] 7 18 Promise<boolean> canMakePayment(); 19 [NewObject] 20 Promise<boolean> hasEnrolledInstrument(); 8 21 9 22 readonly attribute DOMString id; … … 12 25 readonly attribute PaymentShippingType? shippingType; 13 26 27 attribute EventHandler onmerchantvalidation; 14 28 attribute EventHandler onshippingaddresschange; 15 16 29 attribute EventHandler onshippingoptionchange; 17 }; 30 attribute EventHandler onpaymentmethodchange; 31 }; 32 18 33 dictionary PaymentMethodData { 19 34 required DOMString supportedMethods; 20 35 object data; 21 36 }; 37 22 38 dictionary PaymentCurrencyAmount { 23 39 required DOMString currency; 24 40 required DOMString value; 25 // Note: currencySystem is "at risk" of being removed! 26 DOMString currencySystem = "urn:iso:std:iso:4217"; 27 }; 41 }; 42 28 43 dictionary PaymentDetailsBase { 29 44 sequence<PaymentItem> displayItems; … … 31 46 sequence<PaymentDetailsModifier> modifiers; 32 47 }; 48 33 49 dictionary PaymentDetailsInit : PaymentDetailsBase { 34 50 DOMString id; 35 51 required PaymentItem total; 36 52 }; 53 37 54 dictionary PaymentDetailsUpdate : PaymentDetailsBase { 38 55 DOMString error; 39 56 PaymentItem total; 40 }; 57 AddressErrors shippingAddressErrors; 58 PayerErrors payerErrors; 59 object paymentMethodErrors; 60 }; 61 41 62 dictionary PaymentDetailsModifier { 42 63 required DOMString supportedMethods; … … 45 66 object data; 46 67 }; 68 47 69 enum PaymentShippingType { 48 70 "shipping", … … 50 72 "pickup" 51 73 }; 74 52 75 dictionary PaymentOptions { 53 76 boolean requestPayerName = false; 77 boolean requestBillingAddress = false; 54 78 boolean requestPayerEmail = false; 55 79 boolean requestPayerPhone = false; … … 57 81 PaymentShippingType shippingType = "shipping"; 58 82 }; 83 59 84 dictionary PaymentItem { 60 85 required DOMString label; … … 62 87 boolean pending = false; 63 88 }; 64 [SecureContext, 65 Exposed=Window]89 90 [SecureContext, Exposed=(Window)] 66 91 interface PaymentAddress { 67 92 [Default] object toJSON(); 93 readonly attribute DOMString city; 68 94 readonly attribute DOMString country; 95 readonly attribute DOMString dependentLocality; 96 readonly attribute DOMString organization; 97 readonly attribute DOMString phone; 98 readonly attribute DOMString postalCode; 99 readonly attribute DOMString recipient; 100 readonly attribute DOMString region; 101 readonly attribute DOMString sortingCode; 69 102 readonly attribute FrozenArray<DOMString> addressLine; 70 readonly attribute DOMString region; 71 readonly attribute DOMString regionCode; 72 readonly attribute DOMString city; 73 readonly attribute DOMString dependentLocality; 74 readonly attribute DOMString postalCode; 75 readonly attribute DOMString sortingCode; 76 readonly attribute DOMString languageCode; 77 readonly attribute DOMString organization; 78 readonly attribute DOMString recipient; 79 readonly attribute DOMString phone; 80 }; 103 }; 104 105 dictionary AddressInit { 106 DOMString country; 107 sequence<DOMString> addressLine; 108 DOMString region; 109 DOMString city; 110 DOMString dependentLocality; 111 DOMString postalCode; 112 DOMString sortingCode; 113 DOMString organization; 114 DOMString recipient; 115 DOMString phone; 116 }; 117 118 dictionary AddressErrors { 119 DOMString addressLine; 120 DOMString city; 121 DOMString country; 122 DOMString dependentLocality; 123 DOMString organization; 124 DOMString phone; 125 DOMString postalCode; 126 DOMString recipient; 127 DOMString region; 128 DOMString sortingCode; 129 }; 130 81 131 dictionary PaymentShippingOption { 82 132 required DOMString id; … … 85 135 boolean selected = false; 86 136 }; 137 87 138 enum PaymentComplete { 88 139 "fail", … … 90 141 "unknown" 91 142 }; 92 [SecureContext, 93 94 interface PaymentResponse {143 144 [SecureContext, Exposed=Window] 145 interface PaymentResponse : EventTarget { 95 146 [Default] object toJSON(); 96 147 … … 104 155 readonly attribute DOMString? payerPhone; 105 156 157 [NewObject] 106 158 Promise<void> complete(optional PaymentComplete result = "unknown"); 107 }; 108 [Constructor(DOMString type, optional PaymentRequestUpdateEventInit eventInitDict), 109 SecureContext, 110 Exposed=Window] 159 [NewObject] 160 Promise<void> retry(optional PaymentValidationErrors errorFields = {}); 161 162 attribute EventHandler onpayerdetailchange; 163 }; 164 165 dictionary PaymentValidationErrors { 166 PayerErrors payer; 167 AddressErrors shippingAddress; 168 DOMString error; 169 object paymentMethod; 170 }; 171 172 dictionary PayerErrors { 173 DOMString email; 174 DOMString name; 175 DOMString phone; 176 }; 177 178 [SecureContext, Exposed=Window] 179 interface MerchantValidationEvent : Event { 180 constructor(DOMString type, optional MerchantValidationEventInit eventInitDict = {}); 181 readonly attribute DOMString methodName; 182 readonly attribute USVString validationURL; 183 void complete(Promise<any> merchantSessionPromise); 184 }; 185 186 dictionary MerchantValidationEventInit : EventInit { 187 DOMString methodName = ""; 188 USVString validationURL = ""; 189 }; 190 191 [SecureContext, Exposed=Window] 192 interface PaymentMethodChangeEvent : PaymentRequestUpdateEvent { 193 constructor(DOMString type, optional PaymentMethodChangeEventInit eventInitDict = {}); 194 readonly attribute DOMString methodName; 195 readonly attribute object? methodDetails; 196 }; 197 198 dictionary PaymentMethodChangeEventInit : PaymentRequestUpdateEventInit { 199 DOMString methodName = ""; 200 object? methodDetails = null; 201 }; 202 203 [SecureContext, Exposed=Window] 111 204 interface PaymentRequestUpdateEvent : Event { 205 constructor(DOMString type, optional PaymentRequestUpdateEventInit eventInitDict = {}); 112 206 void updateWith(Promise<PaymentDetailsUpdate> detailsPromise); 113 207 }; 114 dictionary PaymentRequestUpdateEventInit : EventInit { 115 };208 209 dictionary PaymentRequestUpdateEventInit : EventInit {}; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/proximity.idl
r229544 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Proximity Sensor (https://w3c.github.io/proximity/) 5 1 6 [Constructor(optional SensorOptions sensorOptions), SecureContext, Exposed=Window] 2 7 interface ProximitySensor : Sensor { … … 5 10 readonly attribute boolean? near; 6 11 }; 12 13 dictionary ProximityReadingValues { 14 required double? distance; 15 required double? max; 16 required boolean? near; 17 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/screen-orientation.idl
r229544 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: The Screen Orientation API (https://w3c.github.io/screen-orientation/) 5 1 6 partial interface Screen { 2 [SameObject] 3 readonly attribute ScreenOrientation orientation; 7 [SameObject] readonly attribute ScreenOrientation orientation; 4 8 }; 9 5 10 [Exposed=Window] 6 11 interface ScreenOrientation : EventTarget { 7 8 voidunlock();9 10 readonly attribute unsigned shortangle;11 attribute EventHandleronchange;12 Promise<void> lock(OrientationLockType orientation); 13 void unlock(); 14 readonly attribute OrientationType type; 15 readonly attribute unsigned short angle; 16 attribute EventHandler onchange; 12 17 }; 18 19 enum OrientationLockType { 20 "any", 21 "natural", 22 "landscape", 23 "portrait", 24 "portrait-primary", 25 "portrait-secondary", 26 "landscape-primary", 27 "landscape-secondary" 28 }; 29 13 30 enum OrientationType { 14 15 16 17 31 "portrait-primary", 32 "portrait-secondary", 33 "landscape-primary", 34 "landscape-secondary" 18 35 }; 19 enum OrientationLockType {20 "any",21 "natural",22 "landscape",23 "portrait",24 "portrait-primary",25 "portrait-secondary",26 "landscape-primary",27 "landscape-secondary"28 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/selection-api.idl
r229544 r249731 1 // http://w3c.github.io/selection-api/#selection-interface 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Selection API (https://w3c.github.io/selection-api/) 5 6 [Exposed=Window] 2 7 interface Selection { 3 readonly attribute Node? 8 readonly attribute Node? anchorNode; 4 9 readonly attribute unsigned long anchorOffset; 5 readonly attribute Node? 10 readonly attribute Node? focusNode; 6 11 readonly attribute unsigned long focusOffset; 7 readonly attribute boolean 12 readonly attribute boolean isCollapsed; 8 13 readonly attribute unsigned long rangeCount; 9 readonly attribute DOMString type; 10 Range getRangeAt(unsigned long index); 11 void addRange(Range range); 12 void removeRange(Range range); 13 void removeAllRanges(); 14 void empty(); 15 void collapse(Node? node, optional unsigned long offset = 0); 16 void setPosition(Node? node, optional unsigned long offset = 0); 17 void collapseToStart(); 18 void collapseToEnd(); 19 void extend(Node node, optional unsigned long offset = 0); 20 void setBaseAndExtent(Node anchorNode, 21 unsigned long anchorOffset, 22 Node focusNode, 23 unsigned long focusOffset); 24 void selectAllChildren(Node node); 14 readonly attribute DOMString type; 15 Range getRangeAt(unsigned long index); 16 void addRange(Range range); 17 void removeRange(Range range); 18 void removeAllRanges(); 19 void empty(); 20 void collapse(Node? node, optional unsigned long offset = 0); 21 void setPosition(Node? node, optional unsigned long offset = 0); 22 void collapseToStart(); 23 void collapseToEnd(); 24 void extend(Node node, optional unsigned long offset = 0); 25 void setBaseAndExtent(Node anchorNode, unsigned long anchorOffset, Node focusNode, unsigned long focusOffset); 26 void selectAllChildren(Node node); 25 27 [CEReactions] 26 void deleteFromDocument(); 27 boolean containsNode(Node node, 28 optional boolean allowPartialContainment = false); 28 void deleteFromDocument(); 29 boolean containsNode(Node node, optional boolean allowPartialContainment = false); 29 30 stringifier DOMString (); 30 31 }; … … 38 39 }; 39 40 40 partial interface GlobalEventHandlers {41 partial interface mixin GlobalEventHandlers { 41 42 attribute EventHandler onselectstart; 42 43 attribute EventHandler onselectionchange; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/storage.idl
r229544 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Storage Standard (https://storage.spec.whatwg.org/) 5 1 6 [SecureContext] 2 7 interface mixin NavigatorStorage { 3 readonly attribute StorageManager storage;8 [SameObject] readonly attribute StorageManager storage; 4 9 }; 5 10 Navigator includes NavigatorStorage; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/uievents.idl
r229544 r249731 1 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content of this file was automatically extracted from the UI Events spec. 3 // See https://w3c.github.io/uievents/ 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: UI Events (https://w3c.github.io/uievents/) 4 5 5 6 [Constructor(DOMString type, optional UIEventInit eventInitDict), Exposed=Window] … … 96 97 readonly attribute DOMString? data; 97 98 readonly attribute boolean isComposing; 99 readonly attribute DOMString inputType; 98 100 }; 99 101 … … 101 103 DOMString? data = ""; 102 104 boolean isComposing = false; 105 DOMString inputType = ""; 103 106 }; 104 107 -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/url.idl
r229544 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: URL Standard (https://url.spec.whatwg.org/) 5 1 6 [Constructor(USVString url, optional USVString base), 2 7 Exposed=(Window,Worker), -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/wake-lock.idl
r229544 r249731 1 enum WakeLockType { 2 "screen", 3 "system" 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Wake Lock API (https://w3c.github.io/wake-lock/) 5 6 dictionary WakeLockPermissionDescriptor : PermissionDescriptor { 7 WakeLockType type; 4 8 }; 5 9 6 partial interface Navigator { 7 [SecureContext] Promise<WakeLock> getWakeLock(WakeLockType type); 10 enum WakeLockType { "screen", "system" }; 11 12 [SecureContext, Exposed=(DedicatedWorker, Window)] 13 interface WakeLock { 14 [Exposed=Window] static Promise<PermissionState> requestPermission(WakeLockType type); 15 static Promise<void> request(WakeLockType type, optional WakeLockRequestOptions options = {}); 8 16 }; 9 17 10 [SecureContext, 11 Exposed=Window] 12 interface WakeLock : EventTarget { 13 readonly attribute WakeLockType type; 14 readonly attribute boolean active; 15 attribute EventHandler onactivechange; 16 WakeLockRequest createRequest(); 18 dictionary WakeLockRequestOptions { 19 AbortSignal signal; 17 20 }; 18 19 [SecureContext,20 Exposed=Window]21 interface WakeLockRequest {22 void cancel();23 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/web-nfc.idl
r229544 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Web NFC API (https://w3c.github.io/web-nfc/) 1 5 2 dictionary NFCMessage { 3 sequence<NFCRecord> records; 4 USVString url; 5 }; 6 [Exposed=Window] 7 interface NDEFMessage { 8 constructor(NDEFMessageInit messageInit); 9 readonly attribute FrozenArray<NDEFRecord> records; 10 }; 6 11 7 typedef (DOMString or unrestricted double or ArrayBuffer or Dictionary) NFCRecordData; 12 dictionary NDEFMessageInit { 13 sequence<NDEFRecordInit> records; 14 }; 8 15 9 dictionary NFCRecord { 10 NFCRecordType recordType; 11 USVString mediaType; 12 NFCRecordData data; 13 }; 16 typedef any NDEFRecordData; 14 17 15 enum NFCRecordType { 16 "empty", 17 "text", 18 "url", 19 "json", 20 "opaque" 21 }; 18 [Exposed=Window] 19 interface NDEFRecord { 20 constructor(NDEFRecordInit recordInit); 22 21 23 partial interface Navigator {24 readonly attribute NFC nfc;25 };22 readonly attribute NDEFRecordType recordType; 23 readonly attribute USVString mediaType; 24 readonly attribute USVString id; 26 25 27 typedef (DOMString or ArrayBuffer or NFCMessage) NFCPushMessage; 26 USVString? toText(); 27 [NewObject] ArrayBuffer? toArrayBuffer(); 28 [NewObject] any toJSON(); 29 sequence<NDEFRecord> toRecords(); 30 }; 28 31 29 interface NFC { 30 Promise<void> push(NFCPushMessage message, optional NFCPushOptions options); 31 Promise<void> cancelPush(optional NFCPushTarget target="any"); 32 Promise<long> watch(MessageCallback callback, optional NFCWatchOptions options); 33 Promise<void> cancelWatch(optional long id); 34 }; 32 dictionary NDEFRecordInit { 33 NDEFRecordType recordType; 34 USVString mediaType; 35 USVString id; 35 36 36 callback MessageCallback = void (NFCMessage message); 37 NDEFRecordData data; 38 }; 37 39 38 dictionary NFCPushOptions { 39 NFCPushTarget target = "any"; 40 unrestricted double timeout = Infinity; 41 boolean ignoreRead = true; 42 }; 40 typedef DOMString NDEFRecordType; 43 41 44 enum NFCPushTarget { 45 "tag", 46 "peer", 47 "any" 48 }; 42 typedef (DOMString or ArrayBuffer or NDEFMessageInit) NDEFMessageSource; 49 43 50 dictionary NFCWatchOptions { 51 USVString url = ""; 52 NFCRecordType? recordType; 53 USVString mediaType = ""; 54 NFCWatchMode mode = "web-nfc-only"; 55 }; 44 [SecureContext, Exposed=Window] 45 interface NFCWriter { 46 constructor(); 56 47 57 enum NFCWatchMode { 58 "web-nfc-only", 59 "any" 60 }; 48 Promise<void> push(NDEFMessageSource message, optional NFCPushOptions options={}); 49 }; 50 51 [SecureContext, Exposed=Window] 52 interface NFCReader : EventTarget { 53 constructor(); 54 55 attribute EventHandler onreading; 56 attribute EventHandler onerror; 57 58 void scan(optional NFCScanOptions options={}); 59 }; 60 61 [SecureContext, Exposed=Window] 62 interface NFCReadingEvent : Event { 63 constructor(DOMString type, NFCReadingEventInit readingEventInitDict); 64 65 readonly attribute DOMString serialNumber; 66 [SameObject] readonly attribute NDEFMessage message; 67 }; 68 69 dictionary NFCReadingEventInit : EventInit { 70 DOMString? serialNumber = ""; 71 required NDEFMessageInit message; 72 }; 73 74 [SecureContext, Exposed=Window] 75 interface NFCErrorEvent : Event { 76 constructor(DOMString type, NFCErrorEventInit errorEventInitDict); 77 78 readonly attribute DOMException error; 79 }; 80 81 dictionary NFCErrorEventInit : EventInit { 82 required DOMException error; 83 }; 84 85 dictionary NFCPushOptions { 86 NFCPushTarget target = "any"; 87 unrestricted double timeout = Infinity; 88 boolean ignoreRead = true; 89 AbortSignal? signal; 90 }; 91 92 enum NFCPushTarget { 93 "tag", 94 "peer", 95 "any" 96 }; 97 98 dictionary NFCScanOptions { 99 USVString id = ""; 100 NDEFRecordType recordType; 101 USVString mediaType = ""; 102 AbortSignal? signal; 103 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/web-share.idl
r220772 r249731 1 // https://wicg.github.io/web-share/ 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Web Share API - Level 1 (https://w3c.github.io/web-share/) 2 5 3 6 partial interface Navigator { 4 [SecureContext] 5 Promise<void> share(optional ShareData data); 7 [SecureContext] Promise<void> share(optional ShareData data = {}); 6 8 }; 7 9 -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/webauthn.idl
r229544 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Web Authentication: An API for accessing Public Key Credentials - Level 2 (https://w3c.github.io/webauthn/) 5 1 6 [SecureContext, Exposed=Window] 2 7 interface PublicKeyCredential : Credential { 3 8 [SameObject] readonly attribute ArrayBuffer rawId; 4 9 [SameObject] readonly attribute AuthenticatorResponse response; 5 AuthenticationExtensions getClientExtensionResults();10 AuthenticationExtensionsClientOutputs getClientExtensionResults(); 6 11 }; 7 12 8 13 partial dictionary CredentialCreationOptions { 9 MakePublicKeyCredentialOptions publicKey;14 PublicKeyCredentialCreationOptions publicKey; 10 15 }; 11 16 … … 15 20 16 21 partial interface PublicKeyCredential { 17 static Promise < boolean> isUserVerifyingPlatformAuthenticatorAvailable();22 static Promise<boolean> isUserVerifyingPlatformAuthenticatorAvailable(); 18 23 }; 19 24 … … 26 31 interface AuthenticatorAttestationResponse : AuthenticatorResponse { 27 32 [SameObject] readonly attribute ArrayBuffer attestationObject; 33 sequence<DOMString> getTransports(); 28 34 }; 29 35 … … 32 38 [SameObject] readonly attribute ArrayBuffer authenticatorData; 33 39 [SameObject] readonly attribute ArrayBuffer signature; 34 [SameObject] readonly attribute ArrayBuffer 40 [SameObject] readonly attribute ArrayBuffer? userHandle; 35 41 }; 36 42 … … 40 46 }; 41 47 42 dictionary MakePublicKeyCredentialOptions {48 dictionary PublicKeyCredentialCreationOptions { 43 49 required PublicKeyCredentialRpEntity rp; 44 50 required PublicKeyCredentialUserEntity user; … … 51 57 AuthenticatorSelectionCriteria authenticatorSelection; 52 58 AttestationConveyancePreference attestation = "none"; 53 AuthenticationExtensions 59 AuthenticationExtensionsClientInputs extensions; 54 60 }; 55 61 … … 71 77 AuthenticatorAttachment authenticatorAttachment; 72 78 boolean requireResidentKey = false; 79 ResidentKeyRequirement residentKey; 73 80 UserVerificationRequirement userVerification = "preferred"; 74 81 }; 75 82 76 83 enum AuthenticatorAttachment { 77 "platform", // Platform attachment 78 "cross-platform" // Cross-platform attachment 84 "platform", 85 "cross-platform" 86 }; 87 88 enum ResidentKeyRequirement { 89 "discouraged", 90 "preferred", 91 "required" 79 92 }; 80 93 … … 91 104 sequence<PublicKeyCredentialDescriptor> allowCredentials = []; 92 105 UserVerificationRequirement userVerification = "preferred"; 93 AuthenticationExtensions extensions; 94 }; 95 96 typedef record<DOMString, any> AuthenticationExtensions; 106 AuthenticationExtensionsClientInputs extensions; 107 }; 108 109 dictionary AuthenticationExtensionsClientInputs { 110 }; 111 112 dictionary AuthenticationExtensionsClientOutputs { 113 }; 114 115 typedef record<DOMString, DOMString> AuthenticationExtensionsAuthenticatorInputs; 97 116 98 117 dictionary CollectedClientData { … … 100 119 required DOMString challenge; 101 120 required DOMString origin; 102 required DOMString hashAlgorithm; 103 DOMString tokenBindingId; 104 AuthenticationExtensions clientExtensions; 105 AuthenticationExtensions authenticatorExtensions; 106 }; 121 TokenBinding tokenBinding; 122 }; 123 124 dictionary TokenBinding { 125 required TokenBindingStatus status; 126 DOMString id; 127 }; 128 129 enum TokenBindingStatus { "present", "supported" }; 107 130 108 131 enum PublicKeyCredentialType { … … 113 136 required PublicKeyCredentialType type; 114 137 required BufferSource id; 115 sequence< AuthenticatorTransport>transports;138 sequence<DOMString> transports; 116 139 }; 117 140 … … 119 142 "usb", 120 143 "nfc", 121 "ble" 144 "ble", 145 "internal", 146 "lightning" 122 147 }; 123 148 … … 130 155 }; 131 156 132 typedef sequence<AAGUID> AuthenticatorSelectionList; 157 partial dictionary AuthenticationExtensionsClientInputs { 158 USVString appid; 159 }; 160 161 partial dictionary AuthenticationExtensionsClientOutputs { 162 boolean appid; 163 }; 164 165 partial dictionary AuthenticationExtensionsClientInputs { 166 USVString appidExclude; 167 }; 168 169 partial dictionary AuthenticationExtensionsClientInputs { 170 USVString txAuthSimple; 171 }; 172 173 partial dictionary AuthenticationExtensionsClientOutputs { 174 USVString txAuthSimple; 175 }; 176 177 dictionary txAuthGenericArg { 178 required USVString contentType; // MIME-Type of the content, e.g., "image/png" 179 required ArrayBuffer content; 180 }; 181 182 partial dictionary AuthenticationExtensionsClientInputs { 183 txAuthGenericArg txAuthGeneric; 184 }; 185 186 partial dictionary AuthenticationExtensionsClientOutputs { 187 ArrayBuffer txAuthGeneric; 188 }; 189 190 typedef sequence<AAGUID> AuthenticatorSelectionList; 191 192 partial dictionary AuthenticationExtensionsClientInputs { 193 AuthenticatorSelectionList authnSel; 194 }; 133 195 134 196 typedef BufferSource AAGUID; 197 198 partial dictionary AuthenticationExtensionsClientOutputs { 199 boolean authnSel; 200 }; 201 202 partial dictionary AuthenticationExtensionsClientInputs { 203 boolean exts; 204 }; 205 206 typedef sequence<USVString> AuthenticationExtensionsSupported; 207 208 partial dictionary AuthenticationExtensionsClientOutputs { 209 AuthenticationExtensionsSupported exts; 210 }; 211 212 partial dictionary AuthenticationExtensionsClientInputs { 213 boolean uvi; 214 }; 215 216 partial dictionary AuthenticationExtensionsClientOutputs { 217 ArrayBuffer uvi; 218 }; 219 220 partial dictionary AuthenticationExtensionsClientInputs { 221 boolean loc; 222 }; 223 224 partial dictionary AuthenticationExtensionsClientOutputs { 225 Coordinates loc; 226 }; 227 228 partial dictionary AuthenticationExtensionsClientInputs { 229 boolean uvm; 230 }; 231 232 typedef sequence<unsigned long> UvmEntry; 233 typedef sequence<UvmEntry> UvmEntries; 234 235 partial dictionary AuthenticationExtensionsClientOutputs { 236 UvmEntries uvm; 237 }; 238 239 dictionary authenticatorBiometricPerfBounds{ 240 float FAR; 241 float FRR; 242 }; 243 244 partial dictionary AuthenticationExtensionsClientInputs { 245 boolean credProps; 246 }; 247 248 dictionary CredentialPropertiesOutput { 249 boolean rk; 250 }; 251 252 partial dictionary AuthenticationExtensionsClientOutputs { 253 CredentialPropertiesOutput credProps; 254 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/webidl.idl
r229544 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: Web IDL (https://heycam.github.io/webidl/) 5 1 6 typedef (Int8Array or Int16Array or Int32Array or 2 7 Uint8Array or Uint16Array or Uint32Array or Uint8ClampedArray or … … 4 9 5 10 typedef (ArrayBufferView or ArrayBuffer) BufferSource; 6 7 [ 8 Exposed=(Window,Worker), 9 Constructor(optional DOMString message = "", optional DOMString name = "Error") 10 ] 11 [Exposed=(Window,Worker), 12 Constructor(optional DOMString message = "", optional DOMString name = "Error"), 13 Serializable] 11 14 interface DOMException { // but see below note about ECMAScript binding 12 15 readonly attribute DOMString name; … … 42 45 43 46 typedef unsigned long long DOMTimeStamp; 44 45 47 callback Function = any (any... arguments); 46 47 48 callback VoidFunction = void (); -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/webusb.idl
r220772 r249731 1 // Copied from https://wicg.github.io/webusb/#idl-index minus the 2 // definitions related to Permissions API integration which is unstable. 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: WebUSB API (https://wicg.github.io/webusb/) 3 5 4 6 dictionary USBDeviceFilter { … … 15 17 }; 16 18 19 [Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext] 17 20 interface USB : EventTarget { 18 21 attribute EventHandler onconnect; 19 22 attribute EventHandler ondisconnect; 20 23 Promise<sequence<USBDevice>> getDevices(); 21 Promise<USBDevice> requestDevice(USBDeviceRequestOptions options);22 }; 23 24 [ SecureContext]24 [Exposed=Window] Promise<USBDevice> requestDevice(USBDeviceRequestOptions options); 25 }; 26 27 [Exposed=Window, SecureContext] 25 28 partial interface Navigator { 26 29 [SameObject] readonly attribute USB usb; 27 30 }; 28 31 32 [Exposed=(DedicatedWorker,SharedWorker), SecureContext] 33 partial interface WorkerNavigator { 34 [SameObject] readonly attribute USB usb; 35 }; 36 29 37 dictionary USBConnectionEventInit : EventInit { 30 38 required USBDevice device; 31 39 }; 32 40 33 [Constructor(DOMString type, USBConnectionEventInit eventInitDict)] 41 [ 42 Constructor(DOMString type, USBConnectionEventInit eventInitDict), 43 Exposed=(DedicatedWorker,SharedWorker,Window), 44 SecureContext 45 ] 34 46 interface USBConnectionEvent : Event { 35 47 [SameObject] readonly attribute USBDevice device; 36 48 }; 37 49 50 [Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext] 38 51 interface USBDevice { 39 52 readonly attribute octet usbVersionMajor; … … 97 110 }; 98 111 99 [Constructor(USBTransferStatus status, optional DataView? data)] 112 [ 113 Constructor(USBTransferStatus status, optional DataView? data), 114 Exposed=(DedicatedWorker,SharedWorker,Window), 115 SecureContext 116 ] 100 117 interface USBInTransferResult { 101 118 readonly attribute DataView? data; … … 103 120 }; 104 121 105 [Constructor(USBTransferStatus status, optional unsigned long bytesWritten = 0)] 122 [ 123 Constructor(USBTransferStatus status, optional unsigned long bytesWritten = 0), 124 Exposed=(DedicatedWorker,SharedWorker,Window), 125 SecureContext 126 ] 106 127 interface USBOutTransferResult { 107 128 readonly attribute unsigned long bytesWritten; … … 109 130 }; 110 131 111 [Constructor(USBTransferStatus status, optional DataView? data)] 132 [ 133 Constructor(USBTransferStatus status, optional DataView? data), 134 Exposed=(DedicatedWorker,SharedWorker,Window), 135 SecureContext 136 ] 112 137 interface USBIsochronousInTransferPacket { 113 138 readonly attribute DataView? data; … … 115 140 }; 116 141 117 [Constructor(sequence<USBIsochronousInTransferPacket> packets, optional DataView? data)] 142 [ 143 Constructor(sequence<USBIsochronousInTransferPacket> packets, optional DataView? data), 144 Exposed=(DedicatedWorker,SharedWorker,Window), 145 SecureContext 146 ] 118 147 interface USBIsochronousInTransferResult { 119 148 readonly attribute DataView? data; … … 121 150 }; 122 151 123 [Constructor(USBTransferStatus status, optional unsigned long bytesWritten = 0)] 152 [ 153 Constructor(USBTransferStatus status, optional unsigned long bytesWritten = 0), 154 Exposed=(DedicatedWorker,SharedWorker,Window), 155 SecureContext 156 ] 124 157 interface USBIsochronousOutTransferPacket { 125 158 readonly attribute unsigned long bytesWritten; … … 127 160 }; 128 161 129 [Constructor(sequence<USBIsochronousOutTransferPacket> packets)] 162 [ 163 Constructor(sequence<USBIsochronousOutTransferPacket> packets), 164 Exposed=(DedicatedWorker,SharedWorker,Window), 165 SecureContext 166 ] 130 167 interface USBIsochronousOutTransferResult { 131 168 readonly attribute FrozenArray<USBIsochronousOutTransferPacket> packets; 132 169 }; 133 170 134 [Constructor(USBDevice device, octet configurationValue)] 171 [ 172 Constructor(USBDevice device, octet configurationValue), 173 Exposed=(DedicatedWorker,SharedWorker,Window), 174 SecureContext 175 ] 135 176 interface USBConfiguration { 136 177 readonly attribute octet configurationValue; … … 139 180 }; 140 181 141 [Constructor(USBConfiguration configuration, octet interfaceNumber)] 182 [ 183 Constructor(USBConfiguration configuration, octet interfaceNumber), 184 Exposed=(DedicatedWorker,SharedWorker,Window), 185 SecureContext 186 ] 142 187 interface USBInterface { 143 188 readonly attribute octet interfaceNumber; … … 147 192 }; 148 193 149 [Constructor(USBInterface deviceInterface, octet alternateSetting)] 194 [ 195 Constructor(USBInterface deviceInterface, octet alternateSetting), 196 Exposed=(DedicatedWorker,SharedWorker,Window), 197 SecureContext 198 ] 150 199 interface USBAlternateInterface { 151 200 readonly attribute octet alternateSetting; … … 168 217 }; 169 218 170 [Constructor(USBAlternateInterface alternate, octet endpointNumber, USBDirection direction)] 219 [ 220 Constructor(USBAlternateInterface alternate, octet endpointNumber, USBDirection direction), 221 Exposed=(DedicatedWorker,SharedWorker,Window), 222 SecureContext 223 ] 171 224 interface USBEndpoint { 172 225 readonly attribute octet endpointNumber; … … 175 228 readonly attribute unsigned long packetSize; 176 229 }; 230 231 dictionary USBPermissionDescriptor : PermissionDescriptor { 232 sequence<USBDeviceFilter> filters; 233 }; 234 235 dictionary AllowedUSBDevice { 236 required octet vendorId; 237 required octet productId; 238 DOMString serialNumber; 239 }; 240 241 dictionary USBPermissionStorage { 242 sequence<AllowedUSBDevice> allowedDevices = []; 243 }; 244 245 interface USBPermissionResult : PermissionStatus { 246 attribute FrozenArray<USBDevice> devices; 247 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/webxr.idl
r229544 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: WebXR Device API (https://immersive-web.github.io/webxr/) 5 6 partial interface Navigator { 7 [SecureContext, SameObject] readonly attribute XR xr; 8 }; 9 1 10 [SecureContext, Exposed=Window] interface XR : EventTarget { 2 11 // Methods 3 Promise<XRDevice?> requestDevice(); 12 Promise<void> supportsSession(XRSessionMode mode); 13 Promise<XRSession> requestSession(XRSessionMode mode, optional XRSessionInit options = {}); 4 14 5 15 // Events … … 7 17 }; 8 18 9 [SecureContext] 10 partial interface Navigator { 11 [SameObject] readonly attribute XR xr;12 }; 13 14 [SecureContext, Exposed=Window] interface XRDevice : EventTarget {15 // Methods16 Promise<void> supportsSession(optional XRSessionCreationOptions options);17 Promise<XRSession> requestSession(optional XRSessionCreationOptions options);18 }; 19 20 dictionary XRSessionCreationOptions { 21 boolean exclusive = false;22 XRPresentationContext outputContext;19 enum XRSessionMode { 20 "inline", 21 "immersive-vr" 22 }; 23 24 dictionary XRSessionInit { 25 sequence<any> requiredFeatures; 26 sequence<any> optionalFeatures; 27 }; 28 29 enum XRVisibilityState { 30 "visible", 31 "visible-blurred", 32 "hidden", 23 33 }; 24 34 25 35 [SecureContext, Exposed=Window] interface XRSession : EventTarget { 26 36 // Attributes 27 readonly attribute XRDevice device; 28 readonly attribute boolean exclusive; 29 readonly attribute XRPresentationContext outputContext; 30 31 attribute double depthNear; 32 attribute double depthFar; 33 attribute XRLayer baseLayer; 37 readonly attribute XRVisibilityState visibilityState; 38 [SameObject] readonly attribute XRRenderState renderState; 39 [SameObject] readonly attribute XRInputSourceArray inputSources; 34 40 35 41 // Methods 36 Promise<XRFrameOfReference> requestFrameOfReference(XRFrameOfReferenceType type, optional XRFrameOfReferenceOptions options); 42 void updateRenderState(optional XRRenderStateInit state = {}); 43 Promise<XRReferenceSpace> requestReferenceSpace(XRReferenceSpaceType type); 37 44 38 45 long requestAnimationFrame(XRFrameRequestCallback callback); … … 42 49 43 50 // Events 44 attribute EventHandler onblur;45 attribute EventHandler onfocus;46 attribute EventHandler onresetpose;47 51 attribute EventHandler onend; 48 }; 49 50 callback XRFrameRequestCallback = void (DOMHighResTimeStamp time, XRPresentationFrame frame); 51 52 [SecureContext, Exposed=Window] interface XRPresentationFrame { 53 readonly attribute FrozenArray<XRView> views; 54 55 XRDevicePose? getDevicePose(XRCoordinateSystem coordinateSystem); 56 }; 57 58 [SecureContext, Exposed=Window] interface XRCoordinateSystem : EventTarget { 59 Float32Array? getTransformTo(XRCoordinateSystem other); 60 }; 61 62 enum XRFrameOfReferenceType { 63 "headModel", 64 "eyeLevel", 65 "stage", 66 }; 67 68 dictionary XRFrameOfReferenceOptions { 69 boolean disableStageEmulation = false; 70 double stageEmulationHeight = 0.0; 71 }; 72 73 [SecureContext, Exposed=Window] interface XRFrameOfReference : XRCoordinateSystem { 74 readonly attribute XRStageBounds? bounds; 75 readonly attribute double emulatedHeight; 76 77 attribute EventHandler onboundschange; 78 }; 79 80 [SecureContext, Exposed=Window] interface XRStageBounds { 81 readonly attribute FrozenArray<XRStageBoundsPoint> geometry; 82 }; 83 84 [SecureContext, Exposed=Window] interface XRStageBoundsPoint { 85 readonly attribute double x; 86 readonly attribute double z; 52 attribute EventHandler onselect; 53 attribute EventHandler oninputsourceschange; 54 attribute EventHandler onselectstart; 55 attribute EventHandler onselectend; 56 attribute EventHandler onvisibilitychange; 57 }; 58 59 dictionary XRRenderStateInit { 60 double depthNear; 61 double depthFar; 62 double inlineVerticalFieldOfView; 63 XRWebGLLayer? baseLayer; 64 }; 65 66 [SecureContext, Exposed=Window] interface XRRenderState { 67 readonly attribute double depthNear; 68 readonly attribute double depthFar; 69 readonly attribute double? inlineVerticalFieldOfView; 70 readonly attribute XRWebGLLayer? baseLayer; 71 }; 72 73 callback XRFrameRequestCallback = void (DOMHighResTimeStamp time, XRFrame frame); 74 75 [SecureContext, Exposed=Window] interface XRFrame { 76 [SameObject] readonly attribute XRSession session; 77 78 XRViewerPose? getViewerPose(XRReferenceSpace referenceSpace); 79 XRPose? getPose(XRSpace space, XRSpace baseSpace); 80 }; 81 82 [SecureContext, Exposed=Window] interface XRSpace : EventTarget { 83 84 }; 85 86 enum XRReferenceSpaceType { 87 "viewer", 88 "local", 89 "local-floor", 90 "bounded-floor", 91 "unbounded" 92 }; 93 94 [SecureContext, Exposed=Window] 95 interface XRReferenceSpace : XRSpace { 96 XRReferenceSpace getOffsetReferenceSpace(XRRigidTransform originOffset); 97 98 attribute EventHandler onreset; 99 }; 100 101 [SecureContext, Exposed=Window] 102 interface XRBoundedReferenceSpace : XRReferenceSpace { 103 readonly attribute FrozenArray<DOMPointReadOnly> boundsGeometry; 87 104 }; 88 105 89 106 enum XREye { 107 "none", 90 108 "left", 91 109 "right" … … 95 113 readonly attribute XREye eye; 96 114 readonly attribute Float32Array projectionMatrix; 115 [SameObject] readonly attribute XRRigidTransform transform; 97 116 }; 98 117 … … 104 123 }; 105 124 106 [SecureContext, Exposed=Window] interface XRDevicePose { 107 readonly attribute Float32Array poseModelMatrix; 108 109 Float32Array getViewMatrix(XRView view); 110 }; 111 112 [SecureContext, Exposed=Window] interface XRLayer {}; 125 [SecureContext, Exposed=Window, 126 Constructor(optional DOMPointInit position = {}, optional DOMPointInit orientation = {})] 127 interface XRRigidTransform { 128 [SameObject] readonly attribute DOMPointReadOnly position; 129 [SameObject] readonly attribute DOMPointReadOnly orientation; 130 readonly attribute Float32Array matrix; 131 [SameObject] readonly attribute XRRigidTransform inverse; 132 }; 133 134 [SecureContext, Exposed=Window] interface XRPose { 135 [SameObject] readonly attribute XRRigidTransform transform; 136 readonly attribute boolean emulatedPosition; 137 }; 138 139 [SecureContext, Exposed=Window] interface XRViewerPose : XRPose { 140 [SameObject] readonly attribute FrozenArray<XRView> views; 141 }; 142 143 enum XRHandedness { 144 "none", 145 "left", 146 "right" 147 }; 148 149 enum XRTargetRayMode { 150 "gaze", 151 "tracked-pointer", 152 "screen" 153 }; 154 155 [SecureContext, Exposed=Window] 156 interface XRInputSource { 157 readonly attribute XRHandedness handedness; 158 readonly attribute XRTargetRayMode targetRayMode; 159 [SameObject] readonly attribute XRSpace targetRaySpace; 160 [SameObject] readonly attribute XRSpace? gripSpace; 161 [SameObject] readonly attribute FrozenArray<DOMString> profiles; 162 }; 163 164 [SecureContext, Exposed=Window] 165 interface XRInputSourceArray { 166 iterable<XRInputSource>; 167 readonly attribute unsigned long length; 168 getter XRInputSource(unsigned long index); 169 }; 113 170 114 171 typedef (WebGLRenderingContext or … … 117 174 dictionary XRWebGLLayerInit { 118 175 boolean antialias = true; 119 boolean depth = false;176 boolean depth = true; 120 177 boolean stencil = false; 121 178 boolean alpha = true; 122 boolean multiview= false;123 double framebufferScaleFactor ;179 boolean ignoreDepthValues = false; 180 double framebufferScaleFactor = 1.0; 124 181 }; 125 182 126 183 [SecureContext, Exposed=Window, Constructor(XRSession session, 127 184 XRWebGLRenderingContext context, 128 optional XRWebGLLayerInit layerInit )]129 interface XRWebGLLayer : XRLayer{185 optional XRWebGLLayerInit layerInit = {})] 186 interface XRWebGLLayer { 130 187 // Attributes 131 readonly attribute XRWebGLRenderingContext context;132 133 188 readonly attribute boolean antialias; 134 readonly attribute boolean depth; 135 readonly attribute boolean stencil; 136 readonly attribute boolean alpha; 137 readonly attribute boolean multiview; 138 139 readonly attribute WebGLFramebuffer framebuffer; 189 readonly attribute boolean ignoreDepthValues; 190 191 [SameObject] readonly attribute WebGLFramebuffer framebuffer; 140 192 readonly attribute unsigned long framebufferWidth; 141 193 readonly attribute unsigned long framebufferHeight; … … 143 195 // Methods 144 196 XRViewport? getViewport(XRView view); 145 void requestViewportScaling(double viewportScaleFactor); 197 198 // Static Methods 199 static double getNativeFramebufferScaleFactor(XRSession session); 146 200 }; 147 201 148 202 partial dictionary WebGLContextAttributes { 149 XRDevice compatibleXRDevice = null;203 boolean xrCompatible = null; 150 204 }; 151 205 152 206 partial interface mixin WebGLRenderingContextBase { 153 Promise<void> setCompatibleXRDevice(XRDevice device); 154 }; 155 156 [SecureContext, Exposed=Window] interface XRPresentationContext { 157 readonly attribute HTMLCanvasElement canvas; 207 Promise<void> makeXRCompatible(); 158 208 }; 159 209 160 210 [SecureContext, Exposed=Window, Constructor(DOMString type, XRSessionEventInit eventInitDict)] 161 211 interface XRSessionEvent : Event { 162 readonly attribute XRSession session;212 [SameObject] readonly attribute XRSession session; 163 213 }; 164 214 … … 167 217 }; 168 218 169 [SecureContext, Exposed=Window, Constructor(DOMString type, XRCoordinateSystemEventInit eventInitDict)] 170 interface XRCoordinateSystemEvent : Event { 171 readonly attribute XRCoordinateSystem coordinateSystem; 172 }; 173 174 dictionary XRCoordinateSystemEventInit : EventInit { 175 required XRCoordinateSystem coordinateSystem; 176 }; 219 [SecureContext, Exposed=Window, Constructor(DOMString type, XRInputSourceEventInit eventInitDict)] 220 interface XRInputSourceEvent : Event { 221 [SameObject] readonly attribute XRFrame frame; 222 [SameObject] readonly attribute XRInputSource inputSource; 223 }; 224 225 dictionary XRInputSourceEventInit : EventInit { 226 required XRFrame frame; 227 required XRInputSource inputSource; 228 }; 229 230 [SecureContext, Exposed=Window, Constructor(DOMString type, XRInputSourcesChangeEventInit eventInitDict)] 231 interface XRInputSourcesChangeEvent : Event { 232 [SameObject] readonly attribute XRSession session; 233 [SameObject] readonly attribute FrozenArray<XRInputSource> added; 234 [SameObject] readonly attribute FrozenArray<XRInputSource> removed; 235 }; 236 237 dictionary XRInputSourcesChangeEventInit : EventInit { 238 required XRSession session; 239 required FrozenArray<XRInputSource> added; 240 required FrozenArray<XRInputSource> removed; 241 242 }; 243 244 [SecureContext, Exposed=Window, Constructor(DOMString type, XRReferenceSpaceEventInit eventInitDict)] 245 interface XRReferenceSpaceEvent : Event { 246 [SameObject] readonly attribute XRReferenceSpace referenceSpace; 247 [SameObject] readonly attribute XRRigidTransform? transform; 248 }; 249 250 dictionary XRReferenceSpaceEventInit : EventInit { 251 required XRReferenceSpace referenceSpace; 252 XRRigidTransform transform; 253 }; -
trunk/LayoutTests/imported/w3c/web-platform-tests/interfaces/xhr.idl
r229544 r249731 1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into reffy-reports 3 // (https://github.com/tidoust/reffy-reports) 4 // Source: XMLHttpRequest Standard (https://xhr.spec.whatwg.org/) 5 1 6 [Exposed=(Window,DedicatedWorker,SharedWorker)] 2 7 interface XMLHttpRequestEventTarget : EventTarget { … … 60 65 [Exposed=Window] readonly attribute Document? responseXML; 61 66 }; 62 63 67 typedef (File or USVString) FormDataEntryValue; 64 68 … … 76 80 iterable<USVString, FormDataEntryValue>; 77 81 }; 78 79 82 [Constructor(DOMString type, optional ProgressEventInit eventInitDict), 80 83 Exposed=(Window,DedicatedWorker,SharedWorker)] -
trunk/LayoutTests/imported/w3c/web-platform-tests/mediacapture-record/idlharness.window-expected.txt
r249672 r249731 1 1 2 FAIL idl_test setup promise_test: Unhandled rejection with value: object "Error fetching /interfaces/mediastream-recording.idl." 2 PASS idl_test setup 3 PASS MediaRecorder interface: existence and properties of interface object 4 PASS MediaRecorder interface object length 5 PASS MediaRecorder interface object name 6 PASS MediaRecorder interface: existence and properties of interface prototype object 7 PASS MediaRecorder interface: existence and properties of interface prototype object's "constructor" property 8 PASS MediaRecorder interface: existence and properties of interface prototype object's @@unscopables property 9 FAIL MediaRecorder interface: attribute stream assert_true: The prototype object must have a property "stream" expected true got false 10 FAIL MediaRecorder interface: attribute mimeType assert_true: The prototype object must have a property "mimeType" expected true got false 11 PASS MediaRecorder interface: attribute state 12 FAIL MediaRecorder interface: attribute onstart assert_true: The prototype object must have a property "onstart" expected true got false 13 PASS MediaRecorder interface: attribute onstop 14 PASS MediaRecorder interface: attribute ondataavailable 15 FAIL MediaRecorder interface: attribute onpause assert_true: The prototype object must have a property "onpause" expected true got false 16 FAIL MediaRecorder interface: attribute onresume assert_true: The prototype object must have a property "onresume" expected true got false 17 PASS MediaRecorder interface: attribute onerror 18 FAIL MediaRecorder interface: attribute videoBitsPerSecond assert_true: The prototype object must have a property "videoBitsPerSecond" expected true got false 19 FAIL MediaRecorder interface: attribute audioBitsPerSecond assert_true: The prototype object must have a property "audioBitsPerSecond" expected true got false 20 PASS MediaRecorder interface: operation start(unsigned long) 21 PASS MediaRecorder interface: operation stop() 22 FAIL MediaRecorder interface: operation pause() assert_own_property: interface prototype object missing non-static operation expected property "pause" missing 23 FAIL MediaRecorder interface: operation resume() assert_own_property: interface prototype object missing non-static operation expected property "resume" missing 24 FAIL MediaRecorder interface: operation requestData() assert_own_property: interface prototype object missing non-static operation expected property "requestData" missing 25 FAIL MediaRecorder interface: operation isTypeSupported(DOMString) assert_own_property: interface object missing static operation expected property "isTypeSupported" missing 26 PASS MediaRecorder must be primary interface of [object MediaRecorder] 27 PASS Stringification of [object MediaRecorder] 28 FAIL MediaRecorder interface: [object MediaRecorder] must inherit property "stream" with the proper type assert_inherits: property "stream" not found in prototype chain 29 FAIL MediaRecorder interface: [object MediaRecorder] must inherit property "mimeType" with the proper type assert_inherits: property "mimeType" not found in prototype chain 30 PASS MediaRecorder interface: [object MediaRecorder] must inherit property "state" with the proper type 31 FAIL MediaRecorder interface: [object MediaRecorder] must inherit property "onstart" with the proper type assert_inherits: property "onstart" not found in prototype chain 32 PASS MediaRecorder interface: [object MediaRecorder] must inherit property "onstop" with the proper type 33 PASS MediaRecorder interface: [object MediaRecorder] must inherit property "ondataavailable" with the proper type 34 FAIL MediaRecorder interface: [object MediaRecorder] must inherit property "onpause" with the proper type assert_inherits: property "onpause" not found in prototype chain 35 FAIL MediaRecorder interface: [object MediaRecorder] must inherit property "onresume" with the proper type assert_inherits: property "onresume" not found in prototype chain 36 PASS MediaRecorder interface: [object MediaRecorder] must inherit property "onerror" with the proper type 37 FAIL MediaRecorder interface: [object MediaRecorder] must inherit property "videoBitsPerSecond" with the proper type assert_inherits: property "videoBitsPerSecond" not found in prototype chain 38 FAIL MediaRecorder interface: [object MediaRecorder] must inherit property "audioBitsPerSecond" with the proper type assert_inherits: property "audioBitsPerSecond" not found in prototype chain 39 PASS MediaRecorder interface: [object MediaRecorder] must inherit property "start(unsigned long)" with the proper type 40 PASS MediaRecorder interface: calling start(unsigned long) on [object MediaRecorder] with too few arguments must throw TypeError 41 PASS MediaRecorder interface: [object MediaRecorder] must inherit property "stop()" with the proper type 42 FAIL MediaRecorder interface: [object MediaRecorder] must inherit property "pause()" with the proper type assert_inherits: property "pause" not found in prototype chain 43 FAIL MediaRecorder interface: [object MediaRecorder] must inherit property "resume()" with the proper type assert_inherits: property "resume" not found in prototype chain 44 FAIL MediaRecorder interface: [object MediaRecorder] must inherit property "requestData()" with the proper type assert_inherits: property "requestData" not found in prototype chain 45 PASS MediaRecorder interface: [object MediaRecorder] must inherit property "isTypeSupported(DOMString)" with the proper type 46 FAIL MediaRecorder interface: calling isTypeSupported(DOMString) on [object MediaRecorder] with too few arguments must throw TypeError assert_own_property: interface object must have static operation as own property expected property "isTypeSupported" missing 47 PASS BlobEvent interface: existence and properties of interface object 48 PASS BlobEvent interface object length 49 PASS BlobEvent interface object name 50 PASS BlobEvent interface: existence and properties of interface prototype object 51 PASS BlobEvent interface: existence and properties of interface prototype object's "constructor" property 52 PASS BlobEvent interface: existence and properties of interface prototype object's @@unscopables property 53 PASS BlobEvent interface: attribute data 54 FAIL BlobEvent interface: attribute timecode assert_true: The prototype object must have a property "timecode" expected true got false 55 PASS BlobEvent must be primary interface of [object BlobEvent] 56 PASS Stringification of [object BlobEvent] 57 PASS BlobEvent interface: [object BlobEvent] must inherit property "data" with the proper type 58 FAIL BlobEvent interface: [object BlobEvent] must inherit property "timecode" with the proper type assert_inherits: property "timecode" not found in prototype chain 59 PASS MediaRecorderErrorEvent interface: existence and properties of interface object 60 PASS MediaRecorderErrorEvent interface object length 61 PASS MediaRecorderErrorEvent interface object name 62 PASS MediaRecorderErrorEvent interface: existence and properties of interface prototype object 63 PASS MediaRecorderErrorEvent interface: existence and properties of interface prototype object's "constructor" property 64 PASS MediaRecorderErrorEvent interface: existence and properties of interface prototype object's @@unscopables property 65 PASS MediaRecorderErrorEvent interface: attribute error 66 FAIL MediaRecorderErrorEvent must be primary interface of undefined assert_equals: wrong typeof object expected "object" but got "undefined" 67 FAIL Stringification of undefined assert_equals: wrong typeof object expected "object" but got "undefined" 68 FAIL MediaRecorderErrorEvent interface: undefined must inherit property "error" with the proper type assert_equals: wrong typeof object expected "object" but got "undefined" 3 69 -
trunk/LayoutTests/imported/w3c/web-platform-tests/mst-content-hint/idlharness.window-expected.txt
r249672 r249731 1 1 2 FAIL idl_test setup promise_test: Unhandled rejection with value: object "Error fetching /interfaces/mst-content-hint.idl." 2 PASS idl_test setup 3 PASS Partial interface MediaStreamTrack: original interface defined 4 PASS MediaStreamTrack interface: attribute contentHint 5 PASS MediaStreamTrack interface: audioTrack must inherit property "contentHint" with the proper type 6 PASS MediaStreamTrack interface: videoTrack must inherit property "contentHint" with the proper type 3 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/payment-request/idlharness.https.window-expected.txt
r235889 r249731 7 7 PASS PaymentRequest interface: existence and properties of interface prototype object's "constructor" property 8 8 PASS PaymentRequest interface: existence and properties of interface prototype object's @@unscopables property 9 PASS PaymentRequest interface: operation show( )9 PASS PaymentRequest interface: operation show([object Object]) 10 10 PASS PaymentRequest interface: operation abort() 11 11 PASS PaymentRequest interface: operation canMakePayment() 12 FAIL PaymentRequest interface: operation hasEnrolledInstrument() assert_own_property: interface prototype object missing non-static operation expected property "hasEnrolledInstrument" missing 12 13 PASS PaymentRequest interface: attribute id 13 14 PASS PaymentRequest interface: attribute shippingAddress 14 15 PASS PaymentRequest interface: attribute shippingOption 15 16 PASS PaymentRequest interface: attribute shippingType 17 PASS PaymentRequest interface: attribute onmerchantvalidation 16 18 PASS PaymentRequest interface: attribute onshippingaddresschange 17 19 PASS PaymentRequest interface: attribute onshippingoptionchange 20 PASS PaymentRequest interface: attribute onpaymentmethodchange 18 21 PASS PaymentRequest must be primary interface of paymentRequest 19 22 PASS Stringification of paymentRequest 20 PASS PaymentRequest interface: paymentRequest must inherit property "show()" with the proper type 23 PASS PaymentRequest interface: paymentRequest must inherit property "show([object Object])" with the proper type 24 PASS PaymentRequest interface: calling show([object Object]) on paymentRequest with too few arguments must throw TypeError 21 25 PASS PaymentRequest interface: paymentRequest must inherit property "abort()" with the proper type 22 26 PASS PaymentRequest interface: paymentRequest must inherit property "canMakePayment()" with the proper type 27 FAIL PaymentRequest interface: paymentRequest must inherit property "hasEnrolledInstrument()" with the proper type assert_inherits: property "hasEnrolledInstrument" not found in prototype chain 23 28 PASS PaymentRequest interface: paymentRequest must inherit property "id" with the proper type 24 29 PASS PaymentRequest interface: paymentRequest must inherit property "shippingAddress" with the proper type 25 30 PASS PaymentRequest interface: paymentRequest must inherit property "shippingOption" with the proper type 26 31 PASS PaymentRequest interface: paymentRequest must inherit property "shippingType" with the proper type 32 PASS PaymentRequest interface: paymentRequest must inherit property "onmerchantvalidation" with the proper type 27 33 PASS PaymentRequest interface: paymentRequest must inherit property "onshippingaddresschange" with the proper type 28 34 PASS PaymentRequest interface: paymentRequest must inherit property "onshippingoptionchange" with the proper type 35 PASS PaymentRequest interface: paymentRequest must inherit property "onpaymentmethodchange" with the proper type 29 36 PASS PaymentAddress interface: existence and properties of interface object 30 37 PASS PaymentAddress interface object length … … 34 41 PASS PaymentAddress interface: existence and properties of interface prototype object's @@unscopables property 35 42 PASS PaymentAddress interface: operation toJSON() 43 PASS PaymentAddress interface: attribute city 36 44 PASS PaymentAddress interface: attribute country 45 PASS PaymentAddress interface: attribute dependentLocality 46 PASS PaymentAddress interface: attribute organization 47 PASS PaymentAddress interface: attribute phone 48 PASS PaymentAddress interface: attribute postalCode 49 PASS PaymentAddress interface: attribute recipient 50 PASS PaymentAddress interface: attribute region 51 PASS PaymentAddress interface: attribute sortingCode 37 52 PASS PaymentAddress interface: attribute addressLine 38 PASS PaymentAddress interface: attribute region 39 FAIL PaymentAddress interface: attribute regionCode assert_true: The prototype object must have a property "regionCode" expected true got false 40 PASS PaymentAddress interface: attribute city 41 PASS PaymentAddress interface: attribute dependentLocality 42 PASS PaymentAddress interface: attribute postalCode 43 PASS PaymentAddress interface: attribute sortingCode 44 FAIL PaymentAddress interface: attribute languageCode assert_true: The prototype object must have a property "languageCode" expected true got false 45 PASS PaymentAddress interface: attribute organization 46 PASS PaymentAddress interface: attribute recipient 47 PASS PaymentAddress interface: attribute phone 48 FAIL PaymentResponse interface: existence and properties of interface object assert_equals: prototype of self's property "PaymentResponse" is not Function.prototype expected function "function () { 49 [native code] 50 }" but got function "function EventTarget() { 51 [native code] 52 }" 53 PASS PaymentResponse interface: existence and properties of interface object 53 54 PASS PaymentResponse interface object length 54 55 PASS PaymentResponse interface object name 55 FAIL PaymentResponse interface: existence and properties of interface prototype object assert_equals: prototype of PaymentResponse.prototype is not Object.prototype expected object "[object Object]" but got object "[object EventTargetPrototype]" 56 PASS PaymentResponse interface: existence and properties of interface prototype object 56 57 PASS PaymentResponse interface: existence and properties of interface prototype object's "constructor" property 57 58 PASS PaymentResponse interface: existence and properties of interface prototype object's @@unscopables property … … 66 67 PASS PaymentResponse interface: attribute payerPhone 67 68 PASS PaymentResponse interface: operation complete(PaymentComplete) 69 PASS PaymentResponse interface: operation retry(PaymentValidationErrors) 70 PASS PaymentResponse interface: attribute onpayerdetailchange 71 PASS MerchantValidationEvent interface: existence and properties of interface object 72 PASS MerchantValidationEvent interface object length 73 PASS MerchantValidationEvent interface object name 74 PASS MerchantValidationEvent interface: existence and properties of interface prototype object 75 PASS MerchantValidationEvent interface: existence and properties of interface prototype object's "constructor" property 76 PASS MerchantValidationEvent interface: existence and properties of interface prototype object's @@unscopables property 77 PASS MerchantValidationEvent interface: attribute methodName 78 PASS MerchantValidationEvent interface: attribute validationURL 79 PASS MerchantValidationEvent interface: operation complete([object Object]) 80 PASS MerchantValidationEvent must be primary interface of new MerchantValidationEvent("merchantvalidation") 81 PASS Stringification of new MerchantValidationEvent("merchantvalidation") 82 PASS MerchantValidationEvent interface: new MerchantValidationEvent("merchantvalidation") must inherit property "methodName" with the proper type 83 PASS MerchantValidationEvent interface: new MerchantValidationEvent("merchantvalidation") must inherit property "validationURL" with the proper type 84 PASS MerchantValidationEvent interface: new MerchantValidationEvent("merchantvalidation") must inherit property "complete([object Object])" with the proper type 85 PASS MerchantValidationEvent interface: calling complete([object Object]) on new MerchantValidationEvent("merchantvalidation") with too few arguments must throw TypeError 86 PASS PaymentMethodChangeEvent interface: existence and properties of interface object 87 PASS PaymentMethodChangeEvent interface object length 88 PASS PaymentMethodChangeEvent interface object name 89 PASS PaymentMethodChangeEvent interface: existence and properties of interface prototype object 90 PASS PaymentMethodChangeEvent interface: existence and properties of interface prototype object's "constructor" property 91 PASS PaymentMethodChangeEvent interface: existence and properties of interface prototype object's @@unscopables property 92 PASS PaymentMethodChangeEvent interface: attribute methodName 93 PASS PaymentMethodChangeEvent interface: attribute methodDetails 94 PASS PaymentMethodChangeEvent must be primary interface of new PaymentMethodChangeEvent("paymentmethodchange") 95 PASS Stringification of new PaymentMethodChangeEvent("paymentmethodchange") 96 PASS PaymentMethodChangeEvent interface: new PaymentMethodChangeEvent("paymentmethodchange") must inherit property "methodName" with the proper type 97 PASS PaymentMethodChangeEvent interface: new PaymentMethodChangeEvent("paymentmethodchange") must inherit property "methodDetails" with the proper type 98 PASS PaymentRequestUpdateEvent interface: new PaymentMethodChangeEvent("paymentmethodchange") must inherit property "updateWith([object Object])" with the proper type 99 PASS PaymentRequestUpdateEvent interface: calling updateWith([object Object]) on new PaymentMethodChangeEvent("paymentmethodchange") with too few arguments must throw TypeError 68 100 PASS PaymentRequestUpdateEvent interface: existence and properties of interface object 69 101 PASS PaymentRequestUpdateEvent interface object length
Note: See TracChangeset
for help on using the changeset viewer.