mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision 14cfa4d648cc1c853b4153268df672d21425f8c1
This commit is contained in:
parent
1b73cf3352
commit
75736751d9
1213 changed files with 19434 additions and 12344 deletions
|
@ -40,8 +40,10 @@ function runGenericSensorTests(sensorType) {
|
|||
let sensor = new sensorType();
|
||||
sensor.onreading = t.step_func_done(() => {
|
||||
assert_reading_not_null(sensor);
|
||||
assert_true(sensor.hasReading);
|
||||
sensor.stop();
|
||||
assert_reading_null(sensor);
|
||||
assert_false(sensor.hasReading);
|
||||
});
|
||||
sensor.onerror = t.step_func_done(unreached);
|
||||
sensor.start();
|
||||
|
@ -192,8 +194,8 @@ function runGenericSensorTests(sensorType) {
|
|||
|
||||
function runGenericSensorInsecureContext(sensorType) {
|
||||
test(() => {
|
||||
assert_throws('SecurityError', () => { new sensorType(); });
|
||||
}, `${sensorType.name}: throw a 'SecurityError' when construct sensor in an insecure context`);
|
||||
assert_false(sensorType in window, `${sensorType} must not be exposed`);
|
||||
}, `${sensorType} is not exposed in an insecure context`);
|
||||
}
|
||||
|
||||
function runGenericSensorOnerror(sensorType) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue