mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision e1edaa3dd1bea4415ee88e042affee32028d7f1d
This commit is contained in:
parent
0bd2661492
commit
0cb6acf9a2
4828 changed files with 87680 additions and 41620 deletions
|
@ -465,12 +465,12 @@ function runGenericSensorTests(sensorName,
|
|||
|
||||
// Re-enable after https://github.com/w3c/sensors/issues/361 is fixed.
|
||||
// test(() => {
|
||||
// assert_throws("NotSupportedError",
|
||||
// assert_throws_dom("NotSupportedError",
|
||||
// () => { new sensorType({invalid: 1}) });
|
||||
// assert_throws("NotSupportedError",
|
||||
// assert_throws_dom("NotSupportedError",
|
||||
// () => { new sensorType({frequency: 60, invalid: 1}) });
|
||||
// if (!expectedRemappedReadings) {
|
||||
// assert_throws("NotSupportedError",
|
||||
// assert_throws_dom("NotSupportedError",
|
||||
// () => { new sensorType({referenceFrame: "screen"}) });
|
||||
// }
|
||||
// }, `${sensorName}: throw 'NotSupportedError' for an unsupported sensor\
|
||||
|
@ -486,7 +486,7 @@ function runGenericSensorTests(sensorName,
|
|||
{}
|
||||
];
|
||||
invalidFreqs.map(freq => {
|
||||
assert_throws(new TypeError(),
|
||||
assert_throws_js(TypeError,
|
||||
() => { new sensorType({frequency: freq}) },
|
||||
`when freq is ${freq}`);
|
||||
});
|
||||
|
@ -538,7 +538,7 @@ function runGenericSensorTests(sensorName,
|
|||
true
|
||||
];
|
||||
invalidRefFrames.map(refFrame => {
|
||||
assert_throws(new TypeError(),
|
||||
assert_throws_js(TypeError,
|
||||
() => { new sensorType({referenceFrame: refFrame}) },
|
||||
`when refFrame is ${refFrame}`);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue