Bug 1477131 [wpt PR 12076] - Fix typo in panner-distance-clampling.html test, a=testonly

Automatic update from web-platform-testsFix typo in panner-distance-clampling.html test

The should.throw() method now expects an actual error object instead
of a string and I think someone just forgot to change the
'RangeError' strings in this test to be just the RangeError object.

Bug: 865371
Test: test passes again
Change-Id: I07cc057ff4f608a01ed3f35a0268b6e267078d13
Reviewed-on: https://chromium-review.googlesource.com/1144128
Reviewed-by: Robert Ma <robertma@chromium.org>
Reviewed-by: Hongchan Choi <hongchan@chromium.org>
Commit-Queue: Raymond Toy <rtoy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576856}

--

wpt-commits: 0a5194d5b94f64d36cf0fd399b650fc53f1d7bd0
wpt-pr: 12076
This commit is contained in:
Raymond Toy 2018-07-25 17:54:25 +00:00 коммит произвёл James Graham
Родитель 0e328704d5
Коммит eab9b3f0d6
2 изменённых файлов: 5 добавлений и 5 удалений

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

@ -624655,7 +624655,7 @@
"testharness"
],
"webaudio/the-audio-api/the-pannernode-interface/panner-distance-clamping.html": [
"820c902b9bcfeed9611ec9c3cba3ee2179a8cee7",
"7ea63964142ab76e3883bef9e73c2e8e0b28ea96",
"testharness"
],
"webaudio/the-audio-api/the-pannernode-interface/panner-equalpower-stereo.html": [

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

@ -38,7 +38,7 @@
let nodeOptions = {};
nodeOptions[attrName] = -1;
new PannerNode(context, nodeOptions);
}, prefix + '-1})').throw('RangeError');
}, prefix + '-1})').throw(RangeError);
if (options.isZeroAllowed) {
should(function() {
@ -51,7 +51,7 @@
let nodeOptions = {};
nodeOptions[attrName] = 0;
new PannerNode(context, nodeOptions);
}, prefix + '0})').throw('RangeError');
}, prefix + '0})').throw(RangeError);
}
// The smallest representable positive single float.
@ -67,7 +67,7 @@
panner = new PannerNode(context);
should(function() {
panner[attrName] = -1;
}, prefix + '-1').throw('RangeError');
}, prefix + '-1').throw(RangeError);
if (options.isZeroAllowed) {
should(function() {
@ -76,7 +76,7 @@
} else {
should(function() {
panner[attrName] = 0;
}, prefix + '0').throw('RangeError');
}, prefix + '0').throw(RangeError);
}
should(function() {