commit | c36fafed84c9dd16cfa38f66a84ccca5cf32b3e4 | [log] [tgz] |
---|---|---|
author | Piotr Bialecki <bialpio@chromium.org> | Fri Mar 19 18:24:35 2021 |
committer | Blink WPT Bot <blink-w3c-test-autoroller@chromium.org> | Fri Mar 19 19:08:48 2021 |
tree | d2f4aa1df5ed91ddb6fa2113d02d5d99b0b198ea | |
parent | 29c9c814031e169d533a7226fa5b48f8573b805a [diff] |
WebXR depth: fix data type mismatch between spec/idl and implementation Bug: 1189518 Change-Id: Iaa5bf1b3dc905015b5c5ab1bba2df0a7c54671bf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2774679 Reviewed-by: Brandon Jones <bajones@chromium.org> Commit-Queue: Piotr Bialecki <bialpio@chromium.org> Cr-Commit-Position: refs/heads/master@{#864702}
diff --git a/webxr/depth-sensing/cpu/depth_sensing_cpu_luminance_alpha_dataValid.https.html b/webxr/depth-sensing/cpu/depth_sensing_cpu_luminance_alpha_dataValid.https.html index 3bda9e2..db88c42 100644 --- a/webxr/depth-sensing/cpu/depth_sensing_cpu_luminance_alpha_dataValid.https.html +++ b/webxr/depth-sensing/cpu/depth_sensing_cpu_luminance_alpha_dataValid.https.html
@@ -37,6 +37,10 @@ } const assert_depth_valid = function(depthInformation) { + + assert_true(depthInformation.data instanceof ArrayBuffer, + "XRCpuDepthInformation.data must be of type `ArrayBuffer`!"); + for(let row = 0; row < depthInformation.height; row++) { for(let column = 0; column < depthInformation.width; column++) { // middle of the pixel: