From d408de78adbef590645bd0e64a08e7ff2b12f500 Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Mon, 18 Jul 2016 18:53:24 +0200 Subject: [PATCH] Bug 1130010 - Add tests for the new {AudioParam,AudioNode}.disconnect() methods. r=dminor Initial patch by Thomas Escalon . MozReview-Commit-ID: 2cptcTYuzDQ --- dom/media/webaudio/test/mochitest.ini | 8 ++ .../webaudio/test/test_disconnectAll.html | 51 +++++++++++++ .../test/test_disconnectAudioParam.html | 58 ++++++++++++++ .../test_disconnectAudioParamFromOutput.html | 67 +++++++++++++++++ .../test/test_disconnectExceptions.html | 75 +++++++++++++++++++ .../test/test_disconnectFromAudioNode.html | 55 ++++++++++++++ ...test_disconnectFromAudioNodeAndOutput.html | 59 +++++++++++++++ ...connectFromAudioNodeAndOutputAndInput.html | 57 ++++++++++++++ .../test/test_disconnectFromOutput.html | 54 +++++++++++++ 9 files changed, 484 insertions(+) create mode 100644 dom/media/webaudio/test/test_disconnectAll.html create mode 100644 dom/media/webaudio/test/test_disconnectAudioParam.html create mode 100644 dom/media/webaudio/test/test_disconnectAudioParamFromOutput.html create mode 100644 dom/media/webaudio/test/test_disconnectExceptions.html create mode 100644 dom/media/webaudio/test/test_disconnectFromAudioNode.html create mode 100644 dom/media/webaudio/test/test_disconnectFromAudioNodeAndOutput.html create mode 100644 dom/media/webaudio/test/test_disconnectFromAudioNodeAndOutputAndInput.html create mode 100644 dom/media/webaudio/test/test_disconnectFromOutput.html diff --git a/dom/media/webaudio/test/mochitest.ini b/dom/media/webaudio/test/mochitest.ini index 8a81b85bae7f..b9dbdc6bcd9e 100644 --- a/dom/media/webaudio/test/mochitest.ini +++ b/dom/media/webaudio/test/mochitest.ini @@ -121,6 +121,14 @@ skip-if = toolkit == 'android' # bug 1056706 [test_delayNodeTailWithGain.html] [test_delayNodeTailWithReconnect.html] [test_delayNodeWithGain.html] +[test_disconnectAll.html] +[test_disconnectAudioParam.html] +[test_disconnectAudioParamFromOutput.html] +[test_disconnectExceptions.html] +[test_disconnectFromAudioNode.html] +[test_disconnectFromAudioNodeAndOutput.html] +[test_disconnectFromAudioNodeAndOutputAndInput.html] +[test_disconnectFromOutput.html] [test_dynamicsCompressorNode.html] [test_dynamicsCompressorNodePassThrough.html] [test_dynamicsCompressorNodeWithGain.html] diff --git a/dom/media/webaudio/test/test_disconnectAll.html b/dom/media/webaudio/test/test_disconnectAll.html new file mode 100644 index 000000000000..9d3af066eaac --- /dev/null +++ b/dom/media/webaudio/test/test_disconnectAll.html @@ -0,0 +1,51 @@ + + + + Test whether we can disconnect an AudioNode + + + + + +
+      
+    
+ + \ No newline at end of file diff --git a/dom/media/webaudio/test/test_disconnectAudioParam.html b/dom/media/webaudio/test/test_disconnectAudioParam.html new file mode 100644 index 000000000000..1f4e79c56472 --- /dev/null +++ b/dom/media/webaudio/test/test_disconnectAudioParam.html @@ -0,0 +1,58 @@ + + + + Test whether we can disconnect an AudioParam + + + + + +
+      
+    
+ + diff --git a/dom/media/webaudio/test/test_disconnectAudioParamFromOutput.html b/dom/media/webaudio/test/test_disconnectAudioParamFromOutput.html new file mode 100644 index 000000000000..a08ffa53bc2b --- /dev/null +++ b/dom/media/webaudio/test/test_disconnectAudioParamFromOutput.html @@ -0,0 +1,67 @@ + + + + Test whether we can disconnect an AudioParam + + + + + +
+      
+    
+ + diff --git a/dom/media/webaudio/test/test_disconnectExceptions.html b/dom/media/webaudio/test/test_disconnectExceptions.html new file mode 100644 index 000000000000..ceba972c99d1 --- /dev/null +++ b/dom/media/webaudio/test/test_disconnectExceptions.html @@ -0,0 +1,75 @@ + + + + Test whether we can disconnect an AudioNode + + + + + +
+      
+    
+ + diff --git a/dom/media/webaudio/test/test_disconnectFromAudioNode.html b/dom/media/webaudio/test/test_disconnectFromAudioNode.html new file mode 100644 index 000000000000..931195146655 --- /dev/null +++ b/dom/media/webaudio/test/test_disconnectFromAudioNode.html @@ -0,0 +1,55 @@ + + + + Test whether we can disconnect an AudioNode + + + + + +
+      
+    
+ + diff --git a/dom/media/webaudio/test/test_disconnectFromAudioNodeAndOutput.html b/dom/media/webaudio/test/test_disconnectFromAudioNodeAndOutput.html new file mode 100644 index 000000000000..5c4e3ee5d0a2 --- /dev/null +++ b/dom/media/webaudio/test/test_disconnectFromAudioNodeAndOutput.html @@ -0,0 +1,59 @@ + + + + Test whether we can disconnect an AudioNode + + + + + +
+      
+    
+ + diff --git a/dom/media/webaudio/test/test_disconnectFromAudioNodeAndOutputAndInput.html b/dom/media/webaudio/test/test_disconnectFromAudioNodeAndOutputAndInput.html new file mode 100644 index 000000000000..6526cf65b01c --- /dev/null +++ b/dom/media/webaudio/test/test_disconnectFromAudioNodeAndOutputAndInput.html @@ -0,0 +1,57 @@ + + + + Test whether we can disconnect an AudioNode + + + + + +
+      
+    
+ + \ No newline at end of file diff --git a/dom/media/webaudio/test/test_disconnectFromOutput.html b/dom/media/webaudio/test/test_disconnectFromOutput.html new file mode 100644 index 000000000000..8a6daf5c7de5 --- /dev/null +++ b/dom/media/webaudio/test/test_disconnectFromOutput.html @@ -0,0 +1,54 @@ + + + + Test whether we can disconnect an AudioNode + + + + + +
+      
+    
+ + \ No newline at end of file