mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update web-platform-tests to revision 9ca57e052ba1b19fa3dd46c6aa656e8d529469a8
This commit is contained in:
parent
68cb8f3d59
commit
75d6484415
1377 changed files with 31062 additions and 16983 deletions
|
@ -24,7 +24,7 @@ function run_generic_sensor_iframe_tests(sensorName) {
|
|||
const featurePolicies = get_feature_policies_for_sensor(sensorName);
|
||||
|
||||
sensor_test(async t => {
|
||||
assert_true(sensorName in self);
|
||||
assert_implements(sensorName in self, `${sensorName} is not supported.`);
|
||||
const iframe = document.createElement('iframe');
|
||||
iframe.allow = featurePolicies.join(';') + ';';
|
||||
iframe.src = 'https://{{domains[www1]}}:{{ports[https][0]}}/generic-sensor/resources/iframe_sensor_handler.html';
|
||||
|
@ -67,7 +67,7 @@ function run_generic_sensor_iframe_tests(sensorName) {
|
|||
to cross-origin frame`);
|
||||
|
||||
sensor_test(async t => {
|
||||
assert_true(sensorName in self);
|
||||
assert_implements(sensorName in self, `${sensorName} is not supported.`);
|
||||
const iframe = document.createElement('iframe');
|
||||
iframe.allow = featurePolicies.join(';') + ';';
|
||||
iframe.src = 'https://{{host}}:{{ports[https][0]}}/generic-sensor/resources/iframe_sensor_handler.html';
|
||||
|
@ -131,7 +131,7 @@ function run_generic_sensor_iframe_tests(sensorName) {
|
|||
to same-origin frame`);
|
||||
|
||||
sensor_test(async t => {
|
||||
assert_true(sensorName in self);
|
||||
assert_implements(sensorName in self, `${sensorName} is not supported.`);
|
||||
const iframe = document.createElement('iframe');
|
||||
iframe.allow = featurePolicies.join(';') + ';';
|
||||
iframe.src = 'https://{{host}}:{{ports[https][0]}}/generic-sensor/resources/iframe_sensor_handler.html';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue