Skip to content

Commit 1dbed31

Browse files
committed
Bug 1631648 [wpt PR 23126] - WebXR - AR - adjust XRRay to match the spec, a=testonly
Automatic update from web-platform-tests WebXR - AR - adjust XRRay to match the spec Bring XRRay up to spec, adjusting the behavior with changes introduced by PR: immersive-web/hit-test#85 Additionally, fix Chrome's Web IDL to not rely on overloads. Change-Id: I98af1a4ed90dbeb8e311795e818efb64bb15034d -- wpt-commits: fd045759df43fa155b34a5e4fe4187610ad1bb24 wpt-pr: 23126 UltraBlame original commit: 32e3888c79b097fdd320539a1b9b1895f9cd03ff
1 parent f8d244b commit 1dbed31

File tree

1 file changed

+115
-14
lines changed

1 file changed

+115
-14
lines changed

testing/web-platform/tests/webxr/hit-test/xrRay_constructor.https.html

Lines changed: 115 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,38 @@
167167
transform
168168
:
169169
let
170-
xrRay
170+
xrRay1
171+
=
172+
new
173+
XRRay
174+
(
175+
)
176+
;
177+
let
178+
xrRay2
171179
=
172180
new
173181
XRRay
174182
(
183+
{
184+
}
185+
)
186+
;
187+
let
188+
xrRay3
189+
=
190+
new
191+
XRRay
192+
(
193+
{
194+
}
195+
{
196+
}
175197
)
176198
;
177199
assert_point_approx_equals
178200
(
179-
xrRay
201+
xrRay1
180202
.
181203
origin
182204
{
@@ -212,7 +234,7 @@
212234
;
213235
assert_point_approx_equals
214236
(
215-
xrRay
237+
xrRay1
216238
.
217239
direction
218240
{
@@ -249,7 +271,7 @@
249271
;
250272
assert_matrix_approx_equals
251273
(
252-
xrRay
274+
xrRay1
253275
.
254276
matrix
255277
IDENTITY_MATRIX
@@ -262,6 +284,36 @@
262284
"
263285
)
264286
;
287+
assert_ray_approx_equals
288+
(
289+
xrRay1
290+
xrRay2
291+
FLOAT_EPSILON
292+
"
293+
ray1
294+
-
295+
ray2
296+
-
297+
default
298+
:
299+
"
300+
)
301+
;
302+
assert_ray_approx_equals
303+
(
304+
xrRay2
305+
xrRay3
306+
FLOAT_EPSILON
307+
"
308+
ray2
309+
-
310+
ray3
311+
-
312+
default
313+
:
314+
"
315+
)
316+
;
265317
}
266318
{
267319
/
@@ -302,6 +354,15 @@
302354
}
303355
;
304356
let
357+
xrRay1
358+
=
359+
new
360+
XRRay
361+
(
362+
originDict
363+
)
364+
;
365+
let
305366
xrRay2
306367
=
307368
new
@@ -353,7 +414,7 @@
353414
;
354415
assert_point_approx_equals
355416
(
356-
xrRay2
417+
xrRay1
357418
.
358419
origin
359420
originDict
@@ -372,7 +433,7 @@
372433
;
373434
assert_point_approx_equals
374435
(
375-
xrRay2
436+
xrRay1
376437
.
377438
direction
378439
{
@@ -413,7 +474,7 @@
413474
;
414475
assert_matrix_approx_equals
415476
(
416-
xrRay2
477+
xrRay1
417478
.
418479
matrix
419480
matrix1
@@ -432,6 +493,23 @@
432493
;
433494
assert_ray_approx_equals
434495
(
496+
xrRay1
497+
xrRay2
498+
FLOAT_EPSILON
499+
"
500+
ray1
501+
-
502+
ray2
503+
-
504+
direction
505+
-
506+
default
507+
:
508+
"
509+
)
510+
;
511+
assert_ray_approx_equals
512+
(
435513
xrRay2
436514
xrRay3
437515
FLOAT_EPSILON
@@ -587,6 +665,16 @@
587665
]
588666
;
589667
let
668+
xrRay1
669+
=
670+
new
671+
XRRay
672+
(
673+
originDict
674+
directionDict
675+
)
676+
;
677+
let
590678
xrRay2
591679
=
592680
new
@@ -628,7 +716,7 @@
628716
;
629717
assert_point_approx_equals
630718
(
631-
xrRay2
719+
xrRay1
632720
.
633721
origin
634722
originDict
@@ -643,7 +731,7 @@
643731
;
644732
assert_point_approx_equals
645733
(
646-
xrRay2
734+
xrRay1
647735
.
648736
direction
649737
directionNorm
@@ -658,7 +746,7 @@
658746
;
659747
assert_matrix_approx_equals
660748
(
661-
xrRay2
749+
xrRay1
662750
.
663751
matrix
664752
matrix1
@@ -673,6 +761,19 @@
673761
;
674762
assert_ray_approx_equals
675763
(
764+
xrRay1
765+
xrRay2
766+
FLOAT_EPSILON
767+
"
768+
ray1
769+
-
770+
ray2
771+
:
772+
"
773+
)
774+
;
775+
assert_ray_approx_equals
776+
(
676777
xrRay2
677778
xrRay3
678779
FLOAT_EPSILON
@@ -1063,7 +1164,7 @@
10631164
]
10641165
;
10651166
let
1066-
xrRay4
1167+
xrRay
10671168
=
10681169
new
10691170
XRRay
@@ -1088,7 +1189,7 @@
10881189
;
10891190
assert_point_approx_equals
10901191
(
1091-
xrRay4
1192+
xrRay
10921193
.
10931194
origin
10941195
originDict
@@ -1105,7 +1206,7 @@
11051206
;
11061207
assert_point_approx_equals
11071208
(
1108-
xrRay4
1209+
xrRay
11091210
.
11101211
direction
11111212
directionNorm2
@@ -1122,7 +1223,7 @@
11221223
;
11231224
assert_matrix_approx_equals
11241225
(
1125-
xrRay4
1226+
xrRay
11261227
.
11271228
matrix
11281229
matrix2

0 commit comments

Comments
 (0)