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:
Raphael Kubo da Costa 2018-07-18 09:46:18 +00:00 коммит произвёл moz-wptsync-bot
Родитель 600efb1909
Коммит 1712413c13
2 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -574117,7 +574117,7 @@
"support"
],
"generic-sensor/generic-sensor-tests.js": [
"b950811d99ac923c300a45967889a57ec8bf2204",
"5179cfb6bf7d65930900602e490c479297aa6979",
"support"
],
"generic-sensor/idlharness.https.html": [

Просмотреть файл

@ -337,8 +337,7 @@ function runGenericSensorTests(sensorName) {
NaN,
Infinity,
-Infinity,
{},
undefined
{}
];
invalidFreqs.map(freq => {
assert_throws(new TypeError(),