Skip to content

Commit 8da92d3

Browse files
committed
Bug 1966174 [wpt PR 52500] - Move sensor WPT tests to run in headless shell,
Automatic update from web-platform-tests Move sensor WPT tests to run in headless shell This CL migrates sensor WPT tests to use testdriver.bidi.set_permission to override the expected sensor permission. This allows those tests to be run in headless shell. Bug: 358197788 Change-Id: I03c2cc8702ee03a5170b1bc26f2d67dc53b3694e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6536708 Reviewed-by: Weizhong Xia <weizhonggoogle.com> Commit-Queue: Jack Hsieh <chengweihchromium.org> Cr-Commit-Position: refs/heads/main{#1459521} -- wpt-commits: 03bf407c770c149d9da57ebabf93e6192db452d3 wpt-pr: 52500 Differential Revision: https://phabricator.services.mozilla.com/D250149 UltraBlame original commit: 0aa8925c8534d34aa217794c5ae0d0bb5dd1e02a
1 parent 8675752 commit 8da92d3

17 files changed

+282
-0
lines changed

testing/web-platform/tests/accelerometer/Accelerometer-iframe-access.https.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@
133133
testdriver
134134
.
135135
js
136+
?
137+
feature
138+
=
139+
bidi
136140
"
137141
>
138142
<

testing/web-platform/tests/accelerometer/Accelerometer.https.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@
132132
testdriver
133133
.
134134
js
135+
?
136+
feature
137+
=
138+
bidi
135139
"
136140
>
137141
<

testing/web-platform/tests/accelerometer/GravitySensor.https.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@
133133
testdriver
134134
.
135135
js
136+
?
137+
feature
138+
=
139+
bidi
136140
"
137141
>
138142
<

testing/web-platform/tests/accelerometer/LinearAccelerationSensor.https.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@
134134
testdriver
135135
.
136136
js
137+
?
138+
feature
139+
=
140+
bidi
137141
"
138142
>
139143
<

testing/web-platform/tests/ambient-light/AmbientLightSensor-iframe-access.https.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@
120120
testdriver
121121
.
122122
js
123+
?
124+
feature
125+
=
126+
bidi
123127
"
124128
>
125129
<

testing/web-platform/tests/ambient-light/AmbientLightSensor.https.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@
134134
testdriver
135135
.
136136
js
137+
?
138+
feature
139+
=
140+
bidi
137141
"
138142
>
139143
<

testing/web-platform/tests/generic-sensor/generic-sensor-iframe-tests.sub.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,16 +650,26 @@ sensor
650650
await
651651
test_driver
652652
.
653+
bidi
654+
.
655+
permissions
656+
.
653657
set_permission
654658
(
655659
{
660+
descriptor
661+
:
662+
{
656663
name
657664
:
658665
permissionName
659666
}
667+
state
668+
:
660669
'
661670
granted
662671
'
672+
}
663673
)
664674
;
665675
await
@@ -1595,16 +1605,26 @@ sensor
15951605
await
15961606
test_driver
15971607
.
1608+
bidi
1609+
.
1610+
permissions
1611+
.
15981612
set_permission
15991613
(
16001614
{
1615+
descriptor
1616+
:
1617+
{
16011618
name
16021619
:
16031620
permissionName
16041621
}
1622+
state
1623+
:
16051624
'
16061625
granted
16071626
'
1627+
}
16081628
)
16091629
;
16101630
await
@@ -2323,16 +2343,26 @@ iframe
23232343
await
23242344
test_driver
23252345
.
2346+
bidi
2347+
.
2348+
permissions
2349+
.
23262350
set_permission
23272351
(
23282352
{
2353+
descriptor
2354+
:
2355+
{
23292356
name
23302357
:
23312358
permissionName
23322359
}
2360+
state
2361+
:
23332362
'
23342363
granted
23352364
'
2365+
}
23362366
)
23372367
;
23382368
await
@@ -2662,16 +2692,26 @@ iframe
26622692
await
26632693
test_driver
26642694
.
2695+
bidi
2696+
.
2697+
permissions
2698+
.
26652699
set_permission
26662700
(
26672701
{
2702+
descriptor
2703+
:
2704+
{
26682705
name
26692706
:
26702707
permissionName
26712708
}
2709+
state
2710+
:
26722711
'
26732712
granted
26742713
'
2714+
}
26752715
)
26762716
;
26772717
await

0 commit comments

Comments
 (0)