Bug 1308436 - Update devtools tests with another Web Audio API call the throws the right exception. r=karlt
authorPaul Adenot <paul@paul.cx>
Tue, 14 Aug 2018 19:41:18 +0200
changeset 492003 33972bbac0d60e5097b8e988629e0af7d07c3457
parent 492002 6b69df966f74a2a2d5d86f3f861f56a84beb979e
child 492004 cd578b3bcf5404677fc67b3be503081e7bf93bba
push id1815
push userffxbld-merge
push dateMon, 15 Oct 2018 10:40:45 +0000
treeherdermozilla-release@18d4c09e9378 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskarlt
bugs1308436
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1308436 - Update devtools tests with another Web Audio API call the throws the right exception. r=karlt Differential Revision: https://phabricator.services.mozilla.com/D4104
devtools/client/webaudioeditor/test/doc_bug_1112378.html
--- a/devtools/client/webaudioeditor/test/doc_bug_1112378.html
+++ b/devtools/client/webaudioeditor/test/doc_bug_1112378.html
@@ -9,17 +9,17 @@
   </head>
 
   <body>
 
     <script type="text/javascript">
       "use strict";
 
       const ctx = new AudioContext();
-      const osc = ctx.createOscillator();
+      const osc = ctx.createStereoPanner();
 
       function throwError() {
         try {
           osc.connect({});
         } catch (e) {
           return {
             lineNumber: e.lineNumber,
             fileName: e.fileName,
@@ -29,17 +29,17 @@
             stringified: e.toString(),
             name: e.name
           };
         }
       }
 
       function throwDOMException() {
         try {
-          osc.frequency.setValueAtTime(0, -1);
+          osc.channelCount = 3;
         } catch (e) {
           return {
             lineNumber: e.lineNumber,
             columnNumber: e.columnNumber,
             filename: e.filename,
             message: e.message,
             code: e.code,
             result: e.result,