Update web-platform-tests to revision 14cfa4d648cc1c853b4153268df672d21425f8c1

This commit is contained in:
Josh Matthews 2017-10-30 09:31:22 -04:00
parent 1b73cf3352
commit 75736751d9
1213 changed files with 19434 additions and 12344 deletions

View file

@ -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) {