mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Update web-platform-tests to revision 3cc9e82a7c1a53423097f3d581d4bfc185f56d18
This commit is contained in:
parent
589ab01be4
commit
a3410e195f
133 changed files with 1534 additions and 5642 deletions
|
@ -4,7 +4,7 @@
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
|
|
||||||
[Opening a blob URL in a new window immediately before revoking it works.]
|
[Opening a blob URL in a new window immediately before revoking it works.]
|
||||||
expected: TIMEOUT
|
expected: FAIL
|
||||||
|
|
||||||
[Fetching a blob URL immediately before revoking it works in an iframe.]
|
[Fetching a blob URL immediately before revoking it works in an iframe.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
[hit-test-floats-003.html]
|
|
||||||
[Miss float below something else]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
[hit-test-floats-005.html]
|
|
||||||
[Miss clipped float]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
[scrollbars-no-margin.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,4 @@
|
||||||
|
[CaretPosition-001.html]
|
||||||
|
[Element at (400, 100)]
|
||||||
|
expected: FAIL
|
||||||
|
|
|
@ -14,9 +14,6 @@
|
||||||
[test some point of the element: bottom right corner]
|
[test some point of the element: bottom right corner]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[test some point of the element: top left corner]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[test the top of layer]
|
[test the top of layer]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
[matchMedia-display-none-iframe.html]
|
||||||
|
expected: ERROR
|
|
@ -0,0 +1,2 @@
|
||||||
|
[HTMLMediaElement.html]
|
||||||
|
expected: TIMEOUT
|
|
@ -318,15 +318,12 @@
|
||||||
[<iframe>: separate response Content-Type: text/html;" text/plain]
|
[<iframe>: separate response Content-Type: text/html;" text/plain]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[<iframe>: combined response Content-Type: */* text/html]
|
[<iframe>: combined response Content-Type: */* text/html]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[<iframe>: separate response Content-Type: text/html */*]
|
[<iframe>: separate response Content-Type: text/html;x=" text/plain]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[<iframe>: combined response Content-Type: text/html */*;charset=gbk]
|
[<iframe>: separate response Content-Type: text/html;" \\" text/plain]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,3 @@
|
||||||
[separate text/javascript x/x]
|
[separate text/javascript x/x]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[separate text/javascript ]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,3 @@
|
||||||
[X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!]
|
[X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[X-Content-Type-Options%3A%20%40%23%24%23%25%25%26%5E%26%5E*()()11!%2Cnosniff]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
[traverse_the_history_1.html]
|
|
||||||
[Multiple history traversals from the same task]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[traverse_the_history_4.html]
|
[traverse_the_history_3.html]
|
||||||
[Multiple history traversals, last would be aborted]
|
[Multiple history traversals, last would be aborted]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[traverse_the_history_4.html]
|
[traverse_the_history_5.html]
|
||||||
[Multiple history traversals, last would be aborted]
|
[Multiple history traversals, last would be aborted]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
[cross-origin-objects-on-new-window.html]
|
|
||||||
expected: TIMEOUT
|
|
|
@ -1,8 +1,7 @@
|
||||||
[embedded-opener-remove-frame.html]
|
[embedded-opener-remove-frame.html]
|
||||||
expected: TIMEOUT
|
|
||||||
[opener of discarded nested browsing context]
|
[opener of discarded nested browsing context]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[opener of discarded auxiliary browsing context]
|
[opener of discarded auxiliary browsing context]
|
||||||
expected: TIMEOUT
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -39,3 +39,15 @@
|
||||||
[createImageBitmap in e-sRGB from an opaque sRGB Blob (BMP, GIF, ICO, JPG, PNG, WEBP) with resize.]
|
[createImageBitmap in e-sRGB from an opaque sRGB Blob (BMP, GIF, ICO, JPG, PNG, WEBP) with resize.]
|
||||||
expected: NOTRUN
|
expected: NOTRUN
|
||||||
|
|
||||||
|
[createImageBitmap in e-sRGB from an opaque sRGB HTMLImageElement (AVIF, BMP, GIF, ICO, JPG, PNG, WEBP) with resize.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[createImageBitmap in e-sRGB from a transparent sRGB HTMLImageElement (AVIF, BMP, ICO, PNG, WEBP) with resize.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[createImageBitmap in e-sRGB from a transparent sRGB Blob (AVIF, BMP, ICO, PNG, WEBP) with resize.]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
||||||
|
[createImageBitmap in e-sRGB from an opaque sRGB Blob (AVIF, BMP, GIF, ICO, JPG, PNG, WEBP) with resize.]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[iframe_sandbox_popups_escaping-2.html]
|
[iframe_sandbox_popups_escaping-2.html]
|
||||||
expected: CRASH
|
expected: TIMEOUT
|
||||||
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
|
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
|
||||||
expected: FAIL
|
expected: TIMEOUT
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[iframe_sandbox_popups_nonescaping-1.html]
|
[iframe_sandbox_popups_nonescaping-1.html]
|
||||||
expected: CRASH
|
expected: TIMEOUT
|
||||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||||
expected: NOTRUN
|
expected: NOTRUN
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[iframe_sandbox_popups_nonescaping-2.html]
|
[iframe_sandbox_popups_nonescaping-2.html]
|
||||||
expected: CRASH
|
expected: TIMEOUT
|
||||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||||
expected: FAIL
|
expected: NOTRUN
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
[form-double-submit-3.html]
|
||||||
|
[<button> should have the same double-submit protection as <input type=submit>]
|
||||||
|
expected: FAIL
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
[module-static-import-delayed.html]
|
|
||||||
[document.write in an imported module]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -3,6 +3,3 @@
|
||||||
[The incumbent settings object while executing the compiled callback via Web IDL's invoke must be that of the node document]
|
[The incumbent settings object while executing the compiled callback via Web IDL's invoke must be that of the node document]
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
|
|
||||||
[The entry settings object while executing the compiled callback via Web IDL's invoke must be that of the node document]
|
|
||||||
expected: TIMEOUT
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
[realtimeanalyser-fft-scaling.html]
|
[realtimeanalyser-fft-scaling.html]
|
||||||
|
expected: TIMEOUT
|
||||||
[X 2048-point FFT peak position is not equal to 64. Got 0.]
|
[X 2048-point FFT peak position is not equal to 64. Got 0.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[017.html]
|
|
||||||
expected: TIMEOUT
|
|
||||||
[origin of the script that invoked the method, about:blank]
|
|
||||||
expected: TIMEOUT
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[017.html]
|
|
||||||
expected: TIMEOUT
|
|
||||||
[origin of the script that invoked the method, about:blank]
|
|
||||||
expected: TIMEOUT
|
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
[ar_hittest_source_cancel.https.html]
|
||||||
|
[Ensures transient input hit test source cancellation works when the session has not ended.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[Ensures hit test source cancellation works when the session has not ended.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[Ensures transient input hit test source cancellation works when the session has ended]
|
||||||
|
expected: FAIL
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
[catch.sub.any.worker.html]
|
||||||
|
[Redirect-to-Cross-origin throw]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[Cross-origin syntax error]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[Cross-origin throw]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[Redirect-to-cross-origin syntax error]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
||||||
|
[catch.sub.any.sharedworker.html]
|
||||||
|
expected: ERROR
|
||||||
|
|
||||||
|
[catch.sub.any.serviceworker.html]
|
||||||
|
expected: ERROR
|
|
@ -0,0 +1,13 @@
|
||||||
|
[report-error-cross-origin.sub.any.sharedworker.html]
|
||||||
|
expected: ERROR
|
||||||
|
|
||||||
|
[report-error-cross-origin.sub.any.worker.html]
|
||||||
|
[WorkerGlobalScope error event: lineno]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WorkerGlobalScope error event: error]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WorkerGlobalScope error event: filename]
|
||||||
|
expected: FAIL
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
[report-error-redirect-to-cross-origin.sub.any.sharedworker.html]
|
||||||
|
expected: ERROR
|
||||||
|
|
||||||
|
[report-error-redirect-to-cross-origin.sub.any.worker.html]
|
||||||
|
[WorkerGlobalScope error event: lineno]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WorkerGlobalScope error event: error]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WorkerGlobalScope error event: filename]
|
||||||
|
expected: FAIL
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
[report-error-same-origin.sub.any.worker.html]
|
||||||
|
|
||||||
|
[report-error-same-origin.sub.any.sharedworker.html]
|
||||||
|
expected: ERROR
|
|
@ -0,0 +1,13 @@
|
||||||
|
[report-error-setTimeout-cross-origin.sub.any.worker.html]
|
||||||
|
[WorkerGlobalScope error event: lineno]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WorkerGlobalScope error event: error]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WorkerGlobalScope error event: filename]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
||||||
|
[report-error-setTimeout-cross-origin.sub.any.sharedworker.html]
|
||||||
|
expected: ERROR
|
|
@ -0,0 +1,13 @@
|
||||||
|
[report-error-setTimeout-redirect-to-cross-origin.sub.any.worker.html]
|
||||||
|
[WorkerGlobalScope error event: lineno]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WorkerGlobalScope error event: error]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WorkerGlobalScope error event: filename]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
||||||
|
[report-error-setTimeout-redirect-to-cross-origin.sub.any.sharedworker.html]
|
||||||
|
expected: ERROR
|
|
@ -0,0 +1,4 @@
|
||||||
|
[report-error-setTimeout-same-origin.sub.any.sharedworker.html]
|
||||||
|
expected: ERROR
|
||||||
|
|
||||||
|
[report-error-setTimeout-same-origin.sub.any.worker.html]
|
|
@ -7,7 +7,7 @@
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Opening a blob URL in a new window immediately before revoking it works.]
|
[Opening a blob URL in a new window immediately before revoking it works.]
|
||||||
expected: TIMEOUT
|
expected: FAIL
|
||||||
|
|
||||||
[Opening a blob URL in a noopener about:blank window immediately before revoking it works.]
|
[Opening a blob URL in a noopener about:blank window immediately before revoking it works.]
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
|
|
|
@ -139992,6 +139992,19 @@
|
||||||
{}
|
{}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
"scrollbars-no-margin.html": [
|
||||||
|
"092e4c5ea9ff6b47440f2556482f978b88f1a82e",
|
||||||
|
[
|
||||||
|
null,
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"/css/css-flexbox/scrollbars-no-margin-ref.html",
|
||||||
|
"=="
|
||||||
|
]
|
||||||
|
],
|
||||||
|
{}
|
||||||
|
]
|
||||||
|
],
|
||||||
"scrollbars.html": [
|
"scrollbars.html": [
|
||||||
"0eca05bfc63f9522e6d624c35469ba69e7410968",
|
"0eca05bfc63f9522e6d624c35469ba69e7410968",
|
||||||
[
|
[
|
||||||
|
@ -291517,7 +291530,7 @@
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
"testcommon.js": [
|
"testcommon.js": [
|
||||||
"a7575b158e3e3527963b61a4a0f2ad9a202aa66c",
|
"7d3392a54f65dca018e960874efe19f8ca388a70",
|
||||||
[]
|
[]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -295281,6 +295294,10 @@
|
||||||
"590b533d8d25ac45dbeb1e7eab7cd02f3c1e8b5b",
|
"590b533d8d25ac45dbeb1e7eab7cd02f3c1e8b5b",
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
|
"scrollbars-no-margin-ref.html": [
|
||||||
|
"eaeb36e448dbef7d96881602fed38ca4d4ea10be",
|
||||||
|
[]
|
||||||
|
],
|
||||||
"scrollbars-ref.html": [
|
"scrollbars-ref.html": [
|
||||||
"911e7acba88333d4e2ddf0d0fec36fbcc4975825",
|
"911e7acba88333d4e2ddf0d0fec36fbcc4975825",
|
||||||
[]
|
[]
|
||||||
|
@ -329715,6 +329732,10 @@
|
||||||
"43a72bf271be679a932b69a5c2304d8fe547d22e",
|
"43a72bf271be679a932b69a5c2304d8fe547d22e",
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
|
"pattern-srgb-transparent.avif": [
|
||||||
|
"c3890c5cf655552d750a0c6ff7f7398056628e29",
|
||||||
|
[]
|
||||||
|
],
|
||||||
"pattern-srgb-transparent.bmp": [
|
"pattern-srgb-transparent.bmp": [
|
||||||
"9c9561c70464eed928e288f27163c47c1a914977",
|
"9c9561c70464eed928e288f27163c47c1a914977",
|
||||||
[]
|
[]
|
||||||
|
@ -329731,6 +329752,10 @@
|
||||||
"925646067ad079facaaf2d03481e36eadeb25b6f",
|
"925646067ad079facaaf2d03481e36eadeb25b6f",
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
|
"pattern-srgb.avif": [
|
||||||
|
"c13b320ea8249ed9962bc5973a3d1dbc69481b7b",
|
||||||
|
[]
|
||||||
|
],
|
||||||
"pattern-srgb.bmp": [
|
"pattern-srgb.bmp": [
|
||||||
"465d203d98bf3dcce2fef2f416a1e5b3d2795319",
|
"465d203d98bf3dcce2fef2f416a1e5b3d2795319",
|
||||||
[]
|
[]
|
||||||
|
@ -341024,7 +341049,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"lint.ignore": [
|
"lint.ignore": [
|
||||||
"e52c2ae457638a90404fe8e4e200962314b6d441",
|
"6b79e8a757ddbc16278511d0ace1a69720f5bdb9",
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
"loading": {
|
"loading": {
|
||||||
|
@ -345893,42 +345918,10 @@
|
||||||
"b53c6a8c4232dbe9c787b0ea17f0ed1a49f1e386",
|
"b53c6a8c4232dbe9c787b0ea17f0ed1a49f1e386",
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
"big_buffer.mojom.js": [
|
|
||||||
"f09706eebb82285184cdc27ad9a369f0bef54193",
|
|
||||||
[]
|
|
||||||
],
|
|
||||||
"big_buffer.mojom.js.headers": [
|
|
||||||
"6c61a34a4ec2e75096db0eb9f7748b142f0db7bb",
|
|
||||||
[]
|
|
||||||
],
|
|
||||||
"contacts_manager_mock.js": [
|
"contacts_manager_mock.js": [
|
||||||
"443d50bbc62bef71e408ffba57eb6678772da224",
|
"443d50bbc62bef71e408ffba57eb6678772da224",
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
"device.mojom.js": [
|
|
||||||
"6488cbc69c29170d9441d2210da27a464f67d445",
|
|
||||||
[]
|
|
||||||
],
|
|
||||||
"device.mojom.js.headers": [
|
|
||||||
"6805c323df5a975231648b830e33ce183c3cbbd3",
|
|
||||||
[]
|
|
||||||
],
|
|
||||||
"device_enumeration_options.mojom.js": [
|
|
||||||
"5a775ad36878f2c2a3cf05db55697b851e2a4db7",
|
|
||||||
[]
|
|
||||||
],
|
|
||||||
"device_enumeration_options.mojom.js.headers": [
|
|
||||||
"6c61a34a4ec2e75096db0eb9f7748b142f0db7bb",
|
|
||||||
[]
|
|
||||||
],
|
|
||||||
"device_manager_client.mojom.js": [
|
|
||||||
"439f646574dfa785d8f4d15994597ed156dae695",
|
|
||||||
[]
|
|
||||||
],
|
|
||||||
"device_manager_client.mojom.js.headers": [
|
|
||||||
"6c61a34a4ec2e75096db0eb9f7748b142f0db7bb",
|
|
||||||
[]
|
|
||||||
],
|
|
||||||
"enable-hyperlink-auditing.js": [
|
"enable-hyperlink-auditing.js": [
|
||||||
"263f6512f09a90220940975b9474fecabf2837c7",
|
"263f6512f09a90220940975b9474fecabf2837c7",
|
||||||
[]
|
[]
|
||||||
|
@ -346017,18 +346010,6 @@
|
||||||
"d82b15a304a2439f5206e5bc86b91c51fcf94bd8",
|
"d82b15a304a2439f5206e5bc86b91c51fcf94bd8",
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
"string16.mojom.js": [
|
|
||||||
"25377e66571b145907a490d17c673a5abd023171",
|
|
||||||
[]
|
|
||||||
],
|
|
||||||
"string16.mojom.js.headers": [
|
|
||||||
"6805c323df5a975231648b830e33ce183c3cbbd3",
|
|
||||||
[]
|
|
||||||
],
|
|
||||||
"url.mojom.js": [
|
|
||||||
"c5eee1f2aeb4069c595914ee022a9e509b9da545",
|
|
||||||
[]
|
|
||||||
],
|
|
||||||
"web-bluetooth-test.js": [
|
"web-bluetooth-test.js": [
|
||||||
"b63658e2e753218d50508b41199fc6ff18711dbf",
|
"b63658e2e753218d50508b41199fc6ff18711dbf",
|
||||||
[]
|
[]
|
||||||
|
@ -346037,14 +346018,6 @@
|
||||||
"6805c323df5a975231648b830e33ce183c3cbbd3",
|
"6805c323df5a975231648b830e33ce183c3cbbd3",
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
"web_usb_service.mojom.js": [
|
|
||||||
"a4a017b1de178c0c51addb878d257b8b1a740334",
|
|
||||||
[]
|
|
||||||
],
|
|
||||||
"web_usb_service.mojom.js.headers": [
|
|
||||||
"6805c323df5a975231648b830e33ce183c3cbbd3",
|
|
||||||
[]
|
|
||||||
],
|
|
||||||
"webusb-child-test.js": [
|
"webusb-child-test.js": [
|
||||||
"add04fa58250d58d56759d242663a6510d306090",
|
"add04fa58250d58d56759d242663a6510d306090",
|
||||||
[]
|
[]
|
||||||
|
@ -346503,7 +346476,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"test-only-api.js": [
|
"test-only-api.js": [
|
||||||
"53891d21bd4ea57f788d3525a7bb9145e168f2c7",
|
"ae3137481daf50639f4045d5b748977854e37984",
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
"test-only-api.js.headers": [
|
"test-only-api.js.headers": [
|
||||||
|
@ -346662,6 +346635,30 @@
|
||||||
"13225f6f18fb909faa65d1d6f83af2f06f9e5d7f",
|
"13225f6f18fb909faa65d1d6f83af2f06f9e5d7f",
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
|
"force-load-at-top-target.html": [
|
||||||
|
"72feec8a4086283f2df5af5994dafc79f93d387b",
|
||||||
|
[]
|
||||||
|
],
|
||||||
|
"force-load-at-top-target.html.headers": [
|
||||||
|
"33dcdbb01ff6564e542ed621c667523a0ada4879",
|
||||||
|
[]
|
||||||
|
],
|
||||||
|
"force-load-at-top.js": [
|
||||||
|
"223e3a4b5a066038135f4ae09f4a13f527f0ed7f",
|
||||||
|
[]
|
||||||
|
],
|
||||||
|
"navigate-back.html": [
|
||||||
|
"4b4117fcc573b21f6bf6f8cb016bcef4c024d703",
|
||||||
|
[]
|
||||||
|
],
|
||||||
|
"no-force-load-at-top-target.html": [
|
||||||
|
"57e5f6d32ba80472961af1c55be073a64e18e2fb",
|
||||||
|
[]
|
||||||
|
],
|
||||||
|
"no-force-load-at-top-target.html.headers": [
|
||||||
|
"3a2c029fd6b5e013cde96bef1dcec7d7f4e4fdab",
|
||||||
|
[]
|
||||||
|
],
|
||||||
"scroll-to-text-fragment-target.html": [
|
"scroll-to-text-fragment-target.html": [
|
||||||
"b2be85132cb8f2f2c14c82bf1854c3130f375c96",
|
"b2be85132cb8f2f2c14c82bf1854c3130f375c96",
|
||||||
[]
|
[]
|
||||||
|
@ -358561,6 +358558,10 @@
|
||||||
"604e765da46d85fe8ab85d3097fe7c2cbe00a930",
|
"604e765da46d85fe8ab85d3097fe7c2cbe00a930",
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
|
"set-inner-html.js": [
|
||||||
|
"45053d43e362e223e0ce5e6dffb4da09c0ce3f34",
|
||||||
|
[]
|
||||||
|
],
|
||||||
"worker.js": [
|
"worker.js": [
|
||||||
"4079f7e9c7933cf9ee195fe0e7a54e0f56f184ab",
|
"4079f7e9c7933cf9ee195fe0e7a54e0f56f184ab",
|
||||||
[]
|
[]
|
||||||
|
@ -361394,11 +361395,11 @@
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
"open-in-iframe.html": [
|
"open-in-iframe.html": [
|
||||||
"ec80bff3c234495112d780ac975288727965021e",
|
"730db24902964282a9ff2b87c0a1c0ec566449bb",
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
"open-in-worker.js": [
|
"open-in-worker.js": [
|
||||||
"b715184e04dd575e1e1d5a9bb4731e58ed6eecb5",
|
"e16621057a0240186803bb1de1c012406c89505d",
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
"usb-allowed-by-feature-policy-worker.js": [
|
"usb-allowed-by-feature-policy-worker.js": [
|
||||||
|
@ -361410,7 +361411,7 @@
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
"usb-helpers.js": [
|
"usb-helpers.js": [
|
||||||
"67d907d2c2f8ea056590a3735feb6044814de952",
|
"b41c054c7168bfc32ecd557f2f8c98d7fbecbfe9",
|
||||||
[]
|
[]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -363851,6 +363852,10 @@
|
||||||
"a17a9a3a12cefe883a5d4dee4d5a45bef120d050",
|
"a17a9a3a12cefe883a5d4dee4d5a45bef120d050",
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
|
"report-error-helper.js": [
|
||||||
|
"7fc6d0dd64bc82527621a90f848d080a195ed212",
|
||||||
|
[]
|
||||||
|
],
|
||||||
"undefined": [
|
"undefined": [
|
||||||
"f99ba4be744c40c45ec3f9c58d2d1379f514c5d5",
|
"f99ba4be744c40c45ec3f9c58d2d1379f514c5d5",
|
||||||
[]
|
[]
|
||||||
|
@ -364073,6 +364078,10 @@
|
||||||
"syntax-error.js": [
|
"syntax-error.js": [
|
||||||
"8c5c4df671bcc3f75ac1e474fc651927e57e8701",
|
"8c5c4df671bcc3f75ac1e474fc651927e57e8701",
|
||||||
[]
|
[]
|
||||||
|
],
|
||||||
|
"throw.js": [
|
||||||
|
"3d876d43d930d281c1d6aa595e527497b622e80b",
|
||||||
|
[]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"shared-worker-options-credentials.html.headers": [
|
"shared-worker-options-credentials.html.headers": [
|
||||||
|
@ -368182,7 +368191,7 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"idbobjectstore_putall.tentative.any.js": [
|
"idbobjectstore_putall.tentative.any.js": [
|
||||||
"8bdc765906d86504bcb344e1e579a97f8f602c6e",
|
"a312d71d03d59c5c9369afa1492aacd0e91e9a5d",
|
||||||
[
|
[
|
||||||
"IndexedDB/idbobjectstore_putall.tentative.any.html",
|
"IndexedDB/idbobjectstore_putall.tentative.any.html",
|
||||||
{
|
{
|
||||||
|
@ -390089,7 +390098,7 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"event-dispatch.tentative.html": [
|
"event-dispatch.tentative.html": [
|
||||||
"770f9b00b1fd3db438f6d03f7c8535cf1d2e3684",
|
"d54031c2f4a6768e10303f3584096dad96676b0c",
|
||||||
[
|
[
|
||||||
null,
|
null,
|
||||||
{
|
{
|
||||||
|
@ -403925,6 +403934,13 @@
|
||||||
{}
|
{}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
"visibility-collapse-row-004.html": [
|
||||||
|
"994cc89281e1a82590f4b9ea2506e44633260649",
|
||||||
|
[
|
||||||
|
null,
|
||||||
|
{}
|
||||||
|
]
|
||||||
|
],
|
||||||
"visibility-collapse-row-group-001.html": [
|
"visibility-collapse-row-group-001.html": [
|
||||||
"ea76e902b548b7e092911b63e4bce9d1fcca1042",
|
"ea76e902b548b7e092911b63e4bce9d1fcca1042",
|
||||||
[
|
[
|
||||||
|
@ -406529,10 +406545,12 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"transform-interpolation-001.html": [
|
"transform-interpolation-001.html": [
|
||||||
"4647c2c9119baa9d998f14f2f4973fc3607fd51b",
|
"7d18ef9dfa30dce2d359276cb9d4525939a5cfad",
|
||||||
[
|
[
|
||||||
null,
|
null,
|
||||||
{}
|
{
|
||||||
|
"timeout": "long"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"transform-interpolation-002.html": [
|
"transform-interpolation-002.html": [
|
||||||
|
@ -406557,10 +406575,12 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"transform-interpolation-005.html": [
|
"transform-interpolation-005.html": [
|
||||||
"451850f2556058a32e48bd15c7ca195ba3b8d3d8",
|
"879ff3f4358e5b64bb54837e80a6b22b7d00f70e",
|
||||||
[
|
[
|
||||||
null,
|
null,
|
||||||
{}
|
{
|
||||||
|
"timeout": "long"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"transform-interpolation-006.html": [
|
"transform-interpolation-006.html": [
|
||||||
|
@ -406634,10 +406654,12 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"translate-interpolation.html": [
|
"translate-interpolation.html": [
|
||||||
"67d9b136211670a4fe664e880feff802c95d897b",
|
"24368f01b58aef4f10e89b4325407d0bed4897b2",
|
||||||
[
|
[
|
||||||
null,
|
null,
|
||||||
{}
|
{
|
||||||
|
"timeout": "long"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -443955,7 +443977,7 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"canvas-createImageBitmap-e_srgb.html": [
|
"canvas-createImageBitmap-e_srgb.html": [
|
||||||
"829e120df45fd43b7f34616ca1385d8dbee9ccf5",
|
"4bb44757ffcf7d898776f37c6d916128c38858e1",
|
||||||
[
|
[
|
||||||
null,
|
null,
|
||||||
{}
|
{}
|
||||||
|
@ -480046,7 +480068,7 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"MediaStreamTrack-getCapabilities.html": [
|
"MediaStreamTrack-getCapabilities.html": [
|
||||||
"4e0c933bc1ceae2e98ec702c4044cdde056790e4",
|
"d0b7c2a3f204f3a108d7dc15696df2904373292c",
|
||||||
[
|
[
|
||||||
null,
|
null,
|
||||||
{
|
{
|
||||||
|
@ -480085,7 +480107,7 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"getPhotoCapabilities.html": [
|
"getPhotoCapabilities.html": [
|
||||||
"663b43a6988af1d9b98466cd260ee29ec7d4e8d8",
|
"9e2392de04d478beefab3838b382a1ff21ea8715",
|
||||||
[
|
[
|
||||||
null,
|
null,
|
||||||
{}
|
{}
|
||||||
|
@ -501040,6 +501062,15 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"scroll-to-text-fragment": {
|
"scroll-to-text-fragment": {
|
||||||
|
"force-load-at-top.html": [
|
||||||
|
"1399de3d624927131c21ef9bf548825de4b059a4",
|
||||||
|
[
|
||||||
|
null,
|
||||||
|
{
|
||||||
|
"testdriver": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
"scroll-to-text-fragment-api.html": [
|
"scroll-to-text-fragment-api.html": [
|
||||||
"8b1dea6f331bf41b4759cadf6859f016848566fa",
|
"8b1dea6f331bf41b4759cadf6859f016848566fa",
|
||||||
[
|
[
|
||||||
|
@ -514124,6 +514155,13 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
"trusted-types-source-file-path.tentative.html": [
|
||||||
|
"61adb2993431aef169a04afac27d3dcd36e267d6",
|
||||||
|
[
|
||||||
|
null,
|
||||||
|
{}
|
||||||
|
]
|
||||||
|
],
|
||||||
"trusted-types-svg-script.tentative.html": [
|
"trusted-types-svg-script.tentative.html": [
|
||||||
"946f825fa3eecd05247e1a2b16396ee4d3f7af11",
|
"946f825fa3eecd05247e1a2b16396ee4d3f7af11",
|
||||||
[
|
[
|
||||||
|
@ -530589,7 +530627,7 @@
|
||||||
},
|
},
|
||||||
"webusb": {
|
"webusb": {
|
||||||
"idlharness.https.any.js": [
|
"idlharness.https.any.js": [
|
||||||
"04cbf708267b0687cffc50e5138622c951b0cd9f",
|
"0c8cb322a086024b209f620ddc9a7ed1c2c1a226",
|
||||||
[
|
[
|
||||||
"webusb/idlharness.https.any.html",
|
"webusb/idlharness.https.any.html",
|
||||||
{
|
{
|
||||||
|
@ -530606,6 +530644,10 @@
|
||||||
"script",
|
"script",
|
||||||
"/resources/idlharness.js"
|
"/resources/idlharness.js"
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -530634,6 +530676,10 @@
|
||||||
"script",
|
"script",
|
||||||
"/resources/idlharness.js"
|
"/resources/idlharness.js"
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -530701,11 +530747,15 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"usb.https.any.js": [
|
"usb.https.any.js": [
|
||||||
"109c82a415684b96e4e3a85ee09e773713b58b62",
|
"c9a95b10ad1bc061a88539b4be8bac523141c534",
|
||||||
[
|
[
|
||||||
"webusb/usb.https.any.html",
|
"webusb/usb.https.any.html",
|
||||||
{
|
{
|
||||||
"script_metadata": [
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -530721,6 +530771,10 @@
|
||||||
"webusb/usb.https.any.worker.html",
|
"webusb/usb.https.any.worker.html",
|
||||||
{
|
{
|
||||||
"script_metadata": [
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -530734,7 +530788,7 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"usb.https.window.js": [
|
"usb.https.window.js": [
|
||||||
"8c9e676cdfc3346ec8f057f99355fb75b708e3c1",
|
"690faf3e92de9b00eeffdf3d22272f180b19bca7",
|
||||||
[
|
[
|
||||||
"webusb/usb.https.window.html",
|
"webusb/usb.https.window.html",
|
||||||
{
|
{
|
||||||
|
@ -530747,6 +530801,10 @@
|
||||||
"script",
|
"script",
|
||||||
"/resources/testdriver-vendor.js"
|
"/resources/testdriver-vendor.js"
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -530767,11 +530825,15 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"usbAlternateInterface.https.any.js": [
|
"usbAlternateInterface.https.any.js": [
|
||||||
"e5ef3844ae44008db5424275c760572a0147a518",
|
"e97d53c16dd5879a913610250051986024de22aa",
|
||||||
[
|
[
|
||||||
"webusb/usbAlternateInterface.https.any.html",
|
"webusb/usbAlternateInterface.https.any.html",
|
||||||
{
|
{
|
||||||
"script_metadata": [
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -530787,6 +530849,10 @@
|
||||||
"webusb/usbAlternateInterface.https.any.worker.html",
|
"webusb/usbAlternateInterface.https.any.worker.html",
|
||||||
{
|
{
|
||||||
"script_metadata": [
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -530800,11 +530866,15 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"usbConfiguration.https.any.js": [
|
"usbConfiguration.https.any.js": [
|
||||||
"e7d1c7fb146dcd7b50dab6088f8a0e1f14259c99",
|
"96aaee273daa37eff15e5ed2b23e9b9f82a88225",
|
||||||
[
|
[
|
||||||
"webusb/usbConfiguration.https.any.html",
|
"webusb/usbConfiguration.https.any.html",
|
||||||
{
|
{
|
||||||
"script_metadata": [
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -530820,6 +530890,10 @@
|
||||||
"webusb/usbConfiguration.https.any.worker.html",
|
"webusb/usbConfiguration.https.any.worker.html",
|
||||||
{
|
{
|
||||||
"script_metadata": [
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -530833,11 +530907,15 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"usbConnectionEvent.https.any.js": [
|
"usbConnectionEvent.https.any.js": [
|
||||||
"349fd9b75f3b60160d8d410fb1c81a192f3c1e36",
|
"12ede9e6c6ae9625998df32e99c62453cad022b3",
|
||||||
[
|
[
|
||||||
"webusb/usbConnectionEvent.https.any.html",
|
"webusb/usbConnectionEvent.https.any.html",
|
||||||
{
|
{
|
||||||
"script_metadata": [
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -530853,6 +530931,10 @@
|
||||||
"webusb/usbConnectionEvent.https.any.worker.html",
|
"webusb/usbConnectionEvent.https.any.worker.html",
|
||||||
{
|
{
|
||||||
"script_metadata": [
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -530866,21 +530948,21 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"usbDevice-iframe.https.html": [
|
"usbDevice-iframe.https.html": [
|
||||||
"75bad9e0c9f5223fe9b6427db1ea7afdb23dd727",
|
"5a6dd0565f51e8af904ed544dc63cb5f1cf6efea",
|
||||||
[
|
[
|
||||||
null,
|
null,
|
||||||
{}
|
{}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"usbDevice-worker.https.html": [
|
"usbDevice-worker.https.html": [
|
||||||
"119f5d6688235e396db1d118cec8b61324e46d8a",
|
"dcad6ec08ea0dde88c99c1ab439eb9c494a7bf68",
|
||||||
[
|
[
|
||||||
null,
|
null,
|
||||||
{}
|
{}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"usbDevice.https.any.js": [
|
"usbDevice.https.any.js": [
|
||||||
"b41687079e5746ded100f0ec47c9b3f153d9adaf",
|
"5bfd841d5248e91a5cabf10d00d78db23d11f0e5",
|
||||||
[
|
[
|
||||||
"webusb/usbDevice.https.any.html",
|
"webusb/usbDevice.https.any.html",
|
||||||
{
|
{
|
||||||
|
@ -530889,6 +530971,10 @@
|
||||||
"timeout",
|
"timeout",
|
||||||
"long"
|
"long"
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -530909,6 +530995,10 @@
|
||||||
"timeout",
|
"timeout",
|
||||||
"long"
|
"long"
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -530923,11 +531013,15 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"usbEndpoint.https.any.js": [
|
"usbEndpoint.https.any.js": [
|
||||||
"e57639c3d4b9e40606978fbb17bf9d604e65337b",
|
"c987e4c33359f00c2a89e2d92e5e21fd9b71ab17",
|
||||||
[
|
[
|
||||||
"webusb/usbEndpoint.https.any.html",
|
"webusb/usbEndpoint.https.any.html",
|
||||||
{
|
{
|
||||||
"script_metadata": [
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -530943,6 +531037,10 @@
|
||||||
"webusb/usbEndpoint.https.any.worker.html",
|
"webusb/usbEndpoint.https.any.worker.html",
|
||||||
{
|
{
|
||||||
"script_metadata": [
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -530956,11 +531054,15 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"usbInTransferResult.https.any.js": [
|
"usbInTransferResult.https.any.js": [
|
||||||
"c8f65f1737a5cd208273123c83322b6962a64142",
|
"dcfa38124a6d789a44c7a55fa61be9f7914491ae",
|
||||||
[
|
[
|
||||||
"webusb/usbInTransferResult.https.any.html",
|
"webusb/usbInTransferResult.https.any.html",
|
||||||
{
|
{
|
||||||
"script_metadata": [
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -530976,6 +531078,10 @@
|
||||||
"webusb/usbInTransferResult.https.any.worker.html",
|
"webusb/usbInTransferResult.https.any.worker.html",
|
||||||
{
|
{
|
||||||
"script_metadata": [
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -530989,11 +531095,15 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"usbInterface.https.any.js": [
|
"usbInterface.https.any.js": [
|
||||||
"7fbf660bbce014f3ba2595382749ebaafef284aa",
|
"8e99c6f83f4b069dfa4ad44b470f0cadb3cc7641",
|
||||||
[
|
[
|
||||||
"webusb/usbInterface.https.any.html",
|
"webusb/usbInterface.https.any.html",
|
||||||
{
|
{
|
||||||
"script_metadata": [
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -531009,6 +531119,10 @@
|
||||||
"webusb/usbInterface.https.any.worker.html",
|
"webusb/usbInterface.https.any.worker.html",
|
||||||
{
|
{
|
||||||
"script_metadata": [
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"/resources/test-only-api.js"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"script",
|
"script",
|
||||||
"/webusb/resources/fake-devices.js"
|
"/webusb/resources/fake-devices.js"
|
||||||
|
@ -531890,6 +532004,13 @@
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"hit-test": {
|
"hit-test": {
|
||||||
|
"ar_hittest_source_cancel.https.html": [
|
||||||
|
"66f22b1f0c4bede2543f10f8e2cbd6ff78d981d3",
|
||||||
|
[
|
||||||
|
null,
|
||||||
|
{}
|
||||||
|
]
|
||||||
|
],
|
||||||
"ar_hittest_subscription_inputSources.https.html": [
|
"ar_hittest_subscription_inputSources.https.html": [
|
||||||
"d419055ab264276ab6c2c2f064ab11785440bdfe",
|
"d419055ab264276ab6c2c2f064ab11785440bdfe",
|
||||||
[
|
[
|
||||||
|
@ -534169,6 +534290,240 @@
|
||||||
null,
|
null,
|
||||||
{}
|
{}
|
||||||
]
|
]
|
||||||
|
],
|
||||||
|
"catch.sub.any.js": [
|
||||||
|
"52da60be91f62ce048f5ae1a2f81a9307a734479",
|
||||||
|
[
|
||||||
|
"workers/interfaces/WorkerUtils/importScripts/catch.sub.any.serviceworker.html",
|
||||||
|
{
|
||||||
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"global",
|
||||||
|
"worker"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"workers/interfaces/WorkerUtils/importScripts/catch.sub.any.sharedworker.html",
|
||||||
|
{
|
||||||
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"global",
|
||||||
|
"worker"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"workers/interfaces/WorkerUtils/importScripts/catch.sub.any.worker.html",
|
||||||
|
{
|
||||||
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"global",
|
||||||
|
"worker"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"report-error-cross-origin.sub.any.js": [
|
||||||
|
"4fd8914856b5a6cb5a70849126110705c45ae51d",
|
||||||
|
[
|
||||||
|
"workers/interfaces/WorkerUtils/importScripts/report-error-cross-origin.sub.any.sharedworker.html",
|
||||||
|
{
|
||||||
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"global",
|
||||||
|
"dedicatedworker,sharedworker"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"report-error-helper.js"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"workers/interfaces/WorkerUtils/importScripts/report-error-cross-origin.sub.any.worker.html",
|
||||||
|
{
|
||||||
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"global",
|
||||||
|
"dedicatedworker,sharedworker"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"report-error-helper.js"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"report-error-redirect-to-cross-origin.sub.any.js": [
|
||||||
|
"2b9600973fb80a8cc8dc2da38818a7b7c1014e46",
|
||||||
|
[
|
||||||
|
"workers/interfaces/WorkerUtils/importScripts/report-error-redirect-to-cross-origin.sub.any.sharedworker.html",
|
||||||
|
{
|
||||||
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"global",
|
||||||
|
"dedicatedworker,sharedworker"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"report-error-helper.js"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"workers/interfaces/WorkerUtils/importScripts/report-error-redirect-to-cross-origin.sub.any.worker.html",
|
||||||
|
{
|
||||||
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"global",
|
||||||
|
"dedicatedworker,sharedworker"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"report-error-helper.js"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"report-error-same-origin.sub.any.js": [
|
||||||
|
"f7de416e117086f636f4bff69805d7d55d70e02b",
|
||||||
|
[
|
||||||
|
"workers/interfaces/WorkerUtils/importScripts/report-error-same-origin.sub.any.sharedworker.html",
|
||||||
|
{
|
||||||
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"global",
|
||||||
|
"dedicatedworker,sharedworker"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"report-error-helper.js"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"workers/interfaces/WorkerUtils/importScripts/report-error-same-origin.sub.any.worker.html",
|
||||||
|
{
|
||||||
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"global",
|
||||||
|
"dedicatedworker,sharedworker"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"report-error-helper.js"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"report-error-setTimeout-cross-origin.sub.any.js": [
|
||||||
|
"a1bbef7bc45a4455bf367d0ff7650f6d2910d037",
|
||||||
|
[
|
||||||
|
"workers/interfaces/WorkerUtils/importScripts/report-error-setTimeout-cross-origin.sub.any.sharedworker.html",
|
||||||
|
{
|
||||||
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"global",
|
||||||
|
"dedicatedworker,sharedworker"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"report-error-helper.js"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"workers/interfaces/WorkerUtils/importScripts/report-error-setTimeout-cross-origin.sub.any.worker.html",
|
||||||
|
{
|
||||||
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"global",
|
||||||
|
"dedicatedworker,sharedworker"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"report-error-helper.js"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"report-error-setTimeout-redirect-to-cross-origin.sub.any.js": [
|
||||||
|
"2755b337d3dacf1b1d545e467d950042c9fd91d0",
|
||||||
|
[
|
||||||
|
"workers/interfaces/WorkerUtils/importScripts/report-error-setTimeout-redirect-to-cross-origin.sub.any.sharedworker.html",
|
||||||
|
{
|
||||||
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"global",
|
||||||
|
"dedicatedworker,sharedworker"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"report-error-helper.js"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"workers/interfaces/WorkerUtils/importScripts/report-error-setTimeout-redirect-to-cross-origin.sub.any.worker.html",
|
||||||
|
{
|
||||||
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"global",
|
||||||
|
"dedicatedworker,sharedworker"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"report-error-helper.js"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"report-error-setTimeout-same-origin.sub.any.js": [
|
||||||
|
"c4f70ebec973de42c3e5ec00edbc6c9a765d8983",
|
||||||
|
[
|
||||||
|
"workers/interfaces/WorkerUtils/importScripts/report-error-setTimeout-same-origin.sub.any.sharedworker.html",
|
||||||
|
{
|
||||||
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"global",
|
||||||
|
"dedicatedworker,sharedworker"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"report-error-helper.js"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"workers/interfaces/WorkerUtils/importScripts/report-error-setTimeout-same-origin.sub.any.worker.html",
|
||||||
|
{
|
||||||
|
"script_metadata": [
|
||||||
|
[
|
||||||
|
"global",
|
||||||
|
"dedicatedworker,sharedworker"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
"report-error-helper.js"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"navigator": {
|
"navigator": {
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
[hit-test-floats-003.html]
|
|
||||||
[Miss float below something else]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
[hit-test-floats-005.html]
|
|
||||||
[Miss clipped float]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
[scrollbars-no-margin.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,4 @@
|
||||||
|
[CaretPosition-001.html]
|
||||||
|
[Element at (400, 100)]
|
||||||
|
expected: FAIL
|
||||||
|
|
|
@ -21,6 +21,3 @@
|
||||||
[test the top of layer]
|
[test the top of layer]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[test some point of the element: top left corner]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
[matchMedia-display-none-iframe.html]
|
||||||
|
expected: ERROR
|
|
@ -0,0 +1,2 @@
|
||||||
|
[HTMLMediaElement.html]
|
||||||
|
expected: TIMEOUT
|
|
@ -318,15 +318,12 @@
|
||||||
[<iframe>: separate response Content-Type: text/html;" text/plain]
|
[<iframe>: separate response Content-Type: text/html;" text/plain]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[<iframe>: combined response Content-Type: */* text/html]
|
[<iframe>: combined response Content-Type: */* text/html]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[<iframe>: separate response Content-Type: text/html */*]
|
[<iframe>: separate response Content-Type: text/html;x=" text/plain]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[<iframe>: combined response Content-Type: text/html */*;charset=gbk]
|
[<iframe>: separate response Content-Type: text/html;" \\" text/plain]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,3 @@
|
||||||
[separate text/javascript x/x]
|
[separate text/javascript x/x]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[separate text/javascript ]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,3 @@
|
||||||
[X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!]
|
[X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[X-Content-Type-Options%3A%20%40%23%24%23%25%25%26%5E%26%5E*()()11!%2Cnosniff]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
[traverse_the_history_1.html]
|
|
||||||
[Multiple history traversals from the same task]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
[traverse_the_history_3.html]
|
||||||
|
[Multiple history traversals, last would be aborted]
|
||||||
|
expected: FAIL
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
[traverse_the_history_5.html]
|
||||||
|
[Multiple history traversals, last would be aborted]
|
||||||
|
expected: FAIL
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
[cross-origin-objects-on-new-window.html]
|
|
||||||
expected: TIMEOUT
|
|
|
@ -1,5 +1,4 @@
|
||||||
[embedded-opener-remove-frame.html]
|
[embedded-opener-remove-frame.html]
|
||||||
expected: TIMEOUT
|
|
||||||
[opener and "removed" embedded documents]
|
[opener and "removed" embedded documents]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -7,5 +6,5 @@
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[opener of discarded auxiliary browsing context]
|
[opener of discarded auxiliary browsing context]
|
||||||
expected: TIMEOUT
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -39,3 +39,15 @@
|
||||||
[createImageBitmap in e-sRGB from an opaque sRGB Blob (BMP, GIF, ICO, JPG, PNG, WEBP) with resize.]
|
[createImageBitmap in e-sRGB from an opaque sRGB Blob (BMP, GIF, ICO, JPG, PNG, WEBP) with resize.]
|
||||||
expected: NOTRUN
|
expected: NOTRUN
|
||||||
|
|
||||||
|
[createImageBitmap in e-sRGB from an opaque sRGB HTMLImageElement (AVIF, BMP, GIF, ICO, JPG, PNG, WEBP) with resize.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[createImageBitmap in e-sRGB from a transparent sRGB HTMLImageElement (AVIF, BMP, ICO, PNG, WEBP) with resize.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[createImageBitmap in e-sRGB from a transparent sRGB Blob (AVIF, BMP, ICO, PNG, WEBP) with resize.]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
||||||
|
[createImageBitmap in e-sRGB from an opaque sRGB Blob (AVIF, BMP, GIF, ICO, JPG, PNG, WEBP) with resize.]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[iframe_sandbox_popups_escaping-2.html]
|
[iframe_sandbox_popups_escaping-2.html]
|
||||||
expected: CRASH
|
expected: TIMEOUT
|
||||||
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
|
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
|
||||||
expected: FAIL
|
expected: TIMEOUT
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[iframe_sandbox_popups_nonescaping-1.html]
|
[iframe_sandbox_popups_nonescaping-1.html]
|
||||||
type: testharness
|
type: testharness
|
||||||
expected: CRASH
|
expected: TIMEOUT
|
||||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||||
expected: NOTRUN
|
expected: NOTRUN
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[iframe_sandbox_popups_nonescaping-2.html]
|
[iframe_sandbox_popups_nonescaping-2.html]
|
||||||
type: testharness
|
type: testharness
|
||||||
expected: CRASH
|
expected: TIMEOUT
|
||||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||||
expected: FAIL
|
expected: NOTRUN
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
[form-double-submit-3.html]
|
||||||
|
[<button> should have the same double-submit protection as <input type=submit>]
|
||||||
|
expected: FAIL
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
[module-static-import-delayed.html]
|
|
||||||
[document.write in an imported module]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -4,6 +4,3 @@
|
||||||
[The incumbent settings object while executing the compiled callback via Web IDL's invoke must be that of the node document]
|
[The incumbent settings object while executing the compiled callback via Web IDL's invoke must be that of the node document]
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
|
|
||||||
[The entry settings object while executing the compiled callback via Web IDL's invoke must be that of the node document]
|
|
||||||
expected: TIMEOUT
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
[realtimeanalyser-fft-scaling.html]
|
[realtimeanalyser-fft-scaling.html]
|
||||||
|
expected: TIMEOUT
|
||||||
[X 2048-point FFT peak position is not equal to 64. Got 0.]
|
[X 2048-point FFT peak position is not equal to 64. Got 0.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[017.html]
|
|
||||||
expected: TIMEOUT
|
|
||||||
[origin of the script that invoked the method, about:blank]
|
|
||||||
expected: TIMEOUT
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[017.html]
|
|
||||||
expected: TIMEOUT
|
|
||||||
[origin of the script that invoked the method, about:blank]
|
|
||||||
expected: TIMEOUT
|
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
[ar_hittest_source_cancel.https.html]
|
||||||
|
[Ensures transient input hit test source cancellation works when the session has not ended.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[Ensures hit test source cancellation works when the session has not ended.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[Ensures transient input hit test source cancellation works when the session has ended]
|
||||||
|
expected: FAIL
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
[catch.sub.any.worker.html]
|
||||||
|
[Redirect-to-Cross-origin throw]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[Cross-origin syntax error]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[Cross-origin throw]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[Redirect-to-cross-origin syntax error]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
||||||
|
[catch.sub.any.sharedworker.html]
|
||||||
|
expected: ERROR
|
||||||
|
|
||||||
|
[catch.sub.any.serviceworker.html]
|
||||||
|
expected: ERROR
|
|
@ -0,0 +1,13 @@
|
||||||
|
[report-error-cross-origin.sub.any.sharedworker.html]
|
||||||
|
expected: ERROR
|
||||||
|
|
||||||
|
[report-error-cross-origin.sub.any.worker.html]
|
||||||
|
[WorkerGlobalScope error event: lineno]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WorkerGlobalScope error event: error]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WorkerGlobalScope error event: filename]
|
||||||
|
expected: FAIL
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
[report-error-redirect-to-cross-origin.sub.any.sharedworker.html]
|
||||||
|
expected: ERROR
|
||||||
|
|
||||||
|
[report-error-redirect-to-cross-origin.sub.any.worker.html]
|
||||||
|
[WorkerGlobalScope error event: lineno]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WorkerGlobalScope error event: error]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WorkerGlobalScope error event: filename]
|
||||||
|
expected: FAIL
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
[report-error-same-origin.sub.any.worker.html]
|
||||||
|
|
||||||
|
[report-error-same-origin.sub.any.sharedworker.html]
|
||||||
|
expected: ERROR
|
|
@ -0,0 +1,13 @@
|
||||||
|
[report-error-setTimeout-cross-origin.sub.any.worker.html]
|
||||||
|
[WorkerGlobalScope error event: lineno]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WorkerGlobalScope error event: error]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WorkerGlobalScope error event: filename]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
||||||
|
[report-error-setTimeout-cross-origin.sub.any.sharedworker.html]
|
||||||
|
expected: ERROR
|
|
@ -0,0 +1,13 @@
|
||||||
|
[report-error-setTimeout-redirect-to-cross-origin.sub.any.worker.html]
|
||||||
|
[WorkerGlobalScope error event: lineno]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WorkerGlobalScope error event: error]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WorkerGlobalScope error event: filename]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
||||||
|
[report-error-setTimeout-redirect-to-cross-origin.sub.any.sharedworker.html]
|
||||||
|
expected: ERROR
|
|
@ -0,0 +1,4 @@
|
||||||
|
[report-error-setTimeout-same-origin.sub.any.sharedworker.html]
|
||||||
|
expected: ERROR
|
||||||
|
|
||||||
|
[report-error-setTimeout-same-origin.sub.any.worker.html]
|
|
@ -1,4 +0,0 @@
|
||||||
[getBoundingClientRect.html]
|
|
||||||
[getBoundingClientRect 1]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -3,23 +3,24 @@
|
||||||
promise_test(async testCase => {
|
promise_test(async testCase => {
|
||||||
const db = await createDatabase(testCase, db => {
|
const db = await createDatabase(testCase, db => {
|
||||||
const store = createBooksStore(testCase, db);
|
const store = createBooksStore(testCase, db);
|
||||||
let values = [
|
|
||||||
{isbn: 'one', title: 'title1'},
|
|
||||||
{isbn: 'two', title: 'title2'},
|
|
||||||
{isbn: 'three', title: 'title3'}
|
|
||||||
];
|
|
||||||
const putAllRequests = store.putAll(values);
|
|
||||||
putAllRequests.forEach(async request => {
|
|
||||||
await promiseForRequest(testCase, request);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
const txn = db.transaction(['books'], 'readwrite');
|
||||||
const txn = db.transaction(['books'], 'readonly');
|
|
||||||
const objectStore = txn.objectStore('books');
|
const objectStore = txn.objectStore('books');
|
||||||
const getRequest1 = objectStore.get('one');
|
let values = [
|
||||||
const getRequest2 = objectStore.get('two');
|
{isbn: 'one', title: 'title1'},
|
||||||
const getRequest3 = objectStore.get('three');
|
{isbn: 'two', title: 'title2'},
|
||||||
|
{isbn: 'three', title: 'title3'}
|
||||||
|
];
|
||||||
|
let putAllRequest = objectStore.putAll(values);
|
||||||
|
await promiseForRequest(testCase, putAllRequest);
|
||||||
await promiseForTransaction(testCase, txn);
|
await promiseForTransaction(testCase, txn);
|
||||||
|
|
||||||
|
const txn2 = db.transaction(['books'], 'readonly');
|
||||||
|
const objectStore2 = txn2.objectStore('books');
|
||||||
|
const getRequest1 = objectStore2.get('one');
|
||||||
|
const getRequest2 = objectStore2.get('two');
|
||||||
|
const getRequest3 = objectStore2.get('three');
|
||||||
|
await promiseForTransaction(testCase, txn2);
|
||||||
assert_array_equals(
|
assert_array_equals(
|
||||||
[getRequest1.result.title,
|
[getRequest1.result.title,
|
||||||
getRequest2.result.title,
|
getRequest2.result.title,
|
||||||
|
@ -27,4 +28,4 @@ promise_test(async testCase => {
|
||||||
['title1', 'title2', 'title3'],
|
['title1', 'title2', 'title3'],
|
||||||
'All three retrieved titles should match those that were put.');
|
'All three retrieved titles should match those that were put.');
|
||||||
db.close();
|
db.close();
|
||||||
}, 'Data can be successfully inputted into an object store using putAll.');
|
}, 'Data can be successfully inputted into an object store using putAll.');
|
||||||
|
|
|
@ -18,12 +18,14 @@
|
||||||
|
|
||||||
const setupAnimation = (t, animationStyle) => {
|
const setupAnimation = (t, animationStyle) => {
|
||||||
const div = addDiv(t, { style: 'animation: ' + animationStyle });
|
const div = addDiv(t, { style: 'animation: ' + animationStyle });
|
||||||
|
const animation = div.getAnimations()[0];
|
||||||
|
const timeoutPromise = armTimeoutWhenReady(animation, fastEventsTimeout);
|
||||||
|
|
||||||
const watcher = new EventWatcher(t, div, [ 'animationstart',
|
const watcher = new EventWatcher(t, div, [ 'animationstart',
|
||||||
'animationiteration',
|
'animationiteration',
|
||||||
'animationend',
|
'animationend',
|
||||||
'animationcancel' ],
|
'animationcancel' ],
|
||||||
fastEventsTimeout);
|
timeoutPromise);
|
||||||
const animation = div.getAnimations()[0];
|
|
||||||
|
|
||||||
return { animation, watcher, div };
|
return { animation, watcher, div };
|
||||||
};
|
};
|
||||||
|
|
|
@ -201,6 +201,21 @@ function fastEventsTimeout() {
|
||||||
return waitForAnimationFrames(2);
|
return waitForAnimationFrames(2);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Timeout function used for tests with EventWatchers. The client agent has no
|
||||||
|
* strict requirement for how long it takes to resolve the ready promise. Once
|
||||||
|
* the promise is resolved a secondary timeout promise is armed that may have
|
||||||
|
* a tight deadline measured in animation frames.
|
||||||
|
*/
|
||||||
|
function armTimeoutWhenReady(animation, timeoutPromise) {
|
||||||
|
return () => {
|
||||||
|
if (animation.pending)
|
||||||
|
return animation.ready.then(() => { return timeoutPromise(); });
|
||||||
|
else
|
||||||
|
return timeoutPromise();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrapper that takes a sequence of N animations and returns:
|
* Wrapper that takes a sequence of N animations and returns:
|
||||||
*
|
*
|
||||||
|
|
|
@ -0,0 +1,118 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<script src="support/scrollbars.js"></script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.horizontal-header {
|
||||||
|
width: 120px;
|
||||||
|
}
|
||||||
|
.vertical-header {
|
||||||
|
width: 60px;
|
||||||
|
}
|
||||||
|
.container-row {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
.container {
|
||||||
|
flex: none;
|
||||||
|
margin: 5px;
|
||||||
|
}
|
||||||
|
.ltr {
|
||||||
|
direction: ltr;
|
||||||
|
}
|
||||||
|
.rtl {
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
|
.horizontal {
|
||||||
|
writing-mode: horizontal-tb;
|
||||||
|
}
|
||||||
|
.flipped-blocks {
|
||||||
|
writing-mode: vertical-rl;
|
||||||
|
}
|
||||||
|
.flipped-lines {
|
||||||
|
writing-mode: vertical-lr;
|
||||||
|
}
|
||||||
|
.flex {
|
||||||
|
border: 2px solid red;
|
||||||
|
overflow: scroll;
|
||||||
|
max-width: 100px;
|
||||||
|
max-height: 100px;
|
||||||
|
white-space: nowrap;
|
||||||
|
font-size: 0;
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: black white;
|
||||||
|
}
|
||||||
|
.row > div, .row-reverse > div {
|
||||||
|
display: inline-flex;
|
||||||
|
}
|
||||||
|
.column > div, .column-reverse > div {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex > div {
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
border: 2px solid blue;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.flex > div > div {
|
||||||
|
font-size: 20px;
|
||||||
|
text-align: center;
|
||||||
|
flex: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<div class="container-row">
|
||||||
|
<div class="vertical-header ltr horizontal"></div>
|
||||||
|
<div class="horizontal-header ltr horizontal">ltr<br>horizontal-tb</div>
|
||||||
|
<div class="vertical-header ltr flipped-blocks">ltr<br>vertical-rl</div>
|
||||||
|
<div class="vertical-header ltr flipped-blocks">ltr<br>vertical-lr</div>
|
||||||
|
<div class="horizontal-header rtl horizontal">rtl<br>horizontal-tb</div>
|
||||||
|
<div class="vertical-header rtl flipped-blocks">rtl<br>vertical-rl</div>
|
||||||
|
<div class="vertical-header rtl flipped-blocks">rtl<br>vertical-lr</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// Override createContentNode to emulate reverse flow direction.
|
||||||
|
createContentNode = (flexDirection, textDirection, writingMode) => {
|
||||||
|
var flexNode = document.createElement("div");
|
||||||
|
flexNode.className = "flex " + flexDirection;
|
||||||
|
flexNode.title = "flex-direction: " + flexDirection + "; direction: " + textDirection + "; writing-mode: " + writingMode;
|
||||||
|
for (var i = 1; i < 4; i++)
|
||||||
|
flexNode.appendChild(createLeafNode(flexDirection.endsWith("reverse") ? 4 - i : i));
|
||||||
|
return flexNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
flexDirections.forEach((flexDirection) => {
|
||||||
|
var containerRow = createContainerRow(flexDirection);
|
||||||
|
document.body.appendChild(containerRow);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Scroll all flex containers to the emulated beginning of flow.
|
||||||
|
var nodes = document.querySelectorAll(".ltr > .row-reverse");
|
||||||
|
for (var i = 0; i < nodes.length; i++) {
|
||||||
|
nodes[i].scrollLeft = 10000;
|
||||||
|
nodes[i].scrollTop = 10000;
|
||||||
|
}
|
||||||
|
nodes = document.querySelectorAll(".rtl > .row-reverse");
|
||||||
|
for (var i = 0; i < nodes.length; i++) {
|
||||||
|
nodes[i].scrollLeft = -10000;
|
||||||
|
nodes[i].scrollTop = -10000;
|
||||||
|
}
|
||||||
|
nodes = document.querySelectorAll(".column-reverse");
|
||||||
|
for (var i = 0; i < nodes.length; i++) {
|
||||||
|
nodes[i].scrollLeft = 10000;
|
||||||
|
nodes[i].scrollTop = 10000;
|
||||||
|
}
|
||||||
|
nodes = document.querySelectorAll(".flipped-blocks > .column-reverse");
|
||||||
|
for (var i = 0; i < nodes.length; i++) {
|
||||||
|
nodes[i].scrollLeft = -10000;
|
||||||
|
nodes[i].scrollTop = 0;
|
||||||
|
}
|
||||||
|
</script>
|
|
@ -0,0 +1,99 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<head>
|
||||||
|
<title>Scrollbars inside flexbox with direction and writing-mode</title>
|
||||||
|
<link rel="author" title="Google, Inc." href="http://www.google.com/">
|
||||||
|
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
|
||||||
|
<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
|
||||||
|
<link rel="match" href="scrollbars-no-margin-ref.html">
|
||||||
|
<link rel="help" href="https://drafts.csswg.org/css-flexbox/">
|
||||||
|
|
||||||
|
<script src="support/scrollbars.js"></script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.horizontal-header {
|
||||||
|
width: 120px;
|
||||||
|
}
|
||||||
|
.vertical-header {
|
||||||
|
width: 60px;
|
||||||
|
}
|
||||||
|
.container-row {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
.container {
|
||||||
|
flex: none;
|
||||||
|
margin: 5px;
|
||||||
|
}
|
||||||
|
.ltr {
|
||||||
|
direction: ltr;
|
||||||
|
}
|
||||||
|
.rtl {
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
|
.horizontal {
|
||||||
|
writing-mode: horizontal-tb;
|
||||||
|
}
|
||||||
|
.flipped-blocks {
|
||||||
|
writing-mode: vertical-rl;
|
||||||
|
}
|
||||||
|
.flipped-lines {
|
||||||
|
writing-mode: vertical-lr;
|
||||||
|
}
|
||||||
|
.flex {
|
||||||
|
border: 2px solid red;
|
||||||
|
display: flex;
|
||||||
|
overflow: scroll;
|
||||||
|
max-width: 100px;
|
||||||
|
max-height: 100px;
|
||||||
|
font-size: 0;
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: black white;
|
||||||
|
}
|
||||||
|
.column {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.column-reverse {
|
||||||
|
flex-direction: column-reverse;
|
||||||
|
}
|
||||||
|
.row {
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
.row-reverse {
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
}
|
||||||
|
.flex > .leaf1, .flex > .leaf2, .flex > .leaf3 {
|
||||||
|
flex: none;
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
border: 2px solid blue;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.flex > div > div {
|
||||||
|
font-size: 20px;
|
||||||
|
text-align: center;
|
||||||
|
flex: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<div class="container-row">
|
||||||
|
<div class="vertical-header ltr horizontal"></div>
|
||||||
|
<div class="horizontal-header ltr horizontal">ltr<br>horizontal-tb</div>
|
||||||
|
<div class="vertical-header ltr flipped-blocks">ltr<br>vertical-rl</div>
|
||||||
|
<div class="vertical-header ltr flipped-blocks">ltr<br>vertical-lr</div>
|
||||||
|
<div class="horizontal-header rtl horizontal">rtl<br>horizontal-tb</div>
|
||||||
|
<div class="vertical-header rtl flipped-blocks">rtl<br>vertical-rl</div>
|
||||||
|
<div class="vertical-header rtl flipped-blocks">rtl<br>vertical-lr</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
flexDirections.forEach((flexDirection) => {
|
||||||
|
var containerRow = createContainerRow(flexDirection);
|
||||||
|
document.body.appendChild(containerRow);
|
||||||
|
});
|
||||||
|
</script>
|
|
@ -0,0 +1,33 @@
|
||||||
|
<!doctype html>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<script src='/resources/testharness.js'></script>
|
||||||
|
<script src='/resources/testharnessreport.js'></script>
|
||||||
|
<link rel="author" title="Aleks Totic" href="mailto:atotic@chromium.org">
|
||||||
|
<link rel="help" href="https://www.w3.org/TR/CSS2/tables.html#dynamic-effects">
|
||||||
|
<style>
|
||||||
|
table { background: red;}
|
||||||
|
td { background:green; padding: 0;}
|
||||||
|
</style>
|
||||||
|
<main>
|
||||||
|
<h1>Visibility collapse changes table height even when its height is fixed</h1>
|
||||||
|
|
||||||
|
<table style="height:150px;border-spacing: 0">
|
||||||
|
<tr>
|
||||||
|
<td style="width:50px">a</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="visibility:collapse">
|
||||||
|
<td style="width:100px">hello</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>b</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</main>
|
||||||
|
<script>
|
||||||
|
test(function() {
|
||||||
|
let t = document.querySelector("table");
|
||||||
|
assert_equals(t.offsetWidth, 100);
|
||||||
|
assert_equals(t.offsetHeight, 100);
|
||||||
|
}, "collapsed row shrinks table height");
|
||||||
|
</script>
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<title>transform interpolation</title>
|
<title>transform interpolation</title>
|
||||||
<link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-property">
|
<link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-property">
|
||||||
<meta name="assert" content="transform supports animation as a transform list">
|
<meta name="assert" content="transform supports animation as a transform list">
|
||||||
|
<meta name="timeout" content="long">
|
||||||
|
|
||||||
<script src="/resources/testharness.js"></script>
|
<script src="/resources/testharness.js"></script>
|
||||||
<script src="/resources/testharnessreport.js"></script>
|
<script src="/resources/testharnessreport.js"></script>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<title>transform interpolation</title>
|
<title>transform interpolation</title>
|
||||||
<link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-property">
|
<link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-property">
|
||||||
<meta name="assert" content="transform supports animation as a transform list">
|
<meta name="assert" content="transform supports animation as a transform list">
|
||||||
|
<meta name="timeout" content="long">
|
||||||
<script src="/resources/testharness.js"></script>
|
<script src="/resources/testharness.js"></script>
|
||||||
<script src="/resources/testharnessreport.js"></script>
|
<script src="/resources/testharnessreport.js"></script>
|
||||||
<script src="/css/support/interpolation-testcommon.js"></script>
|
<script src="/css/support/interpolation-testcommon.js"></script>
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<title>translate interpolation</title>
|
<title>translate interpolation</title>
|
||||||
<link rel="help" href="https://drafts.csswg.org/css-transforms-2/#propdef-translate">
|
<link rel="help" href="https://drafts.csswg.org/css-transforms-2/#propdef-translate">
|
||||||
<meta name="assert" content="translate supports <length> and <percentage> animation.">
|
<meta name="assert" content="translate supports <length> and <percentage> animation.">
|
||||||
|
<meta name="timeout" content="long">
|
||||||
<script src="/resources/testharness.js"></script>
|
<script src="/resources/testharness.js"></script>
|
||||||
<script src="/resources/testharnessreport.js"></script>
|
<script src="/resources/testharnessreport.js"></script>
|
||||||
<script src="/css/support/interpolation-testcommon.js"></script>
|
<script src="/css/support/interpolation-testcommon.js"></script>
|
||||||
|
|
|
@ -284,9 +284,9 @@ function initializeTestCanvasTransparent(canvasColorSpace, canvasPixelFormat)
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// HTMLImageElement - Opaque sRGB
|
// HTMLImageElement - Opaque sRGB
|
||||||
// File formats: Bitmap, GIF, ICO, JPEG, PNG, WEBP
|
// File formats: AVIF, Bitmap, GIF, ICO, JPEG, PNG, WEBP
|
||||||
promise_test(function() {
|
promise_test(function() {
|
||||||
return Promise.all(['bmp', 'gif', 'ico', 'jpg', 'png', 'webp'].map(
|
return Promise.all(['avif', 'bmp', 'gif', 'ico', 'jpg', 'png', 'webp'].map(
|
||||||
ext => new Promise((resolve,reject) => {
|
ext => new Promise((resolve,reject) => {
|
||||||
var image = new Image();
|
var image = new Image();
|
||||||
image.onload = function() {
|
image.onload = function() {
|
||||||
|
@ -294,13 +294,13 @@ promise_test(function() {
|
||||||
}
|
}
|
||||||
image.src = 'resources/pattern-srgb.' + ext;
|
image.src = 'resources/pattern-srgb.' + ext;
|
||||||
}).then(testImageBitmapOpaque)));
|
}).then(testImageBitmapOpaque)));
|
||||||
}, 'createImageBitmap in e-sRGB from an opaque sRGB HTMLImageElement (BMP, \
|
}, 'createImageBitmap in e-sRGB from an opaque sRGB HTMLImageElement (AVIF, \
|
||||||
GIF, ICO, JPG, PNG, WEBP) with resize.');
|
BMP, GIF, ICO, JPG, PNG, WEBP) with resize.');
|
||||||
|
|
||||||
// HTMLImageElement - Transparent sRGB
|
// HTMLImageElement - Transparent sRGB
|
||||||
// File formats: Bitmap, ICO, PNG, WEBP
|
// File formats: AVIF, Bitmap, ICO, PNG, WEBP
|
||||||
promise_test(function() {
|
promise_test(function() {
|
||||||
return Promise.all(['bmp', 'ico', 'png', 'webp'].map(
|
return Promise.all(['avif', 'bmp', 'ico', 'png', 'webp'].map(
|
||||||
ext => new Promise((resolve,reject) => {
|
ext => new Promise((resolve,reject) => {
|
||||||
var image = new Image();
|
var image = new Image();
|
||||||
image.onload = function() {
|
image.onload = function() {
|
||||||
|
@ -309,7 +309,7 @@ promise_test(function() {
|
||||||
image.src = 'resources/pattern-srgb-transparent.' + ext;
|
image.src = 'resources/pattern-srgb-transparent.' + ext;
|
||||||
}).then(testImageBitmapFromTransparentImage)));
|
}).then(testImageBitmapFromTransparentImage)));
|
||||||
}, 'createImageBitmap in e-sRGB from a transparent sRGB HTMLImageElement \
|
}, 'createImageBitmap in e-sRGB from a transparent sRGB HTMLImageElement \
|
||||||
(BMP, ICO, PNG, WEBP) with resize.');
|
(AVIF, BMP, ICO, PNG, WEBP) with resize.');
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
@ -369,9 +369,9 @@ promise_test(function() {
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// Blob from file - Opaque sRGB
|
// Blob from file - Opaque sRGB
|
||||||
// File formats: Bitmap, GIF, ICO, JPEG, PNG, WEBP
|
// File formats: AVIF, Bitmap, GIF, ICO, JPEG, PNG, WEBP
|
||||||
promise_test(function() {
|
promise_test(function() {
|
||||||
return Promise.all(['bmp', 'gif', 'ico', 'jpg', 'png', 'webp'].map(
|
return Promise.all(['avif', 'bmp', 'gif', 'ico', 'jpg', 'png', 'webp'].map(
|
||||||
ext => new Promise((resolve, reject) => {
|
ext => new Promise((resolve, reject) => {
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open("GET", 'resources/pattern-srgb.' + ext);
|
xhr.open("GET", 'resources/pattern-srgb.' + ext);
|
||||||
|
@ -381,13 +381,13 @@ promise_test(function() {
|
||||||
resolve(xhr.response);
|
resolve(xhr.response);
|
||||||
};
|
};
|
||||||
}).then(testImageBitmapOpaque)));
|
}).then(testImageBitmapOpaque)));
|
||||||
}, 'createImageBitmap in e-sRGB from an opaque sRGB Blob (BMP, GIF, ICO, JPG, \
|
}, 'createImageBitmap in e-sRGB from an opaque sRGB Blob (AVIF, BMP, GIF, ICO, \
|
||||||
PNG, WEBP) with resize.');
|
JPG, PNG, WEBP) with resize.');
|
||||||
|
|
||||||
// Blob form file - Transparent sRGB
|
// Blob form file - Transparent sRGB
|
||||||
// File formats: Bitmap, ICO, PNG, WEBP
|
// File formats: AVIF, Bitmap, ICO, PNG, WEBP
|
||||||
promise_test(function() {
|
promise_test(function() {
|
||||||
return Promise.all(['bmp', 'ico', 'png', 'webp'].map(
|
return Promise.all(['avif', 'bmp', 'ico', 'png', 'webp'].map(
|
||||||
ext => new Promise((resolve, reject) => {
|
ext => new Promise((resolve, reject) => {
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open("GET", 'resources/pattern-srgb-transparent.' + ext);
|
xhr.open("GET", 'resources/pattern-srgb-transparent.' + ext);
|
||||||
|
@ -397,8 +397,8 @@ promise_test(function() {
|
||||||
resolve(xhr.response);
|
resolve(xhr.response);
|
||||||
};
|
};
|
||||||
}).then(testImageBitmapFromTransparentImage)));
|
}).then(testImageBitmapFromTransparentImage)));
|
||||||
}, 'createImageBitmap in e-sRGB from a transparent sRGB Blob (BMP, ICO, PNG, \
|
}, 'createImageBitmap in e-sRGB from a transparent sRGB Blob (AVIF, BMP, ICO, \
|
||||||
WEBP) with resize.');
|
PNG, WEBP) with resize.');
|
||||||
|
|
||||||
// Color managed blob from canvas
|
// Color managed blob from canvas
|
||||||
function testCreateImageBitmapFromColorManagedBlob(pixelFormat, isTransparent) {
|
function testCreateImageBitmapFromColorManagedBlob(pixelFormat, isTransparent) {
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 529 B |
Binary file not shown.
After Width: | Height: | Size: 330 B |
|
@ -46,6 +46,7 @@ TRAILING WHITESPACE, INDENT TABS, CR AT EOL: *.wasm
|
||||||
TRAILING WHITESPACE, INDENT TABS, CR AT EOL: *.bmp
|
TRAILING WHITESPACE, INDENT TABS, CR AT EOL: *.bmp
|
||||||
TRAILING WHITESPACE, INDENT TABS, CR AT EOL: *.sxg
|
TRAILING WHITESPACE, INDENT TABS, CR AT EOL: *.sxg
|
||||||
TRAILING WHITESPACE, INDENT TABS, CR AT EOL: *.wbn
|
TRAILING WHITESPACE, INDENT TABS, CR AT EOL: *.wbn
|
||||||
|
TRAILING WHITESPACE, INDENT TABS, CR AT EOL: *.avif
|
||||||
|
|
||||||
## .gitignore
|
## .gitignore
|
||||||
W3C-TEST.ORG: .gitignore
|
W3C-TEST.ORG: .gitignore
|
||||||
|
@ -714,15 +715,16 @@ WEB-PLATFORM.TEST:web-bundle/subresource-loading/subresource-loading-from-web-bu
|
||||||
# https://github.com/web-platform-tests/wpt/issues/16455
|
# https://github.com/web-platform-tests/wpt/issues/16455
|
||||||
# Please consult with ecosystem-infra@chromium.org before adding more.
|
# Please consult with ecosystem-infra@chromium.org before adding more.
|
||||||
MISSING DEPENDENCY: resources/test-only-api.js
|
MISSING DEPENDENCY: resources/test-only-api.js
|
||||||
MISSING DEPENDENCY: idle-detection/interceptor.https.html
|
|
||||||
MISSING DEPENDENCY: credential-management/support/otpcredential-helper.js
|
|
||||||
MISSING DEPENDENCY: web-nfc/resources/nfc-helpers.js
|
|
||||||
MISSING DEPENDENCY: shape-detection/resources/shapedetection-helpers.js
|
|
||||||
MISSING DEPENDENCY: webxr/resources/webxr_util.js
|
|
||||||
MISSING DEPENDENCY: contacts/resources/helpers.js
|
MISSING DEPENDENCY: contacts/resources/helpers.js
|
||||||
|
MISSING DEPENDENCY: credential-management/support/otpcredential-helper.js
|
||||||
MISSING DEPENDENCY: generic-sensor/resources/generic-sensor-helpers.js
|
MISSING DEPENDENCY: generic-sensor/resources/generic-sensor-helpers.js
|
||||||
|
MISSING DEPENDENCY: idle-detection/interceptor.https.html
|
||||||
MISSING DEPENDENCY: orientation-event/resources/orientation-event-helpers.js
|
MISSING DEPENDENCY: orientation-event/resources/orientation-event-helpers.js
|
||||||
MISSING DEPENDENCY: screen_enumeration/resources/screenenumeration-helpers.js
|
MISSING DEPENDENCY: screen_enumeration/resources/screenenumeration-helpers.js
|
||||||
|
MISSING DEPENDENCY: shape-detection/resources/shapedetection-helpers.js
|
||||||
|
MISSING DEPENDENCY: web-nfc/resources/nfc-helpers.js
|
||||||
|
MISSING DEPENDENCY: webusb/resources/usb-helpers.js
|
||||||
|
MISSING DEPENDENCY: webxr/resources/webxr_util.js
|
||||||
|
|
||||||
# Tests that are false positives for using Ahem as a system font
|
# Tests that are false positives for using Ahem as a system font
|
||||||
AHEM SYSTEM FONT: acid/acid3/test.html
|
AHEM SYSTEM FONT: acid/acid3/test.html
|
||||||
|
|
|
@ -77,8 +77,6 @@ function makeImageCaptureTest(hasPanTiltZoomPermissionGranted) {
|
||||||
'focusMode');
|
'focusMode');
|
||||||
}
|
}
|
||||||
|
|
||||||
assert_true(capabilities.exposureCompensation instanceof
|
|
||||||
MediaSettingsRange);
|
|
||||||
assert_equals(capabilities.exposureCompensation.max,
|
assert_equals(capabilities.exposureCompensation.max,
|
||||||
mockCapabilities.exposureCompensation.max);
|
mockCapabilities.exposureCompensation.max);
|
||||||
assert_equals(capabilities.exposureCompensation.min,
|
assert_equals(capabilities.exposureCompensation.min,
|
||||||
|
@ -86,8 +84,6 @@ function makeImageCaptureTest(hasPanTiltZoomPermissionGranted) {
|
||||||
assert_equals(capabilities.exposureCompensation.step,
|
assert_equals(capabilities.exposureCompensation.step,
|
||||||
mockCapabilities.exposureCompensation.step);
|
mockCapabilities.exposureCompensation.step);
|
||||||
|
|
||||||
assert_true(capabilities.exposureTime instanceof
|
|
||||||
MediaSettingsRange);
|
|
||||||
assert_equals(capabilities.exposureTime.max,
|
assert_equals(capabilities.exposureTime.max,
|
||||||
mockCapabilities.exposureTime.max);
|
mockCapabilities.exposureTime.max);
|
||||||
assert_equals(capabilities.exposureTime.min,
|
assert_equals(capabilities.exposureTime.min,
|
||||||
|
@ -95,8 +91,6 @@ function makeImageCaptureTest(hasPanTiltZoomPermissionGranted) {
|
||||||
assert_equals(capabilities.exposureTime.step,
|
assert_equals(capabilities.exposureTime.step,
|
||||||
mockCapabilities.exposureTime.step);
|
mockCapabilities.exposureTime.step);
|
||||||
|
|
||||||
assert_true(capabilities.colorTemperature instanceof
|
|
||||||
MediaSettingsRange);
|
|
||||||
assert_equals(capabilities.colorTemperature.max,
|
assert_equals(capabilities.colorTemperature.max,
|
||||||
mockCapabilities.colorTemperature.max);
|
mockCapabilities.colorTemperature.max);
|
||||||
assert_equals(capabilities.colorTemperature.min,
|
assert_equals(capabilities.colorTemperature.min,
|
||||||
|
@ -104,12 +98,10 @@ function makeImageCaptureTest(hasPanTiltZoomPermissionGranted) {
|
||||||
assert_equals(capabilities.colorTemperature.step,
|
assert_equals(capabilities.colorTemperature.step,
|
||||||
mockCapabilities.colorTemperature.step);
|
mockCapabilities.colorTemperature.step);
|
||||||
|
|
||||||
assert_true(capabilities.iso instanceof MediaSettingsRange);
|
|
||||||
assert_equals(capabilities.iso.max, mockCapabilities.iso.max);
|
assert_equals(capabilities.iso.max, mockCapabilities.iso.max);
|
||||||
assert_equals(capabilities.iso.min, mockCapabilities.iso.min);
|
assert_equals(capabilities.iso.min, mockCapabilities.iso.min);
|
||||||
assert_equals(capabilities.iso.step, mockCapabilities.iso.step);
|
assert_equals(capabilities.iso.step, mockCapabilities.iso.step);
|
||||||
|
|
||||||
assert_true(capabilities.brightness instanceof MediaSettingsRange);
|
|
||||||
assert_equals(capabilities.brightness.max,
|
assert_equals(capabilities.brightness.max,
|
||||||
mockCapabilities.brightness.max);
|
mockCapabilities.brightness.max);
|
||||||
assert_equals(capabilities.brightness.min,
|
assert_equals(capabilities.brightness.min,
|
||||||
|
@ -117,7 +109,6 @@ function makeImageCaptureTest(hasPanTiltZoomPermissionGranted) {
|
||||||
assert_equals(capabilities.brightness.step,
|
assert_equals(capabilities.brightness.step,
|
||||||
mockCapabilities.brightness.step);
|
mockCapabilities.brightness.step);
|
||||||
|
|
||||||
assert_true(capabilities.contrast instanceof MediaSettingsRange);
|
|
||||||
assert_equals(capabilities.contrast.max,
|
assert_equals(capabilities.contrast.max,
|
||||||
mockCapabilities.contrast.max);
|
mockCapabilities.contrast.max);
|
||||||
assert_equals(capabilities.contrast.min,
|
assert_equals(capabilities.contrast.min,
|
||||||
|
@ -125,7 +116,6 @@ function makeImageCaptureTest(hasPanTiltZoomPermissionGranted) {
|
||||||
assert_equals(capabilities.contrast.step,
|
assert_equals(capabilities.contrast.step,
|
||||||
mockCapabilities.contrast.step);
|
mockCapabilities.contrast.step);
|
||||||
|
|
||||||
assert_true(capabilities.saturation instanceof MediaSettingsRange);
|
|
||||||
assert_equals(capabilities.saturation.max,
|
assert_equals(capabilities.saturation.max,
|
||||||
mockCapabilities.saturation.max);
|
mockCapabilities.saturation.max);
|
||||||
assert_equals(capabilities.saturation.min,
|
assert_equals(capabilities.saturation.min,
|
||||||
|
@ -133,7 +123,6 @@ function makeImageCaptureTest(hasPanTiltZoomPermissionGranted) {
|
||||||
assert_equals(capabilities.saturation.step,
|
assert_equals(capabilities.saturation.step,
|
||||||
mockCapabilities.saturation.step);
|
mockCapabilities.saturation.step);
|
||||||
|
|
||||||
assert_true(capabilities.sharpness instanceof MediaSettingsRange);
|
|
||||||
assert_equals(capabilities.sharpness.max,
|
assert_equals(capabilities.sharpness.max,
|
||||||
mockCapabilities.sharpness.max);
|
mockCapabilities.sharpness.max);
|
||||||
assert_equals(capabilities.sharpness.min,
|
assert_equals(capabilities.sharpness.min,
|
||||||
|
@ -141,7 +130,6 @@ function makeImageCaptureTest(hasPanTiltZoomPermissionGranted) {
|
||||||
assert_equals(capabilities.sharpness.step,
|
assert_equals(capabilities.sharpness.step,
|
||||||
mockCapabilities.sharpness.step);
|
mockCapabilities.sharpness.step);
|
||||||
|
|
||||||
assert_true(capabilities.focusDistance instanceof MediaSettingsRange);
|
|
||||||
assert_equals(capabilities.focusDistance.max,
|
assert_equals(capabilities.focusDistance.max,
|
||||||
mockCapabilities.focusDistance.max);
|
mockCapabilities.focusDistance.max);
|
||||||
assert_equals(capabilities.focusDistance.min,
|
assert_equals(capabilities.focusDistance.min,
|
||||||
|
@ -150,17 +138,14 @@ function makeImageCaptureTest(hasPanTiltZoomPermissionGranted) {
|
||||||
mockCapabilities.focusDistance.step);
|
mockCapabilities.focusDistance.step);
|
||||||
|
|
||||||
if (ptzPermission === 'granted') {
|
if (ptzPermission === 'granted') {
|
||||||
assert_true(capabilities.pan instanceof MediaSettingsRange);
|
|
||||||
assert_equals(capabilities.pan.max, mockCapabilities.pan.max);
|
assert_equals(capabilities.pan.max, mockCapabilities.pan.max);
|
||||||
assert_equals(capabilities.pan.min, mockCapabilities.pan.min);
|
assert_equals(capabilities.pan.min, mockCapabilities.pan.min);
|
||||||
assert_equals(capabilities.pan.step, mockCapabilities.pan.step);
|
assert_equals(capabilities.pan.step, mockCapabilities.pan.step);
|
||||||
|
|
||||||
assert_true(capabilities.tilt instanceof MediaSettingsRange);
|
|
||||||
assert_equals(capabilities.tilt.max, mockCapabilities.tilt.max);
|
assert_equals(capabilities.tilt.max, mockCapabilities.tilt.max);
|
||||||
assert_equals(capabilities.tilt.min, mockCapabilities.tilt.min);
|
assert_equals(capabilities.tilt.min, mockCapabilities.tilt.min);
|
||||||
assert_equals(capabilities.tilt.step, mockCapabilities.tilt.step);
|
assert_equals(capabilities.tilt.step, mockCapabilities.tilt.step);
|
||||||
|
|
||||||
assert_true(capabilities.zoom instanceof MediaSettingsRange);
|
|
||||||
assert_equals(capabilities.zoom.max, mockCapabilities.zoom.max);
|
assert_equals(capabilities.zoom.max, mockCapabilities.zoom.max);
|
||||||
assert_equals(capabilities.zoom.min, mockCapabilities.zoom.min);
|
assert_equals(capabilities.zoom.min, mockCapabilities.zoom.min);
|
||||||
assert_equals(capabilities.zoom.step, mockCapabilities.zoom.step);
|
assert_equals(capabilities.zoom.step, mockCapabilities.zoom.step);
|
||||||
|
|
|
@ -22,17 +22,14 @@ image_capture_test(async (t, imageCaptureTest) => {
|
||||||
assert_true(typeof capturer.getPhotoCapabilities == 'function');
|
assert_true(typeof capturer.getPhotoCapabilities == 'function');
|
||||||
|
|
||||||
let capabilities = await capturer.getPhotoCapabilities();
|
let capabilities = await capturer.getPhotoCapabilities();
|
||||||
assert_true(capabilities instanceof PhotoCapabilities);
|
|
||||||
|
|
||||||
assert_equals(capabilities.redEyeReduction, 'controllable',
|
assert_equals(capabilities.redEyeReduction, 'controllable',
|
||||||
'redEyeReduction');
|
'redEyeReduction');
|
||||||
|
|
||||||
assert_true(capabilities.imageHeight instanceof MediaSettingsRange);
|
|
||||||
assert_equals(capabilities.imageHeight.max, mockCapabilities.height.max);
|
assert_equals(capabilities.imageHeight.max, mockCapabilities.height.max);
|
||||||
assert_equals(capabilities.imageHeight.min, mockCapabilities.height.min);
|
assert_equals(capabilities.imageHeight.min, mockCapabilities.height.min);
|
||||||
assert_equals(capabilities.imageHeight.step, mockCapabilities.height.step);
|
assert_equals(capabilities.imageHeight.step, mockCapabilities.height.step);
|
||||||
|
|
||||||
assert_true(capabilities.imageWidth instanceof MediaSettingsRange);
|
|
||||||
assert_equals(capabilities.imageWidth.max, mockCapabilities.width.max);
|
assert_equals(capabilities.imageWidth.max, mockCapabilities.width.max);
|
||||||
assert_equals(capabilities.imageWidth.min, mockCapabilities.width.min);
|
assert_equals(capabilities.imageWidth.min, mockCapabilities.width.min);
|
||||||
assert_equals(capabilities.imageWidth.step, mockCapabilities.width.step);
|
assert_equals(capabilities.imageWidth.step, mockCapabilities.width.step);
|
||||||
|
|
|
@ -1,263 +0,0 @@
|
||||||
// Copyright 2014 The Chromium Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
|
||||||
// found in the LICENSE file.
|
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
var mojomId = 'mojo/public/mojom/base/big_buffer.mojom';
|
|
||||||
if (mojo.internal.isMojomLoaded(mojomId)) {
|
|
||||||
console.warn('The following mojom is loaded multiple times: ' + mojomId);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
mojo.internal.markMojomLoaded(mojomId);
|
|
||||||
var bindings = mojo;
|
|
||||||
var associatedBindings = mojo;
|
|
||||||
var codec = mojo.internal;
|
|
||||||
var validator = mojo.internal;
|
|
||||||
|
|
||||||
var exports = mojo.internal.exposeNamespace('mojoBase.mojom');
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function BigBufferSharedMemoryRegion(values) {
|
|
||||||
this.initDefaults_();
|
|
||||||
this.initFields_(values);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
BigBufferSharedMemoryRegion.prototype.initDefaults_ = function() {
|
|
||||||
this.bufferHandle = null;
|
|
||||||
this.size = 0;
|
|
||||||
};
|
|
||||||
BigBufferSharedMemoryRegion.prototype.initFields_ = function(fields) {
|
|
||||||
for(var field in fields) {
|
|
||||||
if (this.hasOwnProperty(field))
|
|
||||||
this[field] = fields[field];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
BigBufferSharedMemoryRegion.validate = function(messageValidator, offset) {
|
|
||||||
var err;
|
|
||||||
err = messageValidator.validateStructHeader(offset, codec.kStructHeaderSize);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
var kVersionSizes = [
|
|
||||||
{version: 0, numBytes: 16}
|
|
||||||
];
|
|
||||||
err = messageValidator.validateStructVersion(offset, kVersionSizes);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
|
|
||||||
// validate BigBufferSharedMemoryRegion.bufferHandle
|
|
||||||
err = messageValidator.validateHandle(offset + codec.kStructHeaderSize + 0, false)
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
};
|
|
||||||
|
|
||||||
BigBufferSharedMemoryRegion.encodedSize = codec.kStructHeaderSize + 8;
|
|
||||||
|
|
||||||
BigBufferSharedMemoryRegion.decode = function(decoder) {
|
|
||||||
var packed;
|
|
||||||
var val = new BigBufferSharedMemoryRegion();
|
|
||||||
var numberOfBytes = decoder.readUint32();
|
|
||||||
var version = decoder.readUint32();
|
|
||||||
val.bufferHandle = decoder.decodeStruct(codec.Handle);
|
|
||||||
val.size = decoder.decodeStruct(codec.Uint32);
|
|
||||||
return val;
|
|
||||||
};
|
|
||||||
|
|
||||||
BigBufferSharedMemoryRegion.encode = function(encoder, val) {
|
|
||||||
var packed;
|
|
||||||
encoder.writeUint32(BigBufferSharedMemoryRegion.encodedSize);
|
|
||||||
encoder.writeUint32(0);
|
|
||||||
encoder.encodeStruct(codec.Handle, val.bufferHandle);
|
|
||||||
encoder.encodeStruct(codec.Uint32, val.size);
|
|
||||||
};
|
|
||||||
|
|
||||||
function BigBuffer(value) {
|
|
||||||
this.initDefault_();
|
|
||||||
this.initValue_(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
BigBuffer.Tags = {
|
|
||||||
bytes: 0,
|
|
||||||
sharedMemory: 1,
|
|
||||||
invalidBuffer: 2,
|
|
||||||
};
|
|
||||||
|
|
||||||
BigBuffer.prototype.initDefault_ = function() {
|
|
||||||
this.$data = null;
|
|
||||||
this.$tag = undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
BigBuffer.prototype.initValue_ = function(value) {
|
|
||||||
if (value == undefined) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var keys = Object.keys(value);
|
|
||||||
if (keys.length == 0) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (keys.length > 1) {
|
|
||||||
throw new TypeError("You may set only one member on a union.");
|
|
||||||
}
|
|
||||||
|
|
||||||
var fields = [
|
|
||||||
"bytes",
|
|
||||||
"sharedMemory",
|
|
||||||
"invalidBuffer",
|
|
||||||
];
|
|
||||||
|
|
||||||
if (fields.indexOf(keys[0]) < 0) {
|
|
||||||
throw new ReferenceError(keys[0] + " is not a BigBuffer member.");
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
this[keys[0]] = value[keys[0]];
|
|
||||||
}
|
|
||||||
Object.defineProperty(BigBuffer.prototype, "bytes", {
|
|
||||||
get: function() {
|
|
||||||
if (this.$tag != BigBuffer.Tags.bytes) {
|
|
||||||
throw new ReferenceError(
|
|
||||||
"BigBuffer.bytes is not currently set.");
|
|
||||||
}
|
|
||||||
return this.$data;
|
|
||||||
},
|
|
||||||
|
|
||||||
set: function(value) {
|
|
||||||
this.$tag = BigBuffer.Tags.bytes;
|
|
||||||
this.$data = value;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
Object.defineProperty(BigBuffer.prototype, "sharedMemory", {
|
|
||||||
get: function() {
|
|
||||||
if (this.$tag != BigBuffer.Tags.sharedMemory) {
|
|
||||||
throw new ReferenceError(
|
|
||||||
"BigBuffer.sharedMemory is not currently set.");
|
|
||||||
}
|
|
||||||
return this.$data;
|
|
||||||
},
|
|
||||||
|
|
||||||
set: function(value) {
|
|
||||||
this.$tag = BigBuffer.Tags.sharedMemory;
|
|
||||||
this.$data = value;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
Object.defineProperty(BigBuffer.prototype, "invalidBuffer", {
|
|
||||||
get: function() {
|
|
||||||
if (this.$tag != BigBuffer.Tags.invalidBuffer) {
|
|
||||||
throw new ReferenceError(
|
|
||||||
"BigBuffer.invalidBuffer is not currently set.");
|
|
||||||
}
|
|
||||||
return this.$data;
|
|
||||||
},
|
|
||||||
|
|
||||||
set: function(value) {
|
|
||||||
this.$tag = BigBuffer.Tags.invalidBuffer;
|
|
||||||
this.$data = value;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
BigBuffer.encode = function(encoder, val) {
|
|
||||||
if (val == null) {
|
|
||||||
encoder.writeUint64(0);
|
|
||||||
encoder.writeUint64(0);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (val.$tag == undefined) {
|
|
||||||
throw new TypeError("Cannot encode unions with an unknown member set.");
|
|
||||||
}
|
|
||||||
|
|
||||||
encoder.writeUint32(16);
|
|
||||||
encoder.writeUint32(val.$tag);
|
|
||||||
switch (val.$tag) {
|
|
||||||
case BigBuffer.Tags.bytes:
|
|
||||||
encoder.encodeArrayPointer(codec.Uint8, val.bytes);
|
|
||||||
break;
|
|
||||||
case BigBuffer.Tags.sharedMemory:
|
|
||||||
encoder.encodeStructPointer(BigBufferSharedMemoryRegion, val.sharedMemory);
|
|
||||||
break;
|
|
||||||
case BigBuffer.Tags.invalidBuffer:
|
|
||||||
encoder.writeUint8(val.invalidBuffer ? 1 : 0);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
encoder.align();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
BigBuffer.decode = function(decoder) {
|
|
||||||
var size = decoder.readUint32();
|
|
||||||
if (size == 0) {
|
|
||||||
decoder.readUint32();
|
|
||||||
decoder.readUint64();
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
var result = new BigBuffer();
|
|
||||||
var tag = decoder.readUint32();
|
|
||||||
switch (tag) {
|
|
||||||
case BigBuffer.Tags.bytes:
|
|
||||||
result.bytes = decoder.decodeArrayPointer(codec.Uint8);
|
|
||||||
break;
|
|
||||||
case BigBuffer.Tags.sharedMemory:
|
|
||||||
result.sharedMemory = decoder.decodeStructPointer(BigBufferSharedMemoryRegion);
|
|
||||||
break;
|
|
||||||
case BigBuffer.Tags.invalidBuffer:
|
|
||||||
result.invalidBuffer = decoder.readUint8() ? true : false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
decoder.align();
|
|
||||||
|
|
||||||
return result;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
BigBuffer.validate = function(messageValidator, offset) {
|
|
||||||
var size = messageValidator.decodeUnionSize(offset);
|
|
||||||
if (size != 16) {
|
|
||||||
return validator.validationError.INVALID_UNION_SIZE;
|
|
||||||
}
|
|
||||||
|
|
||||||
var tag = messageValidator.decodeUnionTag(offset);
|
|
||||||
var data_offset = offset + 8;
|
|
||||||
var err;
|
|
||||||
switch (tag) {
|
|
||||||
case BigBuffer.Tags.bytes:
|
|
||||||
|
|
||||||
|
|
||||||
// validate BigBuffer.bytes
|
|
||||||
err = messageValidator.validateArrayPointer(data_offset, 1, codec.Uint8, false, [0], 0);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
break;
|
|
||||||
case BigBuffer.Tags.sharedMemory:
|
|
||||||
|
|
||||||
|
|
||||||
// validate BigBuffer.sharedMemory
|
|
||||||
err = messageValidator.validateStructPointer(data_offset, BigBufferSharedMemoryRegion, false);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
break;
|
|
||||||
case BigBuffer.Tags.invalidBuffer:
|
|
||||||
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
};
|
|
||||||
|
|
||||||
BigBuffer.encodedSize = 16;
|
|
||||||
exports.BigBufferSharedMemoryRegion = BigBufferSharedMemoryRegion;
|
|
||||||
exports.BigBuffer = BigBuffer;
|
|
||||||
})();
|
|
|
@ -1 +0,0 @@
|
||||||
Content-Type: text/javascript; charset=utf-8
|
|
File diff suppressed because it is too large
Load diff
|
@ -1 +0,0 @@
|
||||||
Content-Type: text/javascript; charset=utf-8
|
|
|
@ -1,184 +0,0 @@
|
||||||
// Copyright 2014 The Chromium Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
|
||||||
// found in the LICENSE file.
|
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
var mojomId = 'device/usb/public/mojom/device_enumeration_options.mojom';
|
|
||||||
if (mojo.internal.isMojomLoaded(mojomId)) {
|
|
||||||
console.warn('The following mojom is loaded multiple times: ' + mojomId);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
mojo.internal.markMojomLoaded(mojomId);
|
|
||||||
var bindings = mojo;
|
|
||||||
var associatedBindings = mojo;
|
|
||||||
var codec = mojo.internal;
|
|
||||||
var validator = mojo.internal;
|
|
||||||
|
|
||||||
var exports = mojo.internal.exposeNamespace('device.mojom');
|
|
||||||
var string16$ =
|
|
||||||
mojo.internal.exposeNamespace('mojoBase.mojom');
|
|
||||||
if (mojo.config.autoLoadMojomDeps) {
|
|
||||||
mojo.internal.loadMojomIfNecessary(
|
|
||||||
'mojo/public/mojom/base/string16.mojom', '../../../../mojo/public/mojom/base/string16.mojom.js');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function UsbDeviceFilter(values) {
|
|
||||||
this.initDefaults_();
|
|
||||||
this.initFields_(values);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
UsbDeviceFilter.prototype.initDefaults_ = function() {
|
|
||||||
this.hasVendorId = false;
|
|
||||||
this.hasProductId = false;
|
|
||||||
this.hasClassCode = false;
|
|
||||||
this.hasSubclassCode = false;
|
|
||||||
this.hasProtocolCode = false;
|
|
||||||
this.classCode = 0;
|
|
||||||
this.vendorId = 0;
|
|
||||||
this.productId = 0;
|
|
||||||
this.subclassCode = 0;
|
|
||||||
this.protocolCode = 0;
|
|
||||||
this.serialNumber = null;
|
|
||||||
};
|
|
||||||
UsbDeviceFilter.prototype.initFields_ = function(fields) {
|
|
||||||
for(var field in fields) {
|
|
||||||
if (this.hasOwnProperty(field))
|
|
||||||
this[field] = fields[field];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
UsbDeviceFilter.validate = function(messageValidator, offset) {
|
|
||||||
var err;
|
|
||||||
err = messageValidator.validateStructHeader(offset, codec.kStructHeaderSize);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
var kVersionSizes = [
|
|
||||||
{version: 0, numBytes: 24}
|
|
||||||
];
|
|
||||||
err = messageValidator.validateStructVersion(offset, kVersionSizes);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// validate UsbDeviceFilter.serialNumber
|
|
||||||
err = messageValidator.validateStructPointer(offset + codec.kStructHeaderSize + 8, string16$.String16, true);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
};
|
|
||||||
|
|
||||||
UsbDeviceFilter.encodedSize = codec.kStructHeaderSize + 16;
|
|
||||||
|
|
||||||
UsbDeviceFilter.decode = function(decoder) {
|
|
||||||
var packed;
|
|
||||||
var val = new UsbDeviceFilter();
|
|
||||||
var numberOfBytes = decoder.readUint32();
|
|
||||||
var version = decoder.readUint32();
|
|
||||||
packed = decoder.readUint8();
|
|
||||||
val.hasVendorId = (packed >> 0) & 1 ? true : false;
|
|
||||||
val.hasProductId = (packed >> 1) & 1 ? true : false;
|
|
||||||
val.hasClassCode = (packed >> 2) & 1 ? true : false;
|
|
||||||
val.hasSubclassCode = (packed >> 3) & 1 ? true : false;
|
|
||||||
val.hasProtocolCode = (packed >> 4) & 1 ? true : false;
|
|
||||||
val.classCode = decoder.decodeStruct(codec.Uint8);
|
|
||||||
val.vendorId = decoder.decodeStruct(codec.Uint16);
|
|
||||||
val.productId = decoder.decodeStruct(codec.Uint16);
|
|
||||||
val.subclassCode = decoder.decodeStruct(codec.Uint8);
|
|
||||||
val.protocolCode = decoder.decodeStruct(codec.Uint8);
|
|
||||||
val.serialNumber = decoder.decodeStructPointer(string16$.String16);
|
|
||||||
return val;
|
|
||||||
};
|
|
||||||
|
|
||||||
UsbDeviceFilter.encode = function(encoder, val) {
|
|
||||||
var packed;
|
|
||||||
encoder.writeUint32(UsbDeviceFilter.encodedSize);
|
|
||||||
encoder.writeUint32(0);
|
|
||||||
packed = 0;
|
|
||||||
packed |= (val.hasVendorId & 1) << 0
|
|
||||||
packed |= (val.hasProductId & 1) << 1
|
|
||||||
packed |= (val.hasClassCode & 1) << 2
|
|
||||||
packed |= (val.hasSubclassCode & 1) << 3
|
|
||||||
packed |= (val.hasProtocolCode & 1) << 4
|
|
||||||
encoder.writeUint8(packed);
|
|
||||||
encoder.encodeStruct(codec.Uint8, val.classCode);
|
|
||||||
encoder.encodeStruct(codec.Uint16, val.vendorId);
|
|
||||||
encoder.encodeStruct(codec.Uint16, val.productId);
|
|
||||||
encoder.encodeStruct(codec.Uint8, val.subclassCode);
|
|
||||||
encoder.encodeStruct(codec.Uint8, val.protocolCode);
|
|
||||||
encoder.encodeStructPointer(string16$.String16, val.serialNumber);
|
|
||||||
};
|
|
||||||
function UsbEnumerationOptions(values) {
|
|
||||||
this.initDefaults_();
|
|
||||||
this.initFields_(values);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
UsbEnumerationOptions.prototype.initDefaults_ = function() {
|
|
||||||
this.filters = null;
|
|
||||||
};
|
|
||||||
UsbEnumerationOptions.prototype.initFields_ = function(fields) {
|
|
||||||
for(var field in fields) {
|
|
||||||
if (this.hasOwnProperty(field))
|
|
||||||
this[field] = fields[field];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
UsbEnumerationOptions.validate = function(messageValidator, offset) {
|
|
||||||
var err;
|
|
||||||
err = messageValidator.validateStructHeader(offset, codec.kStructHeaderSize);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
var kVersionSizes = [
|
|
||||||
{version: 0, numBytes: 16}
|
|
||||||
];
|
|
||||||
err = messageValidator.validateStructVersion(offset, kVersionSizes);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
|
|
||||||
// validate UsbEnumerationOptions.filters
|
|
||||||
err = messageValidator.validateArrayPointer(offset + codec.kStructHeaderSize + 0, 8, new codec.PointerTo(UsbDeviceFilter), false, [0], 0);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
};
|
|
||||||
|
|
||||||
UsbEnumerationOptions.encodedSize = codec.kStructHeaderSize + 8;
|
|
||||||
|
|
||||||
UsbEnumerationOptions.decode = function(decoder) {
|
|
||||||
var packed;
|
|
||||||
var val = new UsbEnumerationOptions();
|
|
||||||
var numberOfBytes = decoder.readUint32();
|
|
||||||
var version = decoder.readUint32();
|
|
||||||
val.filters = decoder.decodeArrayPointer(new codec.PointerTo(UsbDeviceFilter));
|
|
||||||
return val;
|
|
||||||
};
|
|
||||||
|
|
||||||
UsbEnumerationOptions.encode = function(encoder, val) {
|
|
||||||
var packed;
|
|
||||||
encoder.writeUint32(UsbEnumerationOptions.encodedSize);
|
|
||||||
encoder.writeUint32(0);
|
|
||||||
encoder.encodeArrayPointer(new codec.PointerTo(UsbDeviceFilter), val.filters);
|
|
||||||
};
|
|
||||||
exports.UsbDeviceFilter = UsbDeviceFilter;
|
|
||||||
exports.UsbEnumerationOptions = UsbEnumerationOptions;
|
|
||||||
})();
|
|
|
@ -1 +0,0 @@
|
||||||
Content-Type: text/javascript; charset=utf-8
|
|
|
@ -1,262 +0,0 @@
|
||||||
// Copyright 2014 The Chromium Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
|
||||||
// found in the LICENSE file.
|
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
var mojomId = 'device/usb/public/mojom/device_manager_client.mojom';
|
|
||||||
if (mojo.internal.isMojomLoaded(mojomId)) {
|
|
||||||
console.warn('The following mojom is loaded multiple times: ' + mojomId);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
mojo.internal.markMojomLoaded(mojomId);
|
|
||||||
var bindings = mojo;
|
|
||||||
var associatedBindings = mojo;
|
|
||||||
var codec = mojo.internal;
|
|
||||||
var validator = mojo.internal;
|
|
||||||
|
|
||||||
var exports = mojo.internal.exposeNamespace('device.mojom');
|
|
||||||
var device$ =
|
|
||||||
mojo.internal.exposeNamespace('device.mojom');
|
|
||||||
if (mojo.config.autoLoadMojomDeps) {
|
|
||||||
mojo.internal.loadMojomIfNecessary(
|
|
||||||
'device/usb/public/mojom/device.mojom', 'device.mojom.js');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function UsbDeviceManagerClient_OnDeviceAdded_Params(values) {
|
|
||||||
this.initDefaults_();
|
|
||||||
this.initFields_(values);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
UsbDeviceManagerClient_OnDeviceAdded_Params.prototype.initDefaults_ = function() {
|
|
||||||
this.deviceInfo = null;
|
|
||||||
};
|
|
||||||
UsbDeviceManagerClient_OnDeviceAdded_Params.prototype.initFields_ = function(fields) {
|
|
||||||
for(var field in fields) {
|
|
||||||
if (this.hasOwnProperty(field))
|
|
||||||
this[field] = fields[field];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
UsbDeviceManagerClient_OnDeviceAdded_Params.validate = function(messageValidator, offset) {
|
|
||||||
var err;
|
|
||||||
err = messageValidator.validateStructHeader(offset, codec.kStructHeaderSize);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
var kVersionSizes = [
|
|
||||||
{version: 0, numBytes: 16}
|
|
||||||
];
|
|
||||||
err = messageValidator.validateStructVersion(offset, kVersionSizes);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
|
|
||||||
// validate UsbDeviceManagerClient_OnDeviceAdded_Params.deviceInfo
|
|
||||||
err = messageValidator.validateStructPointer(offset + codec.kStructHeaderSize + 0, device$.UsbDeviceInfo, false);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
};
|
|
||||||
|
|
||||||
UsbDeviceManagerClient_OnDeviceAdded_Params.encodedSize = codec.kStructHeaderSize + 8;
|
|
||||||
|
|
||||||
UsbDeviceManagerClient_OnDeviceAdded_Params.decode = function(decoder) {
|
|
||||||
var packed;
|
|
||||||
var val = new UsbDeviceManagerClient_OnDeviceAdded_Params();
|
|
||||||
var numberOfBytes = decoder.readUint32();
|
|
||||||
var version = decoder.readUint32();
|
|
||||||
val.deviceInfo = decoder.decodeStructPointer(device$.UsbDeviceInfo);
|
|
||||||
return val;
|
|
||||||
};
|
|
||||||
|
|
||||||
UsbDeviceManagerClient_OnDeviceAdded_Params.encode = function(encoder, val) {
|
|
||||||
var packed;
|
|
||||||
encoder.writeUint32(UsbDeviceManagerClient_OnDeviceAdded_Params.encodedSize);
|
|
||||||
encoder.writeUint32(0);
|
|
||||||
encoder.encodeStructPointer(device$.UsbDeviceInfo, val.deviceInfo);
|
|
||||||
};
|
|
||||||
function UsbDeviceManagerClient_OnDeviceRemoved_Params(values) {
|
|
||||||
this.initDefaults_();
|
|
||||||
this.initFields_(values);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
UsbDeviceManagerClient_OnDeviceRemoved_Params.prototype.initDefaults_ = function() {
|
|
||||||
this.deviceInfo = null;
|
|
||||||
};
|
|
||||||
UsbDeviceManagerClient_OnDeviceRemoved_Params.prototype.initFields_ = function(fields) {
|
|
||||||
for(var field in fields) {
|
|
||||||
if (this.hasOwnProperty(field))
|
|
||||||
this[field] = fields[field];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
UsbDeviceManagerClient_OnDeviceRemoved_Params.validate = function(messageValidator, offset) {
|
|
||||||
var err;
|
|
||||||
err = messageValidator.validateStructHeader(offset, codec.kStructHeaderSize);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
var kVersionSizes = [
|
|
||||||
{version: 0, numBytes: 16}
|
|
||||||
];
|
|
||||||
err = messageValidator.validateStructVersion(offset, kVersionSizes);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
|
|
||||||
// validate UsbDeviceManagerClient_OnDeviceRemoved_Params.deviceInfo
|
|
||||||
err = messageValidator.validateStructPointer(offset + codec.kStructHeaderSize + 0, device$.UsbDeviceInfo, false);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
};
|
|
||||||
|
|
||||||
UsbDeviceManagerClient_OnDeviceRemoved_Params.encodedSize = codec.kStructHeaderSize + 8;
|
|
||||||
|
|
||||||
UsbDeviceManagerClient_OnDeviceRemoved_Params.decode = function(decoder) {
|
|
||||||
var packed;
|
|
||||||
var val = new UsbDeviceManagerClient_OnDeviceRemoved_Params();
|
|
||||||
var numberOfBytes = decoder.readUint32();
|
|
||||||
var version = decoder.readUint32();
|
|
||||||
val.deviceInfo = decoder.decodeStructPointer(device$.UsbDeviceInfo);
|
|
||||||
return val;
|
|
||||||
};
|
|
||||||
|
|
||||||
UsbDeviceManagerClient_OnDeviceRemoved_Params.encode = function(encoder, val) {
|
|
||||||
var packed;
|
|
||||||
encoder.writeUint32(UsbDeviceManagerClient_OnDeviceRemoved_Params.encodedSize);
|
|
||||||
encoder.writeUint32(0);
|
|
||||||
encoder.encodeStructPointer(device$.UsbDeviceInfo, val.deviceInfo);
|
|
||||||
};
|
|
||||||
var kUsbDeviceManagerClient_OnDeviceAdded_Name = 0;
|
|
||||||
var kUsbDeviceManagerClient_OnDeviceRemoved_Name = 1;
|
|
||||||
|
|
||||||
function UsbDeviceManagerClientPtr(handleOrPtrInfo) {
|
|
||||||
this.ptr = new bindings.InterfacePtrController(UsbDeviceManagerClient,
|
|
||||||
handleOrPtrInfo);
|
|
||||||
}
|
|
||||||
|
|
||||||
function UsbDeviceManagerClientAssociatedPtr(associatedInterfacePtrInfo) {
|
|
||||||
this.ptr = new associatedBindings.AssociatedInterfacePtrController(
|
|
||||||
UsbDeviceManagerClient, associatedInterfacePtrInfo);
|
|
||||||
}
|
|
||||||
|
|
||||||
UsbDeviceManagerClientAssociatedPtr.prototype =
|
|
||||||
Object.create(UsbDeviceManagerClientPtr.prototype);
|
|
||||||
UsbDeviceManagerClientAssociatedPtr.prototype.constructor =
|
|
||||||
UsbDeviceManagerClientAssociatedPtr;
|
|
||||||
|
|
||||||
function UsbDeviceManagerClientProxy(receiver) {
|
|
||||||
this.receiver_ = receiver;
|
|
||||||
}
|
|
||||||
UsbDeviceManagerClientPtr.prototype.onDeviceAdded = function() {
|
|
||||||
return UsbDeviceManagerClientProxy.prototype.onDeviceAdded
|
|
||||||
.apply(this.ptr.getProxy(), arguments);
|
|
||||||
};
|
|
||||||
|
|
||||||
UsbDeviceManagerClientProxy.prototype.onDeviceAdded = function(deviceInfo) {
|
|
||||||
var params_ = new UsbDeviceManagerClient_OnDeviceAdded_Params();
|
|
||||||
params_.deviceInfo = deviceInfo;
|
|
||||||
var builder = new codec.MessageV0Builder(
|
|
||||||
kUsbDeviceManagerClient_OnDeviceAdded_Name,
|
|
||||||
codec.align(UsbDeviceManagerClient_OnDeviceAdded_Params.encodedSize));
|
|
||||||
builder.encodeStruct(UsbDeviceManagerClient_OnDeviceAdded_Params, params_);
|
|
||||||
var message = builder.finish();
|
|
||||||
this.receiver_.accept(message);
|
|
||||||
};
|
|
||||||
UsbDeviceManagerClientPtr.prototype.onDeviceRemoved = function() {
|
|
||||||
return UsbDeviceManagerClientProxy.prototype.onDeviceRemoved
|
|
||||||
.apply(this.ptr.getProxy(), arguments);
|
|
||||||
};
|
|
||||||
|
|
||||||
UsbDeviceManagerClientProxy.prototype.onDeviceRemoved = function(deviceInfo) {
|
|
||||||
var params_ = new UsbDeviceManagerClient_OnDeviceRemoved_Params();
|
|
||||||
params_.deviceInfo = deviceInfo;
|
|
||||||
var builder = new codec.MessageV0Builder(
|
|
||||||
kUsbDeviceManagerClient_OnDeviceRemoved_Name,
|
|
||||||
codec.align(UsbDeviceManagerClient_OnDeviceRemoved_Params.encodedSize));
|
|
||||||
builder.encodeStruct(UsbDeviceManagerClient_OnDeviceRemoved_Params, params_);
|
|
||||||
var message = builder.finish();
|
|
||||||
this.receiver_.accept(message);
|
|
||||||
};
|
|
||||||
|
|
||||||
function UsbDeviceManagerClientStub(delegate) {
|
|
||||||
this.delegate_ = delegate;
|
|
||||||
}
|
|
||||||
UsbDeviceManagerClientStub.prototype.onDeviceAdded = function(deviceInfo) {
|
|
||||||
return this.delegate_ && this.delegate_.onDeviceAdded && this.delegate_.onDeviceAdded(deviceInfo);
|
|
||||||
}
|
|
||||||
UsbDeviceManagerClientStub.prototype.onDeviceRemoved = function(deviceInfo) {
|
|
||||||
return this.delegate_ && this.delegate_.onDeviceRemoved && this.delegate_.onDeviceRemoved(deviceInfo);
|
|
||||||
}
|
|
||||||
|
|
||||||
UsbDeviceManagerClientStub.prototype.accept = function(message) {
|
|
||||||
var reader = new codec.MessageReader(message);
|
|
||||||
switch (reader.messageName) {
|
|
||||||
case kUsbDeviceManagerClient_OnDeviceAdded_Name:
|
|
||||||
var params = reader.decodeStruct(UsbDeviceManagerClient_OnDeviceAdded_Params);
|
|
||||||
this.onDeviceAdded(params.deviceInfo);
|
|
||||||
return true;
|
|
||||||
case kUsbDeviceManagerClient_OnDeviceRemoved_Name:
|
|
||||||
var params = reader.decodeStruct(UsbDeviceManagerClient_OnDeviceRemoved_Params);
|
|
||||||
this.onDeviceRemoved(params.deviceInfo);
|
|
||||||
return true;
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
UsbDeviceManagerClientStub.prototype.acceptWithResponder =
|
|
||||||
function(message, responder) {
|
|
||||||
var reader = new codec.MessageReader(message);
|
|
||||||
switch (reader.messageName) {
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
function validateUsbDeviceManagerClientRequest(messageValidator) {
|
|
||||||
var message = messageValidator.message;
|
|
||||||
var paramsClass = null;
|
|
||||||
switch (message.getName()) {
|
|
||||||
case kUsbDeviceManagerClient_OnDeviceAdded_Name:
|
|
||||||
if (!message.expectsResponse() && !message.isResponse())
|
|
||||||
paramsClass = UsbDeviceManagerClient_OnDeviceAdded_Params;
|
|
||||||
break;
|
|
||||||
case kUsbDeviceManagerClient_OnDeviceRemoved_Name:
|
|
||||||
if (!message.expectsResponse() && !message.isResponse())
|
|
||||||
paramsClass = UsbDeviceManagerClient_OnDeviceRemoved_Params;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (paramsClass === null)
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
return paramsClass.validate(messageValidator, messageValidator.message.getHeaderNumBytes());
|
|
||||||
}
|
|
||||||
|
|
||||||
function validateUsbDeviceManagerClientResponse(messageValidator) {
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
}
|
|
||||||
|
|
||||||
var UsbDeviceManagerClient = {
|
|
||||||
name: 'device.mojom.UsbDeviceManagerClient',
|
|
||||||
kVersion: 0,
|
|
||||||
ptrClass: UsbDeviceManagerClientPtr,
|
|
||||||
proxyClass: UsbDeviceManagerClientProxy,
|
|
||||||
stubClass: UsbDeviceManagerClientStub,
|
|
||||||
validateRequest: validateUsbDeviceManagerClientRequest,
|
|
||||||
validateResponse: null,
|
|
||||||
};
|
|
||||||
UsbDeviceManagerClientStub.prototype.validator = validateUsbDeviceManagerClientRequest;
|
|
||||||
UsbDeviceManagerClientProxy.prototype.validator = null;
|
|
||||||
exports.UsbDeviceManagerClient = UsbDeviceManagerClient;
|
|
||||||
exports.UsbDeviceManagerClientPtr = UsbDeviceManagerClientPtr;
|
|
||||||
exports.UsbDeviceManagerClientAssociatedPtr = UsbDeviceManagerClientAssociatedPtr;
|
|
||||||
})();
|
|
|
@ -1 +0,0 @@
|
||||||
Content-Type: text/javascript; charset=utf-8
|
|
|
@ -1,141 +0,0 @@
|
||||||
// Copyright 2014 The Chromium Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
|
||||||
// found in the LICENSE file.
|
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
var mojomId = 'mojo/public/mojom/base/string16.mojom';
|
|
||||||
if (mojo.internal.isMojomLoaded(mojomId)) {
|
|
||||||
console.warn('The following mojom is loaded multiple times: ' + mojomId);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
mojo.internal.markMojomLoaded(mojomId);
|
|
||||||
var bindings = mojo;
|
|
||||||
var associatedBindings = mojo;
|
|
||||||
var codec = mojo.internal;
|
|
||||||
var validator = mojo.internal;
|
|
||||||
|
|
||||||
var exports = mojo.internal.exposeNamespace('mojoBase.mojom');
|
|
||||||
var big_buffer$ =
|
|
||||||
mojo.internal.exposeNamespace('mojoBase.mojom');
|
|
||||||
if (mojo.config.autoLoadMojomDeps) {
|
|
||||||
mojo.internal.loadMojomIfNecessary(
|
|
||||||
'mojo/public/mojom/base/big_buffer.mojom', 'big_buffer.mojom.js');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function String16(values) {
|
|
||||||
this.initDefaults_();
|
|
||||||
this.initFields_(values);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
String16.prototype.initDefaults_ = function() {
|
|
||||||
this.data = null;
|
|
||||||
};
|
|
||||||
String16.prototype.initFields_ = function(fields) {
|
|
||||||
for(var field in fields) {
|
|
||||||
if (this.hasOwnProperty(field))
|
|
||||||
this[field] = fields[field];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
String16.validate = function(messageValidator, offset) {
|
|
||||||
var err;
|
|
||||||
err = messageValidator.validateStructHeader(offset, codec.kStructHeaderSize);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
var kVersionSizes = [
|
|
||||||
{version: 0, numBytes: 16}
|
|
||||||
];
|
|
||||||
err = messageValidator.validateStructVersion(offset, kVersionSizes);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
|
|
||||||
// validate String16.data
|
|
||||||
err = messageValidator.validateArrayPointer(offset + codec.kStructHeaderSize + 0, 2, codec.Uint16, false, [0], 0);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
};
|
|
||||||
|
|
||||||
String16.encodedSize = codec.kStructHeaderSize + 8;
|
|
||||||
|
|
||||||
String16.decode = function(decoder) {
|
|
||||||
var packed;
|
|
||||||
var val = new String16();
|
|
||||||
var numberOfBytes = decoder.readUint32();
|
|
||||||
var version = decoder.readUint32();
|
|
||||||
val.data = decoder.decodeArrayPointer(codec.Uint16);
|
|
||||||
return val;
|
|
||||||
};
|
|
||||||
|
|
||||||
String16.encode = function(encoder, val) {
|
|
||||||
var packed;
|
|
||||||
encoder.writeUint32(String16.encodedSize);
|
|
||||||
encoder.writeUint32(0);
|
|
||||||
encoder.encodeArrayPointer(codec.Uint16, val.data);
|
|
||||||
};
|
|
||||||
function BigString16(values) {
|
|
||||||
this.initDefaults_();
|
|
||||||
this.initFields_(values);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
BigString16.prototype.initDefaults_ = function() {
|
|
||||||
this.data = null;
|
|
||||||
};
|
|
||||||
BigString16.prototype.initFields_ = function(fields) {
|
|
||||||
for(var field in fields) {
|
|
||||||
if (this.hasOwnProperty(field))
|
|
||||||
this[field] = fields[field];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
BigString16.validate = function(messageValidator, offset) {
|
|
||||||
var err;
|
|
||||||
err = messageValidator.validateStructHeader(offset, codec.kStructHeaderSize);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
var kVersionSizes = [
|
|
||||||
{version: 0, numBytes: 24}
|
|
||||||
];
|
|
||||||
err = messageValidator.validateStructVersion(offset, kVersionSizes);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
|
|
||||||
// validate BigString16.data
|
|
||||||
err = messageValidator.validateUnion(offset + codec.kStructHeaderSize + 0, big_buffer$.BigBuffer, false);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
};
|
|
||||||
|
|
||||||
BigString16.encodedSize = codec.kStructHeaderSize + 16;
|
|
||||||
|
|
||||||
BigString16.decode = function(decoder) {
|
|
||||||
var packed;
|
|
||||||
var val = new BigString16();
|
|
||||||
var numberOfBytes = decoder.readUint32();
|
|
||||||
var version = decoder.readUint32();
|
|
||||||
val.data = decoder.decodeStruct(big_buffer$.BigBuffer);
|
|
||||||
return val;
|
|
||||||
};
|
|
||||||
|
|
||||||
BigString16.encode = function(encoder, val) {
|
|
||||||
var packed;
|
|
||||||
encoder.writeUint32(BigString16.encodedSize);
|
|
||||||
encoder.writeUint32(0);
|
|
||||||
encoder.encodeStruct(big_buffer$.BigBuffer, val.data);
|
|
||||||
};
|
|
||||||
exports.String16 = String16;
|
|
||||||
exports.BigString16 = BigString16;
|
|
||||||
})();
|
|
|
@ -1 +0,0 @@
|
||||||
Content-Type: text/javascript; charset=utf-8
|
|
|
@ -1,79 +0,0 @@
|
||||||
// Copyright 2014 The Chromium Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
|
||||||
// found in the LICENSE file.
|
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
var mojomId = 'url/mojom/url.mojom';
|
|
||||||
if (mojo.internal.isMojomLoaded(mojomId)) {
|
|
||||||
console.warn('The following mojom is loaded multiple times: ' + mojomId);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
mojo.internal.markMojomLoaded(mojomId);
|
|
||||||
var bindings = mojo;
|
|
||||||
var associatedBindings = mojo;
|
|
||||||
var codec = mojo.internal;
|
|
||||||
var validator = mojo.internal;
|
|
||||||
|
|
||||||
var exports = mojo.internal.exposeNamespace('url.mojom');
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function Url(values) {
|
|
||||||
this.initDefaults_();
|
|
||||||
this.initFields_(values);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Url.prototype.initDefaults_ = function() {
|
|
||||||
this.url = null;
|
|
||||||
};
|
|
||||||
Url.prototype.initFields_ = function(fields) {
|
|
||||||
for(var field in fields) {
|
|
||||||
if (this.hasOwnProperty(field))
|
|
||||||
this[field] = fields[field];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
Url.validate = function(messageValidator, offset) {
|
|
||||||
var err;
|
|
||||||
err = messageValidator.validateStructHeader(offset, codec.kStructHeaderSize);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
var kVersionSizes = [
|
|
||||||
{version: 0, numBytes: 16}
|
|
||||||
];
|
|
||||||
err = messageValidator.validateStructVersion(offset, kVersionSizes);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
|
|
||||||
// validate Url.url
|
|
||||||
err = messageValidator.validateStringPointer(offset + codec.kStructHeaderSize + 0, false)
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
};
|
|
||||||
|
|
||||||
Url.encodedSize = codec.kStructHeaderSize + 8;
|
|
||||||
|
|
||||||
Url.decode = function(decoder) {
|
|
||||||
var packed;
|
|
||||||
var val = new Url();
|
|
||||||
var numberOfBytes = decoder.readUint32();
|
|
||||||
var version = decoder.readUint32();
|
|
||||||
val.url = decoder.decodeStruct(codec.String);
|
|
||||||
return val;
|
|
||||||
};
|
|
||||||
|
|
||||||
Url.encode = function(encoder, val) {
|
|
||||||
var packed;
|
|
||||||
encoder.writeUint32(Url.encodedSize);
|
|
||||||
encoder.writeUint32(0);
|
|
||||||
encoder.encodeStruct(codec.String, val.url);
|
|
||||||
};
|
|
||||||
exports.Url = Url;
|
|
||||||
})();
|
|
|
@ -1,614 +0,0 @@
|
||||||
// Copyright 2014 The Chromium Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
|
||||||
// found in the LICENSE file.
|
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
var mojomId = 'third_party/blink/public/mojom/usb/web_usb_service.mojom';
|
|
||||||
if (mojo.internal.isMojomLoaded(mojomId)) {
|
|
||||||
console.warn('The following mojom is loaded multiple times: ' + mojomId);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
mojo.internal.markMojomLoaded(mojomId);
|
|
||||||
var bindings = mojo;
|
|
||||||
var associatedBindings = mojo;
|
|
||||||
var codec = mojo.internal;
|
|
||||||
var validator = mojo.internal;
|
|
||||||
|
|
||||||
var exports = mojo.internal.exposeNamespace('blink.mojom');
|
|
||||||
var device$ =
|
|
||||||
mojo.internal.exposeNamespace('device.mojom');
|
|
||||||
if (mojo.config.autoLoadMojomDeps) {
|
|
||||||
mojo.internal.loadMojomIfNecessary(
|
|
||||||
'device/usb/public/mojom/device.mojom', '../../../../../device/usb/public/mojom/device.mojom.js');
|
|
||||||
}
|
|
||||||
var device_enumeration_options$ =
|
|
||||||
mojo.internal.exposeNamespace('device.mojom');
|
|
||||||
if (mojo.config.autoLoadMojomDeps) {
|
|
||||||
mojo.internal.loadMojomIfNecessary(
|
|
||||||
'device/usb/public/mojom/device_enumeration_options.mojom', '../../../../../device/usb/public/mojom/device_enumeration_options.mojom.js');
|
|
||||||
}
|
|
||||||
var device_manager_client$ =
|
|
||||||
mojo.internal.exposeNamespace('device.mojom');
|
|
||||||
if (mojo.config.autoLoadMojomDeps) {
|
|
||||||
mojo.internal.loadMojomIfNecessary(
|
|
||||||
'device/usb/public/mojom/device_manager_client.mojom', '../../../../../device/usb/public/mojom/device_manager_client.mojom.js');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function WebUsbService_GetDevices_Params(values) {
|
|
||||||
this.initDefaults_();
|
|
||||||
this.initFields_(values);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
WebUsbService_GetDevices_Params.prototype.initDefaults_ = function() {
|
|
||||||
};
|
|
||||||
WebUsbService_GetDevices_Params.prototype.initFields_ = function(fields) {
|
|
||||||
for(var field in fields) {
|
|
||||||
if (this.hasOwnProperty(field))
|
|
||||||
this[field] = fields[field];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_GetDevices_Params.validate = function(messageValidator, offset) {
|
|
||||||
var err;
|
|
||||||
err = messageValidator.validateStructHeader(offset, codec.kStructHeaderSize);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
var kVersionSizes = [
|
|
||||||
{version: 0, numBytes: 8}
|
|
||||||
];
|
|
||||||
err = messageValidator.validateStructVersion(offset, kVersionSizes);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_GetDevices_Params.encodedSize = codec.kStructHeaderSize + 0;
|
|
||||||
|
|
||||||
WebUsbService_GetDevices_Params.decode = function(decoder) {
|
|
||||||
var packed;
|
|
||||||
var val = new WebUsbService_GetDevices_Params();
|
|
||||||
var numberOfBytes = decoder.readUint32();
|
|
||||||
var version = decoder.readUint32();
|
|
||||||
return val;
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_GetDevices_Params.encode = function(encoder, val) {
|
|
||||||
var packed;
|
|
||||||
encoder.writeUint32(WebUsbService_GetDevices_Params.encodedSize);
|
|
||||||
encoder.writeUint32(0);
|
|
||||||
};
|
|
||||||
function WebUsbService_GetDevices_ResponseParams(values) {
|
|
||||||
this.initDefaults_();
|
|
||||||
this.initFields_(values);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
WebUsbService_GetDevices_ResponseParams.prototype.initDefaults_ = function() {
|
|
||||||
this.results = null;
|
|
||||||
};
|
|
||||||
WebUsbService_GetDevices_ResponseParams.prototype.initFields_ = function(fields) {
|
|
||||||
for(var field in fields) {
|
|
||||||
if (this.hasOwnProperty(field))
|
|
||||||
this[field] = fields[field];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_GetDevices_ResponseParams.validate = function(messageValidator, offset) {
|
|
||||||
var err;
|
|
||||||
err = messageValidator.validateStructHeader(offset, codec.kStructHeaderSize);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
var kVersionSizes = [
|
|
||||||
{version: 0, numBytes: 16}
|
|
||||||
];
|
|
||||||
err = messageValidator.validateStructVersion(offset, kVersionSizes);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
|
|
||||||
// validate WebUsbService_GetDevices_ResponseParams.results
|
|
||||||
err = messageValidator.validateArrayPointer(offset + codec.kStructHeaderSize + 0, 8, new codec.PointerTo(device$.UsbDeviceInfo), false, [0], 0);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_GetDevices_ResponseParams.encodedSize = codec.kStructHeaderSize + 8;
|
|
||||||
|
|
||||||
WebUsbService_GetDevices_ResponseParams.decode = function(decoder) {
|
|
||||||
var packed;
|
|
||||||
var val = new WebUsbService_GetDevices_ResponseParams();
|
|
||||||
var numberOfBytes = decoder.readUint32();
|
|
||||||
var version = decoder.readUint32();
|
|
||||||
val.results = decoder.decodeArrayPointer(new codec.PointerTo(device$.UsbDeviceInfo));
|
|
||||||
return val;
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_GetDevices_ResponseParams.encode = function(encoder, val) {
|
|
||||||
var packed;
|
|
||||||
encoder.writeUint32(WebUsbService_GetDevices_ResponseParams.encodedSize);
|
|
||||||
encoder.writeUint32(0);
|
|
||||||
encoder.encodeArrayPointer(new codec.PointerTo(device$.UsbDeviceInfo), val.results);
|
|
||||||
};
|
|
||||||
function WebUsbService_GetDevice_Params(values) {
|
|
||||||
this.initDefaults_();
|
|
||||||
this.initFields_(values);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
WebUsbService_GetDevice_Params.prototype.initDefaults_ = function() {
|
|
||||||
this.guid = null;
|
|
||||||
this.deviceRequestd = new bindings.InterfaceRequest();
|
|
||||||
};
|
|
||||||
WebUsbService_GetDevice_Params.prototype.initFields_ = function(fields) {
|
|
||||||
for(var field in fields) {
|
|
||||||
if (this.hasOwnProperty(field))
|
|
||||||
this[field] = fields[field];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_GetDevice_Params.validate = function(messageValidator, offset) {
|
|
||||||
var err;
|
|
||||||
err = messageValidator.validateStructHeader(offset, codec.kStructHeaderSize);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
var kVersionSizes = [
|
|
||||||
{version: 0, numBytes: 24}
|
|
||||||
];
|
|
||||||
err = messageValidator.validateStructVersion(offset, kVersionSizes);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
|
|
||||||
// validate WebUsbService_GetDevice_Params.guid
|
|
||||||
err = messageValidator.validateStringPointer(offset + codec.kStructHeaderSize + 0, false)
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
|
|
||||||
// validate WebUsbService_GetDevice_Params.deviceRequestd
|
|
||||||
err = messageValidator.validateInterfaceRequest(offset + codec.kStructHeaderSize + 8, false)
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_GetDevice_Params.encodedSize = codec.kStructHeaderSize + 16;
|
|
||||||
|
|
||||||
WebUsbService_GetDevice_Params.decode = function(decoder) {
|
|
||||||
var packed;
|
|
||||||
var val = new WebUsbService_GetDevice_Params();
|
|
||||||
var numberOfBytes = decoder.readUint32();
|
|
||||||
var version = decoder.readUint32();
|
|
||||||
val.guid = decoder.decodeStruct(codec.String);
|
|
||||||
val.deviceRequestd = decoder.decodeStruct(codec.InterfaceRequest);
|
|
||||||
decoder.skip(1);
|
|
||||||
decoder.skip(1);
|
|
||||||
decoder.skip(1);
|
|
||||||
decoder.skip(1);
|
|
||||||
return val;
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_GetDevice_Params.encode = function(encoder, val) {
|
|
||||||
var packed;
|
|
||||||
encoder.writeUint32(WebUsbService_GetDevice_Params.encodedSize);
|
|
||||||
encoder.writeUint32(0);
|
|
||||||
encoder.encodeStruct(codec.String, val.guid);
|
|
||||||
encoder.encodeStruct(codec.InterfaceRequest, val.deviceRequestd);
|
|
||||||
encoder.skip(1);
|
|
||||||
encoder.skip(1);
|
|
||||||
encoder.skip(1);
|
|
||||||
encoder.skip(1);
|
|
||||||
};
|
|
||||||
function WebUsbService_GetPermission_Params(values) {
|
|
||||||
this.initDefaults_();
|
|
||||||
this.initFields_(values);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
WebUsbService_GetPermission_Params.prototype.initDefaults_ = function() {
|
|
||||||
this.deviceFilters = null;
|
|
||||||
};
|
|
||||||
WebUsbService_GetPermission_Params.prototype.initFields_ = function(fields) {
|
|
||||||
for(var field in fields) {
|
|
||||||
if (this.hasOwnProperty(field))
|
|
||||||
this[field] = fields[field];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_GetPermission_Params.validate = function(messageValidator, offset) {
|
|
||||||
var err;
|
|
||||||
err = messageValidator.validateStructHeader(offset, codec.kStructHeaderSize);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
var kVersionSizes = [
|
|
||||||
{version: 0, numBytes: 16}
|
|
||||||
];
|
|
||||||
err = messageValidator.validateStructVersion(offset, kVersionSizes);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
|
|
||||||
// validate WebUsbService_GetPermission_Params.deviceFilters
|
|
||||||
err = messageValidator.validateArrayPointer(offset + codec.kStructHeaderSize + 0, 8, new codec.PointerTo(device_enumeration_options$.UsbDeviceFilter), false, [0], 0);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_GetPermission_Params.encodedSize = codec.kStructHeaderSize + 8;
|
|
||||||
|
|
||||||
WebUsbService_GetPermission_Params.decode = function(decoder) {
|
|
||||||
var packed;
|
|
||||||
var val = new WebUsbService_GetPermission_Params();
|
|
||||||
var numberOfBytes = decoder.readUint32();
|
|
||||||
var version = decoder.readUint32();
|
|
||||||
val.deviceFilters = decoder.decodeArrayPointer(new codec.PointerTo(device_enumeration_options$.UsbDeviceFilter));
|
|
||||||
return val;
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_GetPermission_Params.encode = function(encoder, val) {
|
|
||||||
var packed;
|
|
||||||
encoder.writeUint32(WebUsbService_GetPermission_Params.encodedSize);
|
|
||||||
encoder.writeUint32(0);
|
|
||||||
encoder.encodeArrayPointer(new codec.PointerTo(device_enumeration_options$.UsbDeviceFilter), val.deviceFilters);
|
|
||||||
};
|
|
||||||
function WebUsbService_GetPermission_ResponseParams(values) {
|
|
||||||
this.initDefaults_();
|
|
||||||
this.initFields_(values);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
WebUsbService_GetPermission_ResponseParams.prototype.initDefaults_ = function() {
|
|
||||||
this.result = null;
|
|
||||||
};
|
|
||||||
WebUsbService_GetPermission_ResponseParams.prototype.initFields_ = function(fields) {
|
|
||||||
for(var field in fields) {
|
|
||||||
if (this.hasOwnProperty(field))
|
|
||||||
this[field] = fields[field];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_GetPermission_ResponseParams.validate = function(messageValidator, offset) {
|
|
||||||
var err;
|
|
||||||
err = messageValidator.validateStructHeader(offset, codec.kStructHeaderSize);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
var kVersionSizes = [
|
|
||||||
{version: 0, numBytes: 16}
|
|
||||||
];
|
|
||||||
err = messageValidator.validateStructVersion(offset, kVersionSizes);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
|
|
||||||
// validate WebUsbService_GetPermission_ResponseParams.result
|
|
||||||
err = messageValidator.validateStructPointer(offset + codec.kStructHeaderSize + 0, device$.UsbDeviceInfo, true);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_GetPermission_ResponseParams.encodedSize = codec.kStructHeaderSize + 8;
|
|
||||||
|
|
||||||
WebUsbService_GetPermission_ResponseParams.decode = function(decoder) {
|
|
||||||
var packed;
|
|
||||||
var val = new WebUsbService_GetPermission_ResponseParams();
|
|
||||||
var numberOfBytes = decoder.readUint32();
|
|
||||||
var version = decoder.readUint32();
|
|
||||||
val.result = decoder.decodeStructPointer(device$.UsbDeviceInfo);
|
|
||||||
return val;
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_GetPermission_ResponseParams.encode = function(encoder, val) {
|
|
||||||
var packed;
|
|
||||||
encoder.writeUint32(WebUsbService_GetPermission_ResponseParams.encodedSize);
|
|
||||||
encoder.writeUint32(0);
|
|
||||||
encoder.encodeStructPointer(device$.UsbDeviceInfo, val.result);
|
|
||||||
};
|
|
||||||
function WebUsbService_SetClient_Params(values) {
|
|
||||||
this.initDefaults_();
|
|
||||||
this.initFields_(values);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
WebUsbService_SetClient_Params.prototype.initDefaults_ = function() {
|
|
||||||
this.client = new associatedBindings.AssociatedInterfacePtrInfo();
|
|
||||||
};
|
|
||||||
WebUsbService_SetClient_Params.prototype.initFields_ = function(fields) {
|
|
||||||
for(var field in fields) {
|
|
||||||
if (this.hasOwnProperty(field))
|
|
||||||
this[field] = fields[field];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_SetClient_Params.validate = function(messageValidator, offset) {
|
|
||||||
var err;
|
|
||||||
err = messageValidator.validateStructHeader(offset, codec.kStructHeaderSize);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
var kVersionSizes = [
|
|
||||||
{version: 0, numBytes: 16}
|
|
||||||
];
|
|
||||||
err = messageValidator.validateStructVersion(offset, kVersionSizes);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
|
|
||||||
// validate WebUsbService_SetClient_Params.client
|
|
||||||
err = messageValidator.validateAssociatedInterface(offset + codec.kStructHeaderSize + 0, false);
|
|
||||||
if (err !== validator.validationError.NONE)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_SetClient_Params.encodedSize = codec.kStructHeaderSize + 8;
|
|
||||||
|
|
||||||
WebUsbService_SetClient_Params.decode = function(decoder) {
|
|
||||||
var packed;
|
|
||||||
var val = new WebUsbService_SetClient_Params();
|
|
||||||
var numberOfBytes = decoder.readUint32();
|
|
||||||
var version = decoder.readUint32();
|
|
||||||
val.client = decoder.decodeStruct(codec.AssociatedInterfacePtrInfo);
|
|
||||||
return val;
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbService_SetClient_Params.encode = function(encoder, val) {
|
|
||||||
var packed;
|
|
||||||
encoder.writeUint32(WebUsbService_SetClient_Params.encodedSize);
|
|
||||||
encoder.writeUint32(0);
|
|
||||||
encoder.encodeStruct(codec.AssociatedInterfacePtrInfo, val.client);
|
|
||||||
};
|
|
||||||
var kWebUsbService_GetDevices_Name = 0;
|
|
||||||
var kWebUsbService_GetDevice_Name = 1;
|
|
||||||
var kWebUsbService_GetPermission_Name = 2;
|
|
||||||
var kWebUsbService_SetClient_Name = 3;
|
|
||||||
|
|
||||||
function WebUsbServicePtr(handleOrPtrInfo) {
|
|
||||||
this.ptr = new bindings.InterfacePtrController(WebUsbService,
|
|
||||||
handleOrPtrInfo);
|
|
||||||
}
|
|
||||||
|
|
||||||
function WebUsbServiceAssociatedPtr(associatedInterfacePtrInfo) {
|
|
||||||
this.ptr = new associatedBindings.AssociatedInterfacePtrController(
|
|
||||||
WebUsbService, associatedInterfacePtrInfo);
|
|
||||||
}
|
|
||||||
|
|
||||||
WebUsbServiceAssociatedPtr.prototype =
|
|
||||||
Object.create(WebUsbServicePtr.prototype);
|
|
||||||
WebUsbServiceAssociatedPtr.prototype.constructor =
|
|
||||||
WebUsbServiceAssociatedPtr;
|
|
||||||
|
|
||||||
function WebUsbServiceProxy(receiver) {
|
|
||||||
this.receiver_ = receiver;
|
|
||||||
}
|
|
||||||
WebUsbServicePtr.prototype.getDevices = function() {
|
|
||||||
return WebUsbServiceProxy.prototype.getDevices
|
|
||||||
.apply(this.ptr.getProxy(), arguments);
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbServiceProxy.prototype.getDevices = function() {
|
|
||||||
var params_ = new WebUsbService_GetDevices_Params();
|
|
||||||
return new Promise(function(resolve, reject) {
|
|
||||||
var builder = new codec.MessageV1Builder(
|
|
||||||
kWebUsbService_GetDevices_Name,
|
|
||||||
codec.align(WebUsbService_GetDevices_Params.encodedSize),
|
|
||||||
codec.kMessageExpectsResponse, 0);
|
|
||||||
builder.encodeStruct(WebUsbService_GetDevices_Params, params_);
|
|
||||||
var message = builder.finish();
|
|
||||||
this.receiver_.acceptAndExpectResponse(message).then(function(message) {
|
|
||||||
var reader = new codec.MessageReader(message);
|
|
||||||
var responseParams =
|
|
||||||
reader.decodeStruct(WebUsbService_GetDevices_ResponseParams);
|
|
||||||
resolve(responseParams);
|
|
||||||
}).catch(function(result) {
|
|
||||||
reject(Error("Connection error: " + result));
|
|
||||||
});
|
|
||||||
}.bind(this));
|
|
||||||
};
|
|
||||||
WebUsbServicePtr.prototype.getDevice = function() {
|
|
||||||
return WebUsbServiceProxy.prototype.getDevice
|
|
||||||
.apply(this.ptr.getProxy(), arguments);
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbServiceProxy.prototype.getDevice = function(guid, deviceRequestd) {
|
|
||||||
var params_ = new WebUsbService_GetDevice_Params();
|
|
||||||
params_.guid = guid;
|
|
||||||
params_.deviceRequestd = deviceRequestd;
|
|
||||||
var builder = new codec.MessageV0Builder(
|
|
||||||
kWebUsbService_GetDevice_Name,
|
|
||||||
codec.align(WebUsbService_GetDevice_Params.encodedSize));
|
|
||||||
builder.encodeStruct(WebUsbService_GetDevice_Params, params_);
|
|
||||||
var message = builder.finish();
|
|
||||||
this.receiver_.accept(message);
|
|
||||||
};
|
|
||||||
WebUsbServicePtr.prototype.getPermission = function() {
|
|
||||||
return WebUsbServiceProxy.prototype.getPermission
|
|
||||||
.apply(this.ptr.getProxy(), arguments);
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbServiceProxy.prototype.getPermission = function(deviceFilters) {
|
|
||||||
var params_ = new WebUsbService_GetPermission_Params();
|
|
||||||
params_.deviceFilters = deviceFilters;
|
|
||||||
return new Promise(function(resolve, reject) {
|
|
||||||
var builder = new codec.MessageV1Builder(
|
|
||||||
kWebUsbService_GetPermission_Name,
|
|
||||||
codec.align(WebUsbService_GetPermission_Params.encodedSize),
|
|
||||||
codec.kMessageExpectsResponse, 0);
|
|
||||||
builder.encodeStruct(WebUsbService_GetPermission_Params, params_);
|
|
||||||
var message = builder.finish();
|
|
||||||
this.receiver_.acceptAndExpectResponse(message).then(function(message) {
|
|
||||||
var reader = new codec.MessageReader(message);
|
|
||||||
var responseParams =
|
|
||||||
reader.decodeStruct(WebUsbService_GetPermission_ResponseParams);
|
|
||||||
resolve(responseParams);
|
|
||||||
}).catch(function(result) {
|
|
||||||
reject(Error("Connection error: " + result));
|
|
||||||
});
|
|
||||||
}.bind(this));
|
|
||||||
};
|
|
||||||
WebUsbServicePtr.prototype.setClient = function() {
|
|
||||||
return WebUsbServiceProxy.prototype.setClient
|
|
||||||
.apply(this.ptr.getProxy(), arguments);
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbServiceProxy.prototype.setClient = function(client) {
|
|
||||||
var params_ = new WebUsbService_SetClient_Params();
|
|
||||||
params_.client = client;
|
|
||||||
var builder = new codec.MessageV2Builder(
|
|
||||||
kWebUsbService_SetClient_Name,
|
|
||||||
codec.align(WebUsbService_SetClient_Params.encodedSize));
|
|
||||||
builder.setPayload(WebUsbService_SetClient_Params, params_);
|
|
||||||
var message = builder.finish();
|
|
||||||
this.receiver_.accept(message);
|
|
||||||
};
|
|
||||||
|
|
||||||
function WebUsbServiceStub(delegate) {
|
|
||||||
this.delegate_ = delegate;
|
|
||||||
}
|
|
||||||
WebUsbServiceStub.prototype.getDevices = function() {
|
|
||||||
return this.delegate_ && this.delegate_.getDevices && this.delegate_.getDevices();
|
|
||||||
}
|
|
||||||
WebUsbServiceStub.prototype.getDevice = function(guid, deviceRequestd) {
|
|
||||||
return this.delegate_ && this.delegate_.getDevice && this.delegate_.getDevice(guid, deviceRequestd);
|
|
||||||
}
|
|
||||||
WebUsbServiceStub.prototype.getPermission = function(deviceFilters) {
|
|
||||||
return this.delegate_ && this.delegate_.getPermission && this.delegate_.getPermission(deviceFilters);
|
|
||||||
}
|
|
||||||
WebUsbServiceStub.prototype.setClient = function(client) {
|
|
||||||
return this.delegate_ && this.delegate_.setClient && this.delegate_.setClient(client);
|
|
||||||
}
|
|
||||||
|
|
||||||
WebUsbServiceStub.prototype.accept = function(message) {
|
|
||||||
var reader = new codec.MessageReader(message);
|
|
||||||
switch (reader.messageName) {
|
|
||||||
case kWebUsbService_GetDevice_Name:
|
|
||||||
var params = reader.decodeStruct(WebUsbService_GetDevice_Params);
|
|
||||||
this.getDevice(params.guid, params.deviceRequestd);
|
|
||||||
return true;
|
|
||||||
case kWebUsbService_SetClient_Name:
|
|
||||||
var params = reader.decodeStruct(WebUsbService_SetClient_Params);
|
|
||||||
this.setClient(params.client);
|
|
||||||
return true;
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
WebUsbServiceStub.prototype.acceptWithResponder =
|
|
||||||
function(message, responder) {
|
|
||||||
var reader = new codec.MessageReader(message);
|
|
||||||
switch (reader.messageName) {
|
|
||||||
case kWebUsbService_GetDevices_Name:
|
|
||||||
var params = reader.decodeStruct(WebUsbService_GetDevices_Params);
|
|
||||||
this.getDevices().then(function(response) {
|
|
||||||
var responseParams =
|
|
||||||
new WebUsbService_GetDevices_ResponseParams();
|
|
||||||
responseParams.results = response.results;
|
|
||||||
var builder = new codec.MessageV1Builder(
|
|
||||||
kWebUsbService_GetDevices_Name,
|
|
||||||
codec.align(WebUsbService_GetDevices_ResponseParams.encodedSize),
|
|
||||||
codec.kMessageIsResponse, reader.requestID);
|
|
||||||
builder.encodeStruct(WebUsbService_GetDevices_ResponseParams,
|
|
||||||
responseParams);
|
|
||||||
var message = builder.finish();
|
|
||||||
responder.accept(message);
|
|
||||||
});
|
|
||||||
return true;
|
|
||||||
case kWebUsbService_GetPermission_Name:
|
|
||||||
var params = reader.decodeStruct(WebUsbService_GetPermission_Params);
|
|
||||||
this.getPermission(params.deviceFilters).then(function(response) {
|
|
||||||
var responseParams =
|
|
||||||
new WebUsbService_GetPermission_ResponseParams();
|
|
||||||
responseParams.result = response.result;
|
|
||||||
var builder = new codec.MessageV1Builder(
|
|
||||||
kWebUsbService_GetPermission_Name,
|
|
||||||
codec.align(WebUsbService_GetPermission_ResponseParams.encodedSize),
|
|
||||||
codec.kMessageIsResponse, reader.requestID);
|
|
||||||
builder.encodeStruct(WebUsbService_GetPermission_ResponseParams,
|
|
||||||
responseParams);
|
|
||||||
var message = builder.finish();
|
|
||||||
responder.accept(message);
|
|
||||||
});
|
|
||||||
return true;
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
function validateWebUsbServiceRequest(messageValidator) {
|
|
||||||
var message = messageValidator.message;
|
|
||||||
var paramsClass = null;
|
|
||||||
switch (message.getName()) {
|
|
||||||
case kWebUsbService_GetDevices_Name:
|
|
||||||
if (message.expectsResponse())
|
|
||||||
paramsClass = WebUsbService_GetDevices_Params;
|
|
||||||
break;
|
|
||||||
case kWebUsbService_GetDevice_Name:
|
|
||||||
if (!message.expectsResponse() && !message.isResponse())
|
|
||||||
paramsClass = WebUsbService_GetDevice_Params;
|
|
||||||
break;
|
|
||||||
case kWebUsbService_GetPermission_Name:
|
|
||||||
if (message.expectsResponse())
|
|
||||||
paramsClass = WebUsbService_GetPermission_Params;
|
|
||||||
break;
|
|
||||||
case kWebUsbService_SetClient_Name:
|
|
||||||
if (!message.expectsResponse() && !message.isResponse())
|
|
||||||
paramsClass = WebUsbService_SetClient_Params;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (paramsClass === null)
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
return paramsClass.validate(messageValidator, messageValidator.message.getHeaderNumBytes());
|
|
||||||
}
|
|
||||||
|
|
||||||
function validateWebUsbServiceResponse(messageValidator) {
|
|
||||||
var message = messageValidator.message;
|
|
||||||
var paramsClass = null;
|
|
||||||
switch (message.getName()) {
|
|
||||||
case kWebUsbService_GetDevices_Name:
|
|
||||||
if (message.isResponse())
|
|
||||||
paramsClass = WebUsbService_GetDevices_ResponseParams;
|
|
||||||
break;
|
|
||||||
case kWebUsbService_GetPermission_Name:
|
|
||||||
if (message.isResponse())
|
|
||||||
paramsClass = WebUsbService_GetPermission_ResponseParams;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (paramsClass === null)
|
|
||||||
return validator.validationError.NONE;
|
|
||||||
return paramsClass.validate(messageValidator, messageValidator.message.getHeaderNumBytes());
|
|
||||||
}
|
|
||||||
|
|
||||||
var WebUsbService = {
|
|
||||||
name: 'blink.mojom.WebUsbService',
|
|
||||||
kVersion: 0,
|
|
||||||
ptrClass: WebUsbServicePtr,
|
|
||||||
proxyClass: WebUsbServiceProxy,
|
|
||||||
stubClass: WebUsbServiceStub,
|
|
||||||
validateRequest: validateWebUsbServiceRequest,
|
|
||||||
validateResponse: validateWebUsbServiceResponse,
|
|
||||||
};
|
|
||||||
WebUsbServiceStub.prototype.validator = validateWebUsbServiceRequest;
|
|
||||||
WebUsbServiceProxy.prototype.validator = validateWebUsbServiceResponse;
|
|
||||||
exports.WebUsbService = WebUsbService;
|
|
||||||
exports.WebUsbServicePtr = WebUsbServicePtr;
|
|
||||||
exports.WebUsbServiceAssociatedPtr = WebUsbServiceAssociatedPtr;
|
|
||||||
})();
|
|
|
@ -1 +0,0 @@
|
||||||
Content-Type: text/javascript; charset=utf-8
|
|
|
@ -23,7 +23,7 @@ function loadScript(path) {
|
||||||
script.async = false;
|
script.async = false;
|
||||||
const p = new Promise((resolve, reject) => {
|
const p = new Promise((resolve, reject) => {
|
||||||
script.onload = () => { resolve(); };
|
script.onload = () => { resolve(); };
|
||||||
script.onerror = e => { reject(e); };
|
script.onerror = e => { reject(`Error loading ${path}`); };
|
||||||
})
|
})
|
||||||
document.head.appendChild(script);
|
document.head.appendChild(script);
|
||||||
return p;
|
return p;
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
<!doctype html>
|
||||||
|
<title>Navigating to a text fragment anchor</title>
|
||||||
|
<script src="stash.js"></script>
|
||||||
|
<script src="force-load-at-top.js"></script>
|
||||||
|
<style>
|
||||||
|
p#target {
|
||||||
|
margin: 2000px 0px 2000px 0px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<!-- This page is loaded with the force-load-at-top Document-Policy header -->
|
||||||
|
<body>
|
||||||
|
<p>Top of page</p>
|
||||||
|
<p id="target">target</p>
|
||||||
|
<p id="history">history</p>
|
||||||
|
</body>
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue