diff --git a/testing/web-platform/meta/MANIFEST.json b/testing/web-platform/meta/MANIFEST.json index 99fa2956dedfc..b0850be85f0c6 100644 --- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -4381497,7 +4381497,7 @@ js : [ " -0d90a9c630013b9b46ba49c106e0daa89da7032e +df0090c6d605fc0ea5fca224de83e0f472618f9a " " support @@ -4381555,7 +4381555,7 @@ js : [ " -7ffa4392b05a15dfacafa7d89c902d977ed23266 +b7ca020161071437087c349c0e8b59dbf132f764 " " support @@ -4381825,7 +4381825,7 @@ js : [ " -9a77e67ed8634ca53237edcdbf71ca26866b23f9 +0d2ea12f6db8257878087646157242cce37ed507 " " support @@ -4381902,7 +4381902,7 @@ html : [ " -2112edeeffcf5688357d98b5161e6c3ab2d761ad +4e27f842ddeda3e2bdd78da7b8ee3f67062d1a9f " " testharness @@ -4381996,7 +4381996,7 @@ html : [ " -b3de37f119f167469a4337d520345f820a6c4165 +7ee6a2237edd209256ac2d46be6893a5305383a0 " " testharness @@ -4382213,7 +4382213,7 @@ html : [ " -b71078d8f8094cdc43ba3adfc33d0f6f15931b33 +e0359953d2e909f69066885515f4a3f3cc00ff02 " " testharness @@ -4382271,7 +4382271,7 @@ html : [ " -07a34f07c185f4bc9dcf1b325bb51067610b430a +a2c4581c4e80069f227fe29078bc3eb6409c8b4e " " testharness @@ -4382301,7 +4382301,7 @@ html : [ " -c5aae1ad53235f7b0f10bc3535d9a3fe5150760f +9845d5eaba384cced3c63ddbf4df1400b31f4994 " " testharness @@ -4382388,7 +4382388,7 @@ html : [ " -5527f44cc9c93e72214ca228fa53e830a8cfcead +f3f16c4c648166dfdb394a41881d4a515d097e86 " " testharness @@ -4383066,7 +4383066,7 @@ html : [ " -0a8c73160e543d6f9d382b536e5c41f7d29c6e9a +4163a8439cd08c1f8cdcb587c569653c2618e021 " " testharness @@ -4383164,7 +4383164,7 @@ html : [ " -c3d3fae2155602bbae7494e0e1439ea1a477b054 +386614ff2e20e7abd4e511bf5e9d7d492cddfeb3 " " testharness @@ -4383194,7 +4383194,7 @@ html : [ " -b29c09d395fc2815ee5441fdb06320ad02f2f3f5 +65b93222d1002e227ab1ad2e29b6e140b65bd9e4 " " testharness @@ -4383222,7 +4383222,7 @@ html : [ " -14cfbff7e2754c4ee028c7ead599e87849a60922 +0b57d27e8e1a7b7339d0e47641cbba27ab419612 " " testharness @@ -4383563,7 +4383563,7 @@ html : [ " -7990d0aee134cb33082e058b41bdaafc69bb507e +df36732c3479f48fbb77a60176cdfa22f58a3611 " " testharness @@ -4383685,7 +4383685,7 @@ html : [ " -a3c789e2f2cbdb31e540bf5cc58850786b4ed73b +a3c11994bbe37f26aa1c2eafbb4f287d559fae34 " " testharness @@ -4384552,7 +4384552,7 @@ html : [ " -7cfd423c071b9a8283e291f200615b2e0a69c797 +8b7704a781b712c0129b650da898ed79baad794c " " testharness @@ -4384586,7 +4384586,7 @@ html : [ " -31e204cdc8d53bfaf0226c34a0e5daf42c813b61 +cee9ec82c20f42a5941698fc394e6babb639ace9 " " testharness @@ -4385195,7 +4385195,7 @@ html : [ " -83f53aafb1980bf991f4d12c3a3a472b82df61a6 +441e98a251187c3cc600299681306d29df11e618 " " testharness @@ -4385582,7 +4385582,7 @@ html : [ " -f967f0699a321783fe832464b6e72a2a12021746 +71a62f176f8eefd9b9168b2c222cc6d1c752d3a5 " " testharness @@ -4385706,7 +4385706,7 @@ html : [ " -115bd9943490ab09efbff70239167911eb83d933 +0d6b45c56df0f43a0eac3f364cadca2e4669c6ed " " testharness @@ -4385761,7 +4385761,7 @@ html : [ " -e0449919ad5e744065bb0257dddfe9b488511812 +954c71a96b288530e6c22878fed7a91f42091dc2 " " testharness @@ -4385791,7 +4385791,7 @@ html : [ " -7fa9d6fa5466d2fbfeec8bbcf0718b80b52d2298 +9cbb46b6d969a6440fc5b29ee1a20d607912fc83 " " testharness @@ -4386066,7 +4386066,7 @@ html : [ " -11d6f332a1bbc943bec1ad7391610ffe776b955c +ac4f198d7c1449f38ca14963f73b0d3d90b40b5b " " testharness @@ -4386204,7 +4386204,7 @@ html : [ " -31f115da5321ef52be0ee1ba078b726473694b9c +c8dbeb941bc48f4f3a92907cb140a29f96567057 " " testharness @@ -4386302,7 +4386302,7 @@ html : [ " -cf818330060143078cacbecf77724244eee55cf8 +935ceeb715edd2ffdeb7979d6824736fa82b6d2f " " testharness @@ -4386521,7 +4386521,7 @@ html : [ " -7bbff410650c3bd234c47f080697705b088bd6a4 +caf2f85dfd459b2d48526b8f4c13b37b2bceaddb " " testharness @@ -4386666,7 +4386666,7 @@ html : [ " -98d5dbfded1e2f10e32b14444279760fa2cdeec1 +c2460dfa1ddd26a5c2e199873c0b28189275ff83 " " testharness @@ -4386961,7 +4386961,7 @@ html : [ " -79c40dc084753d48970212eafd97ef531c0ae402 +7828f05226151ebf7d6c7ec984cae1f90ef848d2 " " testharness @@ -4387215,7 +4387215,7 @@ html : [ " -f480ec8ce51f929417b922adf60a2f9ede800fcd +4b6863103622c5fb248dee3e3eb20d955275d037 " " testharness @@ -4387306,7 +4387306,7 @@ html : [ " -aaf77aec555b720b343a9e63adae924c730510dc +36bf604b296c63b213d99408ab38937c62a755dc " " testharness @@ -4387363,7 +4387363,7 @@ html : [ " -5475a6210b724ab2d6a0cefedee9c5432953c61f +98a171ad059eaf9b8e24f3f46db4658f76773f19 " " testharness @@ -4387823,7 +4387823,7 @@ html : [ " -caa99aa4031a22f8c538e5622470560a50c4d5bc +9409f1ffce2110c177332388988d7ddb559d3ae2 " " testharness diff --git a/testing/web-platform/tests/webaudio/resources/audionodeoptions.js b/testing/web-platform/tests/webaudio/resources/audionodeoptions.js index 402a4dae76f92..1ed6d27227601 100644 --- a/testing/web-platform/tests/webaudio/resources/audionodeoptions.js +++ b/testing/web-platform/tests/webaudio/resources/audionodeoptions.js @@ -203,26 +203,17 @@ testChannelCount . throw ( +DOMException expectedNodeOptions . channelCount . -errorType -| -| -TypeError +exceptionType ) ; } else { -let -errorType -= -' -NotSupportedError -' -; [ 0 99 @@ -286,7 +277,10 @@ testValue . throw ( -errorType +DOMException +' +NotSupportedError +' ) ; } @@ -495,11 +489,12 @@ testValue . throw ( +DOMException expectedNodeOptions . channelCountMode . -errorType +exceptionType ) ; } @@ -797,11 +792,12 @@ testValue . throw ( +DOMException expectedNodeOptions . -channelInterpretation +channelCountMode . -errorType +exceptionType ) ; } diff --git a/testing/web-platform/tests/webaudio/resources/audit.js b/testing/web-platform/tests/webaudio/resources/audit.js index 1ded3064d64f5..291c91980da81 100644 --- a/testing/web-platform/tests/webaudio/resources/audit.js +++ b/testing/web-platform/tests/webaudio/resources/audit.js @@ -1295,33 +1295,35 @@ errorMessage else if ( -typeof -( this . _expected -) = = -" -string -" -& -& -error -instanceof += DOMException & & -error +( +this . -name +_expectedDescription = = = +undefined +| +| this . -_expected +_expectedDescription += += += +error +. +name +) ) { didThrowCorrectly @@ -1358,18 +1360,6 @@ _expected error . constructor -& -& -this -. -_expected -. -name -= -= -error -. -name ) { didThrowCorrectly @@ -1383,11 +1373,12 @@ passDetail actual } threw -{ -expected -} ' + +error +. +name ++ errorMessage + ' diff --git a/testing/web-platform/tests/webaudio/resources/start-stop-exceptions.js b/testing/web-platform/tests/webaudio/resources/start-stop-exceptions.js index 779c6a735ef29..f347d5320aaf8 100644 --- a/testing/web-platform/tests/webaudio/resources/start-stop-exceptions.js +++ b/testing/web-platform/tests/webaudio/resources/start-stop-exceptions.js @@ -83,6 +83,7 @@ start . throw ( +DOMException ' InvalidStateError ' @@ -206,6 +207,7 @@ twice . throw ( +DOMException ' InvalidStateError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/ctor-analyser.html b/testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/ctor-analyser.html index d0ba9fa0f1e89..69b4010c25a78 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/ctor-analyser.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/ctor-analyser.html @@ -633,6 +633,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -679,6 +680,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -725,6 +727,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -769,6 +772,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -1182,6 +1186,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -1240,6 +1245,7 @@ . throw ( +DOMException ' IndexSizeError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/realtimeanalyser-fft-sizing.html b/testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/realtimeanalyser-fft-sizing.html index 3d824c02e8c8e..74d5ee3d34e91 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/realtimeanalyser-fft-sizing.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/realtimeanalyser-fft-sizing.html @@ -192,6 +192,7 @@ . throw ( +DOMException ' IndexSizeError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-audiobuffer-interface/audiobuffer-copy-channel.html b/testing/web-platform/tests/webaudio/the-audio-api/the-audiobuffer-interface/audiobuffer-copy-channel.html index d5a3fa2fa8606..38a00f96d1579 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-audiobuffer-interface/audiobuffer-copy-channel.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-audiobuffer-interface/audiobuffer-copy-channel.html @@ -975,6 +975,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -1015,6 +1016,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -1056,6 +1058,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -1098,6 +1101,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -1134,6 +1138,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -1389,6 +1394,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -1429,6 +1435,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -1469,6 +1476,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -1511,6 +1519,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -1547,6 +1556,7 @@ . throw ( +DOMException ' IndexSizeError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-audiobuffer-interface/audiobuffer.html b/testing/web-platform/tests/webaudio/the-audio-api/the-audiobuffer-interface/audiobuffer.html index a0c348f5f71a2..1ba539973bf85 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-audiobuffer-interface/audiobuffer.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-audiobuffer-interface/audiobuffer.html @@ -390,6 +390,7 @@ . throw ( +DOMException ' IndexSizeError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-audiobuffer-interface/ctor-audiobuffer.html b/testing/web-platform/tests/webaudio/the-audio-api/the-audiobuffer-interface/ctor-audiobuffer.html index a51278da2c339..182775fb99250 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-audiobuffer-interface/ctor-audiobuffer.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-audiobuffer-interface/ctor-audiobuffer.html @@ -783,6 +783,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -839,6 +840,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -895,6 +897,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -951,6 +954,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -1363,6 +1367,7 @@ . throw ( +DOMException ' IndexSizeError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/audiobuffersource-channels.html b/testing/web-platform/tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/audiobuffersource-channels.html index 7136a049d0911..5ed422030e5ec 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/audiobuffersource-channels.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/audiobuffersource-channels.html @@ -365,6 +365,7 @@ . throw ( +DOMException ' InvalidStateError ' @@ -463,6 +464,7 @@ . throw ( +DOMException ' InvalidStateError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-audionode-interface/audionode-connect-method-chaining.html b/testing/web-platform/tests/webaudio/the-audio-api/the-audionode-interface/audionode-connect-method-chaining.html index 766e07233e4ed..92fac6cb01a86 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-audionode-interface/audionode-connect-method-chaining.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-audionode-interface/audionode-connect-method-chaining.html @@ -900,6 +900,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -979,6 +980,7 @@ . throw ( +DOMException ' InvalidAccessError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-audionode-interface/audionode-disconnect-audioparam.html b/testing/web-platform/tests/webaudio/the-audio-api/the-audionode-interface/audionode-disconnect-audioparam.html index 9ee6ff290cc4c..a9ffcd02cd0dc 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-audionode-interface/audionode-disconnect-audioparam.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-audionode-interface/audionode-disconnect-audioparam.html @@ -1664,6 +1664,7 @@ . throw ( +DOMException ' InvalidAccessError ' @@ -1715,6 +1716,7 @@ . throw ( +DOMException ' InvalidAccessError ' @@ -1763,6 +1765,7 @@ . throw ( +DOMException ' IndexSizeError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-audionode-interface/audionode-disconnect.html b/testing/web-platform/tests/webaudio/the-audio-api/the-audionode-interface/audionode-disconnect.html index c472ad353db11..9ea3a91431d83 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-audionode-interface/audionode-disconnect.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-audionode-interface/audionode-disconnect.html @@ -1834,6 +1834,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -1923,6 +1924,7 @@ . throw ( +DOMException ' InvalidAccessError ' @@ -1969,6 +1971,7 @@ . throw ( +DOMException ' InvalidAccessError ' @@ -2020,6 +2023,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -2071,6 +2075,7 @@ . throw ( +DOMException ' InvalidAccessError ' @@ -2131,6 +2136,7 @@ . throw ( +DOMException ' InvalidAccessError ' @@ -2182,6 +2188,7 @@ . throw ( +DOMException ' IndexSizeError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-audionode-interface/audionode.html b/testing/web-platform/tests/webaudio/the-audio-api/the-audionode-interface/audionode.html index 2688b275cab7b..564c9076ddfbb 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-audionode-interface/audionode.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-audionode-interface/audionode.html @@ -405,6 +405,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -442,6 +443,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -539,6 +541,7 @@ . throw ( +DOMException ' InvalidAccessError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-audioparam-interface/audioparam-setValueCurve-exceptions.html b/testing/web-platform/tests/webaudio/the-audio-api/the-audioparam-interface/audioparam-setValueCurve-exceptions.html index ecaa308cd8ecd..c80cd174c7978 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-audioparam-interface/audioparam-setValueCurve-exceptions.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-audioparam-interface/audioparam-setValueCurve-exceptions.html @@ -332,6 +332,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -369,6 +370,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -406,6 +408,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -445,6 +448,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -827,6 +831,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -1155,6 +1160,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -2618,6 +2624,7 @@ . throw ( +DOMException ' InvalidStateError ' @@ -2671,6 +2678,7 @@ . throw ( +DOMException ' InvalidStateError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-audioparam-interface/automation-rate.html b/testing/web-platform/tests/webaudio/the-audio-api/the-audioparam-interface/automation-rate.html index f94a5801a651e..8c3bb7efd92e3 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-audioparam-interface/automation-rate.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-audioparam-interface/automation-rate.html @@ -1289,6 +1289,7 @@ . throw ( +DOMException ' InvalidStateError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-audioworklet-interface/audioworkletnode-construction.https.html b/testing/web-platform/tests/webaudio/the-audio-api/the-audioworklet-interface/audioworkletnode-construction.https.html index 653b6a1b8c620..ee4b1bff63bff 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-audioworklet-interface/audioworkletnode-construction.https.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-audioworklet-interface/audioworkletnode-construction.https.html @@ -208,6 +208,7 @@ . throw ( +DOMException ' InvalidStateError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-audioworklet-interface/audioworkletnode-constructor-options.https.html b/testing/web-platform/tests/webaudio/the-audio-api/the-audioworklet-interface/audioworkletnode-constructor-options.https.html index b03005b0d7ae6..8b84e47f7d21f 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-audioworklet-interface/audioworkletnode-constructor-options.https.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-audioworklet-interface/audioworkletnode-constructor-options.https.html @@ -675,6 +675,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -715,6 +716,7 @@ . throw ( +DOMException ' NotSupportedError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-biquadfilternode-interface/biquad-basic.html b/testing/web-platform/tests/webaudio/the-audio-api/the-biquadfilternode-interface/biquad-basic.html index 8a0bef3410794..ac55e13e54edb 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-biquadfilternode-interface/biquad-basic.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-biquadfilternode-interface/biquad-basic.html @@ -754,6 +754,7 @@ . throw ( +DOMException ' InvalidAccessError ' @@ -831,6 +832,7 @@ . throw ( +DOMException ' InvalidAccessError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-channelmergernode-interface/audiochannelmerger-basic.html b/testing/web-platform/tests/webaudio/the-audio-api/the-channelmergernode-interface/audiochannelmerger-basic.html index bc9c532546124..755f3be51cd34 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-channelmergernode-interface/audiochannelmerger-basic.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-channelmergernode-interface/audiochannelmerger-basic.html @@ -218,6 +218,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -309,6 +310,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -423,6 +425,7 @@ . throw ( +DOMException ' InvalidStateError ' @@ -475,6 +478,7 @@ . throw ( +DOMException ' InvalidStateError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-channelmergernode-interface/ctor-channelmerger.html b/testing/web-platform/tests/webaudio/the-audio-api/the-channelmergernode-interface/ctor-channelmerger.html index 44098208875d1..ca925da044009 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-channelmergernode-interface/ctor-channelmerger.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-channelmergernode-interface/ctor-channelmerger.html @@ -306,7 +306,7 @@ isFixed : true -errorType +exceptionType : ' InvalidStateError @@ -323,7 +323,7 @@ isFixed : true -errorType +exceptionType : ' InvalidStateError @@ -519,6 +519,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -570,6 +571,7 @@ . throw ( +DOMException ' InvalidStateError ' @@ -623,6 +625,7 @@ . throw ( +DOMException ' InvalidStateError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-channelsplitternode-interface/audiochannelsplitter.html b/testing/web-platform/tests/webaudio/the-audio-api/the-channelsplitternode-interface/audiochannelsplitter.html index f20fe2110f6e6..287324d98eeea 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-channelsplitternode-interface/audiochannelsplitter.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-channelsplitternode-interface/audiochannelsplitter.html @@ -469,6 +469,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -501,6 +502,7 @@ . throw ( +DOMException ' IndexSizeError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-channelsplitternode-interface/ctor-channelsplitter.html b/testing/web-platform/tests/webaudio/the-audio-api/the-channelsplitternode-interface/ctor-channelsplitter.html index b5892feae8ead..d458218550206 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-channelsplitternode-interface/ctor-channelsplitter.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-channelsplitternode-interface/ctor-channelsplitter.html @@ -298,7 +298,7 @@ isFixed : true -errorType +exceptionType : ' InvalidStateError @@ -327,7 +327,7 @@ isFixed : true -errorType +exceptionType : ' InvalidStateError @@ -523,6 +523,7 @@ . throw ( +DOMException ' IndexSizeError ' @@ -574,6 +575,7 @@ . throw ( +DOMException ' InvalidStateError ' @@ -627,6 +629,7 @@ . throw ( +DOMException ' InvalidStateError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-channels.html b/testing/web-platform/tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-channels.html index 92dfe4eb8c487..dc59e54addca9 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-channels.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-channels.html @@ -306,6 +306,7 @@ . throw ( +DOMException ' NotSupportedError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-setBuffer-already-has-value.html b/testing/web-platform/tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-setBuffer-already-has-value.html index 2d5615f8a604b..e2c78a6fec4e7 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-setBuffer-already-has-value.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-setBuffer-already-has-value.html @@ -242,6 +242,7 @@ . throw ( +DOMException ' InvalidStateError ' @@ -335,6 +336,7 @@ . throw ( +DOMException ' InvalidStateError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-convolvernode-interface/ctor-convolver.html b/testing/web-platform/tests/webaudio/the-audio-api/the-convolvernode-interface/ctor-convolver.html index 51b01636e954a..34f72bfcb809b 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-convolvernode-interface/ctor-convolver.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-convolvernode-interface/ctor-convolver.html @@ -337,7 +337,7 @@ isFixed : true -errorType +exceptionType : ' NotSupportedError @@ -356,7 +356,7 @@ isFixed : true -errorType +exceptionType : ' NotSupportedError diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-delaynode-interface/delaynode-maxdelaylimit.html b/testing/web-platform/tests/webaudio/the-audio-api/the-delaynode-interface/delaynode-maxdelaylimit.html index 90f84bb5ca392..297d680ecb233 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-delaynode-interface/delaynode-maxdelaylimit.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-delaynode-interface/delaynode-maxdelaylimit.html @@ -243,23 +243,24 @@ ( 180 ) -) -. -throw -( -" -NotSupportedError -" -" +' +Setting Delay length -cannot -be +to 180 seconds or more -" +' +) +. +throw +( +DOMException +' +NotSupportedError +' ) ; should @@ -274,20 +275,22 @@ ( 0 ) +' +Setting +Delay +length +to +0 +seconds +' ) . throw ( -" +DOMException +' NotSupportedError -" -" -Delay -length -cannot -be -0 -" +' ) ; should @@ -303,20 +306,21 @@ - 1 ) +' +Setting +Delay +length +to +negative +' ) . throw ( -" +DOMException +' NotSupportedError -" -" -Delay -length -cannot -be -negative -" +' ) ; should @@ -331,19 +335,18 @@ ( NaN ) +' +Setting +Delay +length +to +NaN +' ) . throw ( TypeError -" -Delay -length -cannot -be -a -NaN -" ) ; let diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-dynamicscompressornode-interface/ctor-dynamicscompressor.html b/testing/web-platform/tests/webaudio/the-audio-api/the-dynamicscompressornode-interface/ctor-dynamicscompressor.html index db4ff4874aed0..e1d6848c83671 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-dynamicscompressornode-interface/ctor-dynamicscompressor.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-dynamicscompressornode-interface/ctor-dynamicscompressor.html @@ -1086,6 +1086,10 @@ options . expectedErrorType += += += +TypeError ) { should @@ -1105,6 +1109,37 @@ ; } else +if +( +options +. +expectedErrorType += += += +' +NotSupportedError +' +) +{ +should +( +createNodeFunction +( +) +message +) +. +throw +( +DOMException +' +NotSupportedError +' +) +; +} +else { should ( diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-iirfilternode-interface/iirfilter-basic.html b/testing/web-platform/tests/webaudio/the-audio-api/the-iirfilternode-interface/iirfilter-basic.html index 9f54453189ffa..8ccc84776b170 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-iirfilternode-interface/iirfilter-basic.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-iirfilternode-interface/iirfilter-basic.html @@ -549,6 +549,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -597,6 +598,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -645,6 +647,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -773,6 +776,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -839,6 +843,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -893,6 +898,7 @@ . throw ( +DOMException ' InvalidStateError ' @@ -947,6 +953,7 @@ . throw ( +DOMException ' InvalidStateError ' @@ -1407,6 +1414,7 @@ . throw ( +DOMException ' InvalidAccessError ' @@ -1475,6 +1483,7 @@ . throw ( +DOMException ' InvalidAccessError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/ctor-offlineaudiocontext.html b/testing/web-platform/tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/ctor-offlineaudiocontext.html index c4c233d63956c..1951134600068 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/ctor-offlineaudiocontext.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/ctor-offlineaudiocontext.html @@ -933,6 +933,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -989,6 +990,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -1045,6 +1047,7 @@ . throw ( +DOMException ' NotSupportedError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-oscillatornode-interface/ctor-oscillator.html b/testing/web-platform/tests/webaudio/the-audio-api/the-oscillatornode-interface/ctor-oscillator.html index 18b4f229eceb1..c7328c88fd149 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-oscillatornode-interface/ctor-oscillator.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-oscillatornode-interface/ctor-oscillator.html @@ -660,6 +660,7 @@ . throw ( +DOMException ' InvalidStateError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-pannernode-interface/ctor-panner.html b/testing/web-platform/tests/webaudio/the-audio-api/the-pannernode-interface/ctor-panner.html index 175905996aaac..5dad1d3ad4363 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-pannernode-interface/ctor-panner.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-pannernode-interface/ctor-panner.html @@ -841,6 +841,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -892,6 +893,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -943,6 +945,7 @@ . throw ( +DOMException ' NotSupportedError ' @@ -1160,6 +1163,7 @@ . throw ( +DOMException ' NotSupportedError ' diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-stereopanner-interface/ctor-stereopanner.html b/testing/web-platform/tests/webaudio/the-audio-api/the-stereopanner-interface/ctor-stereopanner.html index 3ef8e92288912..3a8ec486e5ed6 100644 --- a/testing/web-platform/tests/webaudio/the-audio-api/the-stereopanner-interface/ctor-stereopanner.html +++ b/testing/web-platform/tests/webaudio/the-audio-api/the-stereopanner-interface/ctor-stereopanner.html @@ -585,23 +585,9 @@ . value ; -let -method +const +testFunction = -testItem -. -error -? -' -throw -' -: -' -notThrow -' -; -should -( ( ) = @@ -617,6 +603,10 @@ ) ; } +; +const +testDescription += new StereoPannerNode ( @@ -630,23 +620,60 @@ ) } ) -) -[ -method -] +; +if ( testItem . error ) -; -if -( -! +{ testItem . error += += += +TypeError +? +should +( +testFunction +testDescription +) +. +throw +( +TypeError ) +: +should +( +testFunction +testDescription +) +. +throw +( +DOMException +' +NotSupportedError +' +) +; +} +else +{ +should +( +testFunction +testDescription +) +. +notThrow +( +) +; should ( node @@ -675,6 +702,7 @@ ) ; } +} ) ; }