Bug 1456271 - Ajust tests to reflect the alignment to the spec. draft
authorPaul Adenot <paul@paul.cx>
Mon, 16 Jul 2018 15:04:11 +0200
changeset 818785 7acc2742bd7b84ff4b624695ee52153599237de5
parent 818708 eb6672aae33e91d3b30d1df82dfebaf3e3731bae
push id116338
push userpaul@paul.cx
push dateMon, 16 Jul 2018 14:41:15 +0000
bugs1456271
milestone63.0a1
Bug 1456271 - Ajust tests to reflect the alignment to the spec. 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