Bug 1456271 - Ajust tests to reflect the alignment to the spec. r=padenot
authorPaul Adenot <paul@paul.cx>
Mon, 16 Jul 2018 15:04:11 +0200
changeset 819000 2ce1d3526399867b54968f718652d0618eb710c8
parent 818999 c6119be431350eebf6afd9d5ba9976f3bcf34f10
child 819001 8c423f75eb7723a68179dfe3ba1602b5c4c637d9
push id116413
push userbgrinstead@mozilla.com
push dateMon, 16 Jul 2018 22:40:17 +0000
reviewerspadenot
bugs1456271
milestone63.0a1
Bug 1456271 - Ajust tests to reflect the alignment to the spec. r=padenot Both for mochitest (simply an expectation adjustment), and in mochitest (align with the code). MozReview-Commit-ID: 2UIq4zrcd02
dom/media/webaudio/test/test_periodicWave.html
testing/web-platform/meta/webaudio/idlharness.https.html.ini
--- a/dom/media/webaudio/test/test_periodicWave.html
+++ b/dom/media/webaudio/test/test_periodicWave.html
@@ -36,20 +36,19 @@ addLoadEvent(function() {
   }, DOMException.INDEX_SIZE_ERR);
   expectException(function() {
     ac.createPeriodicWave(new Float32Array(0), new Float32Array(0));
   }, DOMException.INDEX_SIZE_ERR);
   expectNoException(function() {
     ac.createPeriodicWave(new Float32Array(4097), new Float32Array(4097));
   });
 
-  // real || imag
-  expectException(function() {
+  expectNoException(function() {
     new PeriodicWave(ac, {});
-  }, DOMException.INDEX_SIZE_ERR);
+  });
 
   // real.size == imag.size
   expectException(function() {
     new PeriodicWave(ac, {real: new Float32Array(10), imag: new Float32Array(9)});
   }, DOMException.INDEX_SIZE_ERR);
 
   // 0 size is not allowed
   expectException(function() {
--- a/testing/web-platform/meta/webaudio/idlharness.https.html.ini
+++ b/testing/web-platform/meta/webaudio/idlharness.https.html.ini
@@ -159,22 +159,16 @@
     expected: FAIL
 
   [MediaStreamTrackAudioSourceNode interface: existence and properties of interface prototype object's "constructor" property]
     expected: FAIL
 
   [MediaStreamTrackAudioSourceNode interface: existence and properties of interface prototype object's @@unscopables property]
     expected: FAIL
 
-  [PeriodicWave must be primary interface of new PeriodicWave(context)]
-    expected: FAIL
-
-  [Stringification of new PeriodicWave(context)]
-    expected: FAIL
-
   [AudioWorklet interface: existence and properties of interface object]
     expected: FAIL
 
   [AudioWorklet interface object length]
     expected: FAIL
 
   [AudioWorklet interface object name]
     expected: FAIL