Skip to content

Commit d8753e9

Browse files
authored
Add custom tests for iframe element's allow attribute values (#1578)
1 parent 93ca92e commit d8753e9

File tree

1 file changed

+120
-0
lines changed

1 file changed

+120
-0
lines changed

custom/tests.yaml

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6045,6 +6045,126 @@ html:
60456045
type_time: return testType('time');
60466046
type_url: return testType('url');
60476047
type_week: return testType('week');
6048+
iframe:
6049+
allow:
6050+
__additional:
6051+
accelerometer: |-
6052+
instance.allow = 'accelerometer';
6053+
return instance.allow === 'accelerometer';
6054+
ambient-light-sensor: |-
6055+
instance.allow = 'ambient-light-sensor';
6056+
return instance.allow === 'ambient-light-sensor';
6057+
attribution-reporting: |-
6058+
instance.allow = 'attribution-reporting';
6059+
return instance.allow === 'attribution-reporting';
6060+
autoplay: |-
6061+
instance.allow = 'autoplay';
6062+
return instance.allow === 'autoplay';
6063+
battery: |-
6064+
instance.allow = 'battery';
6065+
return instance.allow === 'battery';
6066+
bluetooth: |-
6067+
instance.allow = 'bluetooth';
6068+
return instance.allow === 'bluetooth';
6069+
browsing-topics: |-
6070+
instance.allow = 'browsing-topics';
6071+
return instance.allow === 'browsing-topics';
6072+
camera: |-
6073+
instance.allow = 'camera';
6074+
return instance.allow === 'camera';
6075+
compute-pressure: |-
6076+
instance.allow = 'compute-pressure';
6077+
return instance.allow === 'compute-pressure';
6078+
cross-origin-isolated: |-
6079+
instance.allow = 'cross-origin-isolated';
6080+
return instance.allow === 'cross-origin-isolated';
6081+
display-capture: |-
6082+
instance.allow = 'display-capture';
6083+
return instance.allow === 'display-capture';
6084+
document-domain: |-
6085+
instance.allow = 'document-domain';
6086+
return instance.allow === 'document-domain';
6087+
encrypted-media: |-
6088+
instance.allow = 'encrypted-media';
6089+
return instance.allow === 'encrypted-media';
6090+
execution-while-not-rendered: |-
6091+
instance.allow = 'execution-while-not-rendered';
6092+
return instance.allow === 'execution-while-not-rendered';
6093+
execution-while-out-of-viewport: |-
6094+
instance.allow = 'execution-while-out-of-viewport';
6095+
return instance.allow === 'execution-while-out-of-viewport';
6096+
fullscreen: |-
6097+
instance.allow = 'fullscreen';
6098+
return instance.allow === 'fullscreen';
6099+
gamepad: |-
6100+
instance.allow = 'gamepad';
6101+
return instance.allow === 'gamepad';
6102+
geolocation: |-
6103+
instance.allow = 'geolocation';
6104+
return instance.allow === 'geolocation';
6105+
gyroscope: |-
6106+
instance.allow = 'gyroscope';
6107+
return instance.allow === 'gyroscope';
6108+
hid: |-
6109+
instance.allow = 'hid';
6110+
return instance.allow === 'hid';
6111+
identity-credentials-get: |-
6112+
instance.allow = 'identity-credentials-get';
6113+
return instance.allow === 'identity-credentials-get';
6114+
idle-detection: |-
6115+
instance.allow = 'idle-detection';
6116+
return instance.allow === 'idle-detection';
6117+
local-fonts: |-
6118+
instance.allow = 'local-fonts';
6119+
return instance.allow === 'local-fonts';
6120+
magnetometer: |-
6121+
instance.allow = 'magnetometer';
6122+
return instance.allow === 'magnetometer';
6123+
microphone: |-
6124+
instance.allow = 'microphone';
6125+
return instance.allow === 'microphone';
6126+
midi: |-
6127+
instance.allow = 'midi';
6128+
return instance.allow === 'midi';
6129+
otp-credentials: |-
6130+
instance.allow = 'otp-credentials';
6131+
return instance.allow === 'otp-credentials';
6132+
payment: |-
6133+
instance.allow = 'payment';
6134+
return instance.allow === 'payment';
6135+
picture-in-picture: |-
6136+
instance.allow = 'picture-in-picture';
6137+
return instance.allow === 'picture-in-picture';
6138+
publickey-credentials-create: |-
6139+
instance.allow = 'publickey-credentials-create';
6140+
return instance.allow === 'publickey-credentials-create';
6141+
publickey-credentials-get: |-
6142+
instance.allow = 'publickey-credentials-get';
6143+
return instance.allow === 'publickey-credentials-get';
6144+
screen-wake-lock: |-
6145+
instance.allow = 'screen-wake-lock';
6146+
return instance.allow === 'screen-wake-lock';
6147+
serial: |-
6148+
instance.allow = 'serial';
6149+
return instance.allow === 'serial';
6150+
speaker-selection: |-
6151+
instance.allow = 'speaker-selection';
6152+
return instance.allow === 'speaker-selection';
6153+
storage-access: |-
6154+
instance.allow = 'storage-access';
6155+
return instance.allow === 'storage-access';
6156+
usb: |-
6157+
instance.allow = 'usb';
6158+
return instance.allow === 'usb';
6159+
web-share: |-
6160+
instance.allow = 'web-share';
6161+
return instance.allow === 'web-share';
6162+
window-management: |-
6163+
instance.allow = 'window-management';
6164+
return instance.allow === 'window-management';
6165+
xr-spatial-tracking: |-
6166+
instance.allow = 'xr-spatial-tracking';
6167+
return instance.allow === 'xr-spatial-tracking';
60486168
link:
60496169
__base: |-
60506170
var instance = document.createElement('link');

0 commit comments

Comments
 (0)