зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1473854 [wpt PR 11823] - sensors: Stop passing undefined as an invalid SensorOptions value, a=testonly
Automatic update from web-platform-testssensors: Stop passing undefined as an invalid SensorOptions value (#11823) While the undefined -> double conversion in WebIDL should indeed throw a TypeError, we cannot forget we have a WebIDL dictionary (SensorOptions) in the middle: {frequency: undefined} is essentially equivalent to {} so we do not actually throw a TypeError in this case at all. -- wpt-commits: 4713ec6523e637619ec607e7882fd1e7ba54cde9 wpt-pr: 11823
This commit is contained in:
Родитель
600efb1909
Коммит
1712413c13
|
@ -574117,7 +574117,7 @@
|
||||||
"support"
|
"support"
|
||||||
],
|
],
|
||||||
"generic-sensor/generic-sensor-tests.js": [
|
"generic-sensor/generic-sensor-tests.js": [
|
||||||
"b950811d99ac923c300a45967889a57ec8bf2204",
|
"5179cfb6bf7d65930900602e490c479297aa6979",
|
||||||
"support"
|
"support"
|
||||||
],
|
],
|
||||||
"generic-sensor/idlharness.https.html": [
|
"generic-sensor/idlharness.https.html": [
|
||||||
|
|
|
@ -337,8 +337,7 @@ function runGenericSensorTests(sensorName) {
|
||||||
NaN,
|
NaN,
|
||||||
Infinity,
|
Infinity,
|
||||||
-Infinity,
|
-Infinity,
|
||||||
{},
|
{}
|
||||||
undefined
|
|
||||||
];
|
];
|
||||||
invalidFreqs.map(freq => {
|
invalidFreqs.map(freq => {
|
||||||
assert_throws(new TypeError(),
|
assert_throws(new TypeError(),
|
||||||
|
|
Загрузка…
Ссылка в новой задаче