Bug 1299390 - part 4: Clean up BrowserElementAudioChannel related test cases. r=alwu draft
authorbtian <btian@mozilla.com>
Tue, 16 May 2017 16:00:42 +0800
changeset 578602 ec9d11b29bd6a0bd1a2d4803e9978615d4c5191c
parent 578601 58c37570fe7803fc744db92ba9b3411256cd2394
child 578603 5d0e03859f83c0a367516c1b7007b11a553cd916
push id58979
push userbmo:btian@mozilla.com
push dateTue, 16 May 2017 08:01:29 +0000
reviewersalwu
bugs1299390
milestone55.0a1
Bug 1299390 - part 4: Clean up BrowserElementAudioChannel related test cases. r=alwu MozReview-Commit-ID: 5SXKcz6X4SQ
dom/base/test/mozbrowser_api_utils.js
dom/browser-element/mochitest/browserElement_ActiveStateChange.js
dom/browser-element/mochitest/browserElement_AudioChannel.js
dom/browser-element/mochitest/browserElement_AudioChannelMutedByDefault.js
dom/browser-element/mochitest/browserElement_AudioChannelSeeking.js
dom/browser-element/mochitest/browserElement_AudioChannel_nested.js
dom/browser-element/mochitest/browserElement_NoAudioTrack.js
dom/browser-element/mochitest/chrome.ini
dom/browser-element/mochitest/file_browserElement_ActiveStateChange.html
dom/browser-element/mochitest/file_browserElement_AudioChannelMutedByDefault.html
dom/browser-element/mochitest/file_browserElement_AudioChannelSeeking.html
dom/browser-element/mochitest/file_browserElement_AudioChannel_nested.html
dom/browser-element/mochitest/file_browserElement_NoAudioTrack.html
dom/browser-element/mochitest/iframe_file_audio.html
dom/browser-element/mochitest/mochitest-oop.ini
dom/browser-element/mochitest/mochitest.ini
dom/browser-element/mochitest/test_browserElement_inproc_ActiveStateChange.html
dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html
dom/browser-element/mochitest/test_browserElement_inproc_AudioChannelMutedByDefault.html
dom/browser-element/mochitest/test_browserElement_inproc_AudioChannelSeeking.html
dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel_nested.html
dom/browser-element/mochitest/test_browserElement_inproc_NoAudioTrack.html
dom/browser-element/mochitest/test_browserElement_oop_ActiveStateChange.html
dom/browser-element/mochitest/test_browserElement_oop_AudioChannel.html
dom/browser-element/mochitest/test_browserElement_oop_AudioChannelMutedByDefault.html
dom/browser-element/mochitest/test_browserElement_oop_AudioChannelSeeking.html
dom/browser-element/mochitest/test_browserElement_oop_AudioChannel_nested.html
--- a/dom/base/test/mozbrowser_api_utils.js
+++ b/dom/base/test/mozbrowser_api_utils.js
@@ -20,26 +20,19 @@ const METHODS = {
   getCanGoBack: {},
   getCanGoForward: {},
   getContentDimensions: {},
   findAll: {},
   findNext: {},
   clearMatch: {},
   executeScript: {},
   getWebManifest: {},
-  mute: {},
-  unmute: {},
-  getMuted: {},
-  setVolume: {},
-  getVolume: {},
 };
 
-const ATTRIBUTES = [
-  "allowedAudioChannels",
-];
+const ATTRIBUTES = [];
 
 function once(target, eventName, useCapture = false) {
   info("Waiting for event: '" + JSON.stringify(eventName) + "' on " + target + ".");
 
   return new Promise(resolve => {
     for (let [add, remove] of [
       ["addEventListener", "removeEventListener"],
       ["addMessageListener", "removeMessageListener"],
deleted file mode 100644
--- a/dom/browser-element/mochitest/browserElement_ActiveStateChange.js
+++ /dev/null
@@ -1,97 +0,0 @@
-"use strict";
-
-SimpleTest.waitForExplicitFinish();
-browserElementTestHelpers.setEnabledPref(true);
-
-var fileURL = 'chrome://mochitests/content/chrome/dom/browser-element/mochitest/file_browserElement_ActiveStateChange.html';
-var testFrame;
-var ac;
-
-function assert(aVal, aMessage) {
-  return (!aVal) ? error(aMessage) : 0;
-}
-
-function error(aMessage) {
-  ok(false, "Error : " + aMessage);
-  finish();
-}
-
-function finish() {
-  document.body.removeChild(testFrame);
-  SimpleTest.finish();
-}
-
-function setCommand(aArg) {
-  return new Promise(resolve => {
-    assert(!!ac, "Audio channel doesn't exist!");
-    info("# Command = " + aArg);
-
-    testFrame.src = fileURL + '#' + aArg;
-    var expectedActive = false;
-    switch (aArg) {
-      case 'play':
-        expectedActive = true;
-        break;
-      case 'pause':
-        expectedActive = false;
-        break;
-      default :
-        error("Undefined command!");
-    }
-
-    ac.onactivestatechanged = () => {
-      ac.onactivestatechanged = null;
-      ac.isActive().onsuccess = (e) => {
-        is(expectedActive, e.target.result,
-           "Correct active state = " + expectedActive);
-        resolve();
-      };
-    };
-  });
-}
-
-async function runTests() {
-  await setCommand('play');
-
-  await setCommand('pause');
-
-  finish();
-}
-
-function setupTestFrame() {
-  testFrame = document.createElement('iframe');
-  testFrame.setAttribute('mozbrowser', 'true');
-  testFrame.src = fileURL;
-
-  function loadend() {
-    ok("allowedAudioChannels" in testFrame, "allowedAudioChannels exist");
-    var channels = testFrame.allowedAudioChannels;
-    is(channels.length, 9, "9 audio channel by default");
-
-    ac = channels[0];
-
-    ok(ac instanceof BrowserElementAudioChannel, "Correct class");
-    ok("isActive" in ac, "isActive exists");
-    ok("onactivestatechanged" in ac, "onactivestatechanged exists");
-
-    runTests();
-  }
-
-  function alertError(e) {
-    testFrame.removeEventListener('mozbrowsershowmodalprompt', alertError);
-    var message = e.detail.message
-    error(message);
-  }
-
-  testFrame.addEventListener('mozbrowserloadend', loadend, {once: true});
-  testFrame.addEventListener('mozbrowsershowmodalprompt', alertError);
-  document.body.appendChild(testFrame);
-}
-
-addEventListener('testready', function() {
-  SpecialPowers.pushPrefEnv({'set': [["b2g.system_startup_url", window.location.href]]},
-                            function() {
-    SimpleTest.executeSoon(setupTestFrame);
-  });
-});
-
deleted file mode 100644
--- a/dom/browser-element/mochitest/browserElement_AudioChannel.js
+++ /dev/null
@@ -1,199 +0,0 @@
-/* Any copyright is dedicated to the public domain.
-   http://creativecommons.org/publicdomain/zero/1.0/ */
-
-// Bug 1113086 - tests for AudioChannel API into BrowserElement
-
-"use strict";
-
-SimpleTest.waitForExplicitFinish();
-browserElementTestHelpers.setEnabledPref(true);
-
-function noaudio() {
-  info("Test : no-audio");
-  var iframe = document.createElement('iframe');
-  iframe.setAttribute('mozbrowser', 'true');
-  iframe.src = 'chrome://mochitests/content/chrome/dom/browser-element/mochitest/file_empty.html';
-
-  function noaudio_loadend() {
-    ok("mute" in iframe, "iframe.mute exists");
-    ok("unmute" in iframe, "iframe.unmute exists");
-    ok("getMuted" in iframe, "iframe.getMuted exists");
-    ok("getVolume" in iframe, "iframe.getVolume exists");
-    ok("setVolume" in iframe, "iframe.setVolume exists");
-
-    ok("allowedAudioChannels" in iframe, "allowedAudioChannels exist");
-    var channels = iframe.allowedAudioChannels;
-    is(channels.length, 9, "9 audio channel by default");
-
-    var ac = channels[0];
-
-    ok(ac instanceof BrowserElementAudioChannel, "Correct class");
-    ok("getVolume" in ac, "ac.getVolume exists");
-    ok("setVolume" in ac, "ac.setVolume exists");
-    ok("getMuted" in ac, "ac.getMuted exists");
-    ok("setMuted" in ac, "ac.setMuted exists");
-    ok("isActive" in ac, "ac.isActive exists");
-
-    new Promise(function(r, rr) {
-      var req = ac.getVolume();
-      ok(req instanceof DOMRequest, "This is a domRequest.");
-      req.onsuccess = function(e) {
-        is(e.target.result, 1.0, "The default volume should be 1.0");
-        r();
-      }
-    })
-
-    .then(function() {
-      return new Promise(function(resolve) {
-        iframe.mute();
-        iframe.getMuted()
-          .then(result => is(result, true, "iframe.getMuted should be true."))
-          .then(resolve);
-      });
-    })
-
-    .then(function() {
-      return new Promise(function(resolve) {
-        iframe.unmute();
-        iframe.getMuted()
-          .then(result => is(result, false, "iframe.getMuted should be false."))
-          .then(resolve);
-      });
-    })
-
-    .then(function() {
-      return new Promise(function(resolve) {
-        iframe.setVolume(0);
-        iframe.getVolume()
-          .then(result => is(result, 0, "iframe.getVolume should be 0."))
-          .then(resolve);
-      });
-    })
-
-    .then(function() {
-      return new Promise(function(resolve) {
-        iframe.setVolume(1);
-        iframe.getVolume()
-          .then(result => is(result, 1, "iframe.getVolume should be 1."))
-          .then(resolve);
-      });
-    })
-
-    .then(function() {
-      return new Promise(function(r, rr) {
-        ac.getMuted().onsuccess = function(e) {
-          is(e.target.result, false, "The default muted value should be false");
-          r();
-        }
-      });
-    })
-
-    .then(function() {
-      return new Promise(function(r, rr) {
-        ac.setVolume(0.8).onsuccess = function() { r(); }
-      });
-    })
-
-    .then(function() {
-      return new Promise(function(r, rr) {
-        ac.getVolume().onsuccess = function(e) {
-          // the actual value is 0.800000011920929..
-          ok(Math.abs(0.8 - e.target.result) < 0.01, "The new volume should be 0.8: " + e.target.result);
-          r();
-        }
-      });
-    })
-
-    .then(function() {
-      return new Promise(function(r, rr) {
-        ac.setVolume(1.0).onsuccess = function() { r(); }
-      });
-    })
-
-    .then(function() {
-      return new Promise(function(r, rr) {
-        ac.setMuted(true).onsuccess = function() { r(); }
-      });
-    })
-
-    .then(function() {
-      return new Promise(function(r, rr) {
-        ac.getMuted().onsuccess = function(e) {
-          is(e.target.result, true, "The new muted value should be true");
-          r();
-        }
-      });
-    })
-
-    .then(function() {
-      return new Promise(function(r, rr) {
-        ac.isActive().onsuccess = function(e) {
-          is(e.target.result, false, "ac.isActive is false: no audio element active.");
-          r();
-        }
-      });
-    })
-
-    .then(runTests);
-  }
-
-  iframe.addEventListener('mozbrowserloadend', noaudio_loadend);
-  document.body.appendChild(iframe);
-}
-
-function audio() {
-  info("Test : audio");
-  var iframe = document.createElement('iframe');
-  iframe.setAttribute('mozbrowser', 'true');
-  iframe.src = 'chrome://mochitests/content/chrome/dom/browser-element/mochitest/iframe_file_audio.html';
-
-  function audio_loadend() {
-    ok("mute" in iframe, "iframe.mute exists");
-    ok("unmute" in iframe, "iframe.unmute exists");
-    ok("getMuted" in iframe, "iframe.getMuted exists");
-    ok("getVolume" in iframe, "iframe.getVolume exists");
-    ok("setVolume" in iframe, "iframe.setVolume exists");
-
-    ok("allowedAudioChannels" in iframe, "allowedAudioChannels exist");
-    var channels = iframe.allowedAudioChannels;
-    is(channels.length, 9, "9 audio channel by default");
-
-    var ac = channels[0];
-
-    ok(ac instanceof BrowserElementAudioChannel, "Correct class");
-    ok("getVolume" in ac, "ac.getVolume exists");
-    ok("setVolume" in ac, "ac.setVolume exists");
-    ok("getMuted" in ac, "ac.getMuted exists");
-    ok("setMuted" in ac, "ac.setMuted exists");
-    ok("isActive" in ac, "ac.isActive exists");
-
-    ac.onactivestatechanged = function() {
-      ok(true, "activestatechanged event received.");
-      ac.onactivestatechanged = null;
-      document.body.removeChild(iframe);
-      runTests();
-    }
-  }
-
-  iframe.addEventListener('mozbrowserloadend', audio_loadend);
-  document.body.appendChild(iframe);
-}
-
-var tests = [ noaudio, audio ];
-
-function runTests() {
-  if (tests.length == 0) {
-    SimpleTest.finish();
-    return;
-  }
-
-  var test = tests.shift();
-  test();
-}
-
-addEventListener('testready', function() {
-  SpecialPowers.pushPrefEnv({'set': [["b2g.system_startup_url", window.location.href]]},
-                            function() {
-    SimpleTest.executeSoon(runTests);
-  });
-});
deleted file mode 100644
--- a/dom/browser-element/mochitest/browserElement_AudioChannelMutedByDefault.js
+++ /dev/null
@@ -1,103 +0,0 @@
-"use strict";
-
-SimpleTest.waitForExplicitFinish();
-browserElementTestHelpers.setEnabledPref(true);
-
-var fileURL = 'chrome://mochitests/content/chrome/dom/browser-element/mochitest/file_browserElement_AudioChannelMutedByDefault.html';
-var testFrame;
-var ac;
-
-function alertListener(e) {
-  var message = e.detail.message
-  if (/^OK/.exec(message)) {
-    ok(true, "Message from file : " + message);
-  } else if (/^KO/.exec(message)) {
-    error(message);
-  } else if (/DONE/.exec(message)) {
-    ok(true, "Audio playback success!");
-    finish();
-  } else {
-    error("Undefined event.");
-  }
-}
-
-function assert(aVal, aMessage) {
-  return (!aVal) ? error(aMessage) : 0;
-}
-
-function error(aMessage) {
-  ok(false, "Error : " + aMessage);
-  finish();
-}
-
-function finish() {
-  testFrame.removeEventListener('mozbrowsershowmodalprompt', alertListener);
-  document.body.removeChild(testFrame);
-  SimpleTest.finish();
-}
-
-function setCommand(aArg) {
-  assert(!!ac, "Audio channel doesn't exist!");
-  info("# Command = " + aArg);
-  testFrame.src = fileURL + '#' + aArg;
-
-  switch (aArg) {
-    case 'play':
-      ac.onactivestatechanged = () => {
-        ac.onactivestatechanged = null;
-        ok(true, "activestatechanged event received.");
-
-        new Promise(function(r, rr) {
-          ac.getMuted().onsuccess = function(e) {
-            is(e.target.result, true, "Muted channel by default");
-            r();
-          }
-        }).then(function() {
-          ac.setMuted(false).onsuccess = function(e) {
-            ok(true, "Unmuted the channel.");
-          }
-        });
-      };
-      break;
-    default :
-      error("Undefined command!");
-  }
-}
-
-function runTests() {
-  setCommand('play');
-}
-
-function setupTestFrame() {
-  testFrame = document.createElement('iframe');
-  testFrame.setAttribute('mozbrowser', 'true');
-  testFrame.src = fileURL;
-
-  function loadend() {
-    testFrame.removeEventListener('mozbrowserloadend', loadend);
-    ok("allowedAudioChannels" in testFrame, "allowedAudioChannels exist");
-    var channels = testFrame.allowedAudioChannels;
-    is(channels.length, 9, "9 audio channel by default");
-
-    ac = channels[0];
-    ok(ac instanceof BrowserElementAudioChannel, "Correct class");
-    ok("getMuted" in ac, "ac.getMuted exists");
-    ok("setMuted" in ac, "ac.setMuted exists");
-    ok("onactivestatechanged" in ac, "onactivestatechanged exists");
-
-    runTests();
-  }
-
-  info("Set EventListeners.");
-  testFrame.addEventListener('mozbrowsershowmodalprompt', alertListener);
-  testFrame.addEventListener('mozbrowserloadend', loadend);
-  document.body.appendChild(testFrame);
-}
-
-addEventListener('testready', function() {
-  SpecialPowers.pushPrefEnv({'set': [["b2g.system_startup_url", window.location.href],
-                                     ["dom.audiochannel.mutedByDefault", true]]},
-                            function() {
-    SimpleTest.executeSoon(setupTestFrame);
-  });
-});
deleted file mode 100644
--- a/dom/browser-element/mochitest/browserElement_AudioChannelSeeking.js
+++ /dev/null
@@ -1,123 +0,0 @@
-"use strict";
-
-SimpleTest.waitForExplicitFinish();
-browserElementTestHelpers.setEnabledPref(true);
-
-var fileURL = 'chrome://mochitests/content/chrome/dom/browser-element/mochitest/file_browserElement_AudioChannelSeeking.html';
-var generator = runTests();
-var testFrame;
-var ac;
-
-function alertListener(e) {
-  var message = e.detail.message
-  if (/^OK/.exec(message)) {
-    ok(true, "Message from file : " + message);
-    continueTest();
-  } else if (/^KO/.exec(message)) {
-    error(message);
-  } else if (/^INFO/.exec(message)) {
-    info("Message from file : " + message);
-  } else {
-    error("Undefined event.");
-  }
-}
-
-function assert(aVal, aMessage) {
-  return (!aVal) ? error(aMessage) : 0;
-}
-
-function error(aMessage) {
-  ok(false, "Error : " + aMessage);
-  finish();
-}
-
-function continueTest() {
-  generator.next();
-}
-
-function finish() {
-  testFrame.removeEventListener('mozbrowsershowmodalprompt', alertListener);
-  ok(true, "Remove event-listener.");
-  document.body.removeChild(testFrame);
-  ok(true, "Remove test-frame from document.");
-  SimpleTest.finish();
-}
-
-function setCommand(aArg) {
-  assert(!!ac, "Audio channel doesn't exist!");
-  info("# Command = " + aArg);
-  testFrame.src = fileURL + '#' + aArg;
-
-  switch (aArg) {
-    case 'play':
-      ac.onactivestatechanged = () => {
-        ac.onactivestatechanged = null;
-        ok(true, "Receive onactivestatechanged after audio started.");
-        continueTest();
-      };
-      break;
-    case 'seeking':
-      ac.onactivestatechanged = () => {
-        ac.onactivestatechanged = null;
-        error("Should not receive onactivestatechanged during seeking!");
-      };
-      break;
-    case 'pause':
-      ac.onactivestatechanged = null;
-      break;
-    default :
-      error("Undefined command!");
-  }
-}
-
-function* runTests() {
-  setCommand('play');
-  yield undefined;
-
-  setCommand('seeking');
-  yield undefined;
-
-  setCommand('seeking');
-  yield undefined;
-
-  setCommand('seeking');
-  yield undefined;
-
-  setCommand('pause');
-  yield undefined;
-
-  finish();
-}
-
-function setupTestFrame() {
-  testFrame = document.createElement('iframe');
-  testFrame.setAttribute('mozbrowser', 'true');
-  testFrame.src = fileURL;
-
-  function loadend() {
-    testFrame.removeEventListener('mozbrowserloadend', loadend);
-    ok("allowedAudioChannels" in testFrame, "allowedAudioChannels exist");
-    var channels = testFrame.allowedAudioChannels;
-    is(channels.length, 9, "9 audio channel by default");
-
-    ac = channels[0];
-    ok(ac instanceof BrowserElementAudioChannel, "Correct class");
-    ok("onactivestatechanged" in ac, "onactivestatechanged exists");
-
-    continueTest();
-  }
-
-  testFrame.addEventListener('mozbrowsershowmodalprompt', alertListener);
-  testFrame.addEventListener('mozbrowserloadend', loadend);
-  ok(true, "Add event-listeners.");
-
-  document.body.appendChild(testFrame);
-  ok(true, "Append test-frame to document.");
-}
-
-addEventListener('testready', function() {
-  SpecialPowers.pushPrefEnv({'set': [["b2g.system_startup_url", window.location.href]]},
-                            function() {
-    SimpleTest.executeSoon(setupTestFrame);
-  });
-});
deleted file mode 100644
--- a/dom/browser-element/mochitest/browserElement_AudioChannel_nested.js
+++ /dev/null
@@ -1,69 +0,0 @@
-/* Any copyright is dedicated to the public domain.
-   http://creativecommons.org/publicdomain/zero/1.0/ */
-
-// Bug 1113086 - tests for AudioChannel API into BrowserElement
-
-"use strict";
-
-SimpleTest.waitForExplicitFinish();
-browserElementTestHelpers.setEnabledPref(true);
-
-function runTests() {
-  var iframe = document.createElement('iframe');
-  iframe.setAttribute('mozbrowser', 'true');
-
-  var listener = function(e) {
-    var message = e.detail.message;
-    if (/^OK/.exec(message)) {
-      ok(true, "Message from app: " + message);
-    } else if (/^KO/.exec(message)) {
-      ok(false, "Message from app: " + message);
-    } else if (/DONE/.exec(message)) {
-      ok(true, "Messaging from app complete");
-      iframe.removeEventListener('mozbrowsershowmodalprompt', listener);
-      SimpleTest.finish();
-    }
-  }
-
-  function audio_loadend() {
-    ok("mute" in iframe, "iframe.mute exists");
-    ok("unmute" in iframe, "iframe.unmute exists");
-    ok("getMuted" in iframe, "iframe.getMuted exists");
-    ok("getVolume" in iframe, "iframe.getVolume exists");
-    ok("setVolume" in iframe, "iframe.setVolume exists");
-
-    ok("allowedAudioChannels" in iframe, "allowedAudioChannels exist");
-    var channels = iframe.allowedAudioChannels;
-    is(channels.length, 9, "9 audio channel by default");
-
-    var ac = channels[0];
-
-    ok(ac instanceof BrowserElementAudioChannel, "Correct class");
-    ok("getVolume" in ac, "ac.getVolume exists");
-    ok("setVolume" in ac, "ac.setVolume exists");
-    ok("getMuted" in ac, "ac.getMuted exists");
-    ok("setMuted" in ac, "ac.setMuted exists");
-    ok("isActive" in ac, "ac.isActive exists");
-
-    info("Setting the volume...");
-    ac.setVolume(0.5);
-
-    ac.onactivestatechanged = function() {
-      ok(true, "activestatechanged event received.");
-      ac.onactivestatechanged = null;
-    }
-  }
-
-  iframe.addEventListener('mozbrowserloadend', audio_loadend);
-  iframe.addEventListener('mozbrowsershowmodalprompt', listener);
-  document.body.appendChild(iframe);
-
-  iframe.src = 'chrome://mochitests/content/chrome/dom/browser-element/mochitest/file_browserElement_AudioChannel_nested.html';
-}
-
-addEventListener('testready', function() {
-  SpecialPowers.pushPrefEnv({'set': [["b2g.system_startup_url", window.location.href]]},
-                            function() {
-    SimpleTest.executeSoon(runTests);
-  });
-});
deleted file mode 100644
--- a/dom/browser-element/mochitest/browserElement_NoAudioTrack.js
+++ /dev/null
@@ -1,91 +0,0 @@
-"use strict";
-
-SimpleTest.waitForExplicitFinish();
-browserElementTestHelpers.setEnabledPref(true);
-
-var fileURL = 'chrome://mochitests/content/chrome/dom/browser-element/mochitest/file_browserElement_NoAudioTrack.html';
-var generator = runTests();
-var testFrame;
-
-function alertListener(e) {
-  var message = e.detail.message;
-  if (/^OK/.exec(message)) {
-    ok(true, "Message from file : " + message);
-    continueTest();
-  } else if (/^KO/.exec(message)) {
-    error(message);
-  } else {
-    error("Undefined event.");
-  }
-}
-
-function error(aMessage) {
-  ok(false, "Error : " + aMessage);
-  finish();
-}
-
-function continueTest() {
-  generator.next();
-}
-
-function finish() {
-  testFrame.removeEventListener('mozbrowsershowmodalprompt', alertListener);
-  ok(true, "Remove event-listener.");
-  document.body.removeChild(testFrame);
-  ok(true, "Remove test-frame from document.");
-  SimpleTest.finish();
-}
-
-function setCommand(aArg) {
-  info("# Command = " + aArg);
-  testFrame.src = fileURL + '#' + aArg;
-}
-
-function* runTests() {
-  setCommand('play');
-  yield undefined;
-
-  // wait a second to make sure that onactivestatechanged isn't dispatched.
-  setCommand('idle');
-  yield undefined;
-
-  finish();
-}
-
-function setupTestFrame() {
-  testFrame = document.createElement('iframe');
-  testFrame.setAttribute('mozbrowser', 'true');
-  testFrame.src = fileURL;
-
-  function loadend() {
-    testFrame.removeEventListener('mozbrowserloadend', loadend);
-    ok("allowedAudioChannels" in testFrame, "allowedAudioChannels exist");
-    var channels = testFrame.allowedAudioChannels;
-    is(channels.length, 9, "9 audio channel by default");
-
-    var ac = channels[0];
-    ok(ac instanceof BrowserElementAudioChannel, "Correct class");
-    ok("onactivestatechanged" in ac, "onactivestatechanged exists");
-
-    ac.onactivestatechanged = () => {
-      ac.onactivestatechanged = null;
-      ok(true, "Should receive onactivestatechanged!");
-    };
-
-    continueTest();
-  }
-
-  testFrame.addEventListener('mozbrowserloadend', loadend);
-  testFrame.addEventListener('mozbrowsershowmodalprompt', alertListener);
-  ok(true, "Add event-listeners.");
-
-  document.body.appendChild(testFrame);
-  ok(true, "Append test-frame to document.");
-}
-
-addEventListener('testready', function() {
-  SpecialPowers.pushPrefEnv({'set': [["b2g.system_startup_url", window.location.href]]},
-                            function() {
-    SimpleTest.executeSoon(setupTestFrame);
-  });
-});
--- a/dom/browser-element/mochitest/chrome.ini
+++ b/dom/browser-element/mochitest/chrome.ini
@@ -1,89 +1,62 @@
 [DEFAULT]
 skip-if = e10s
 
 support-files =
   audio.ogg
   async.js
   browserElementTestHelpers.js
-  browserElement_ActiveStateChange.js
-  browserElement_AudioChannelSeeking.js
-  browserElement_AudioChannelMutedByDefault.js
   browserElement_AudioPlayback.js
-  browserElement_AudioChannel.js
-  browserElement_AudioChannel_nested.js
   browserElement_BackForward.js
   browserElement_BadScreenshot.js
   browserElement_DocumentFirstPaint.js
   browserElement_DOMRequestError.js
   browserElement_ExecuteScript.js
   browserElement_Find.js
   browserElement_GetContentDimensions.js
   browserElement_GetScreenshot.js
   browserElement_GetScreenshotDppx.js
   browserElement_getWebManifest.js
   browserElement_NextPaint.js
-  browserElement_NoAudioTrack.js
   browserElement_PurgeHistory.js
   browserElement_ReloadPostRequest.js
   browserElement_SendEvent.js
   browserElement_SetVisible.js
   browserElement_SetVisibleFrames.js
   browserElement_SetVisibleFrames2.js
   browserElement_Stop.js
   browserElement_VisibilityChange.js
   file_audio.html
-  file_browserElement_ActiveStateChange.html
-  file_browserElement_AudioChannelSeeking.html
-  file_browserElement_AudioChannel_nested.html
-  file_browserElement_AudioChannelMutedByDefault.html
   file_browserElement_ExecuteScript.html
   file_browserElement_NextPaint.html
-  file_browserElement_NoAudioTrack.html
   file_browserElement_SendEvent.html
   file_browserElement_SetVisibleFrames2_Outer.html
   file_browserElement_SetVisibleFrames_Inner.html
   file_browserElement_SetVisibleFrames_Outer.html
   file_bug709759.sjs
   file_empty.html
   file_post_request.html
   file_web_manifest.html
   file_web_manifest.json
   file_illegal_web_manifest.html
-  iframe_file_audio.html
 
-[test_browserElement_inproc_ActiveStateChange.html]
-tags = audiochannel
-[test_browserElement_inproc_AudioChannelMutedByDefault.html]
-tags = audiochannel
-skip-if = toolkit == 'android'
-[test_browserElement_inproc_AudioChannelSeeking.html]
-tags = audiochannel
 [test_browserElement_inproc_AudioPlayback.html]
 skip-if = true # bug 1332850, bug 1332862
-[test_browserElement_inproc_AudioChannel.html]
-tags = audiochannel
-skip-if = true # bug 1332862
-[test_browserElement_inproc_AudioChannel_nested.html]
-tags = audiochannel
-skip-if = true # bug 1332850, 1332862
 [test_browserElement_inproc_BackForward.html]
 [test_browserElement_inproc_BadScreenshot.html]
 [test_browserElement_inproc_DocumentFirstPaint.html]
 [test_browserElement_inproc_DOMRequestError.html]
 [test_browserElement_inproc_ExecuteScript.html]
 [test_browserElement_inproc_Find.html]
 [test_browserElement_inproc_GetContentDimensions.html]
 [test_browserElement_inproc_GetScreenshot.html]
 [test_browserElement_inproc_GetScreenshotDppx.html]
 [test_browserElement_inproc_getWebManifest.html]
 [test_browserElement_inproc_NextPaint.html]
-[test_browserElement_inproc_NoAudioTrack.html]
-tags = audiochannel
 [test_browserElement_inproc_PurgeHistory.html]
 [test_browserElement_inproc_ReloadPostRequest.html]
 disabled = no modal prompt on POST reload for chrome window
 [test_browserElement_inproc_SendEvent.html]
 [test_browserElement_inproc_SetVisible.html]
 [test_browserElement_inproc_SetVisibleFrames.html]
 [test_browserElement_inproc_SetVisibleFrames2.html]
 [test_browserElement_inproc_Stop.html]
deleted file mode 100644
--- a/dom/browser-element/mochitest/file_browserElement_ActiveStateChange.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<body>
-<script type="application/javascript">
-var audio = new Audio();
-audio.src = "audio.ogg";
-audio.loop = true;
-
-function runCommands()
-{
-  switch(location.hash) {
-    case '#play':
-      audio.play();
-      break;
-    case '#pause':
-      audio.pause();
-      break;
-    default :
-      alert("Undefined command!");
-  }
-}
-window.addEventListener('hashchange', runCommands);
-</script>
-</body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/dom/browser-element/mochitest/file_browserElement_AudioChannelMutedByDefault.html
+++ /dev/null
@@ -1,65 +0,0 @@
-<html>
-<body>
-<script>
-var audio = new Audio("audio.ogg");
-var context = new AudioContext();
-var node = context.createMediaElementSource(audio);
-var sp = context.createScriptProcessor(2048, 1);
-node.connect(sp);
-var expectedSamplesCount;
-var nonzeroSamplesCount = 0;
-var isStarted = false;
-
-function ok(aVal, aMsg) {
-  alert((!!aVal ? "OK" : "KO") + ", " + aMsg);
-}
-
-function finish() {
-  audio.onended = null;
-  audio.pause();
-  alert("DONE");
-}
-
-function processSamples(e) {
-  var buf = e.inputBuffer.getChannelData(0);
-  for (var i = 0; i < buf.length; ++i) {
-    if (buf[i] != 0) {
-      if (!isStarted) {
-        isStarted = true;
-        ok(true, "Start process audio sample.");
-      }
-      nonzeroSamplesCount++;
-    }
-  }
-
-  if (nonzeroSamplesCount >= expectedSamplesCount) {
-    finish();
-  }
-}
-
-audio.oncanplaythrough = function() {
-  var testDuration = audio.duration > 1.0 ? 1.0 : audio.duration * 0.5;
-  expectedSamplesCount = Math.floor(testDuration * context.sampleRate);
-  sp.onaudioprocess = processSamples;
-};
-
-function runCommands()
-{
-  switch(location.hash) {
-    case '#play':
-      ok(true, "Audio starts playing.")
-      audio.play();
-      audio.onended = () => {
-        audio.onended = null;
-        ok(false, "Audio shouldn't go ended in this test!")
-      };
-      break;
-    default :
-      ok(false, "Undefined command!");
-  }
-}
-
-window.addEventListener('hashchange', runCommands);
-</script>
-</body>
-</html>
deleted file mode 100644
--- a/dom/browser-element/mochitest/file_browserElement_AudioChannelSeeking.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<body>
-<script type="application/javascript">
-var audio = new Audio();
-audio.src = "audio.ogg";
-audio.loop = true;
-
-function assert(aVal, aMessage) {
-  return (!aVal) ? ok(false, aMessage) : 0;
-}
-
-function ok(aVal, aMsg) {
-  alert((!!aVal ? "OK" : "KO") + ", " + aMsg);
-}
-
-function info(aMsg) {
-  alert("INFO" + ", " + aMsg);
-}
-
-function randomSeeking() {
-  var seekingPosition = Math.random() * audio.duration;
-  assert(seekingPosition < audio.duration, "Seeking position out of range!")
-  audio.currentTime = seekingPosition;
-  audio.onseeked = () => {
-    audio.onseeked = null;
-    location.hash = '#idle';
-    ok(true, "Seeking complete, position = " + seekingPosition);
-  };
-}
-
-function runCommands()
-{
-  switch(location.hash) {
-    case '#play':
-      audio.play();
-      audio.onplay = () => {
-        audio.onplay = null;
-        info("Start playing, duration = " + audio.duration);
-      };
-      break;
-    case '#seeking':
-      randomSeeking();
-      break;
-    case '#pause':
-      audio.pause();
-      audio.onpause = () => {
-        audio.onpause = null;
-        ok(true, "Stop playing.");
-      };
-      break;
-    case '#idle':
-      break;
-    default :
-      ok(false, "Undefined command!");
-  }
-}
-
-window.addEventListener('hashchange', runCommands);
-</script>
-</body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/dom/browser-element/mochitest/file_browserElement_AudioChannel_nested.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<html>
-<head>
-<script type="text/javascript">
-
-  function ok(a, msg) {
-    alert((!!a ? "OK" : "KO") + " " + msg);
-  }
-
-  function is(a, b, msg) {
-    ok(a === b, msg);
-  }
-
-  function finish(a, b, msg) {
-    alert("DONE");
-  }
-
-  addEventListener('load', function(e) {
-    var iframe = document.createElement('iframe');
-    iframe.setAttribute('mozbrowser', 'true');
-    // set 'remote' to true here will make the the iframe remote in _inproc_
-    // test and in-process in _oop_  test.
-    iframe.setAttribute('remote', 'true');
-
-    iframe.addEventListener('mozbrowserloadend', function(e) {
-      ok("mute" in iframe, "iframe.mute exists");
-      ok("unmute" in iframe, "iframe.unmute exists");
-      ok("getMuted" in iframe, "iframe.getMuted exists");
-      ok("getVolume" in iframe, "iframe.getVolume exists");
-      ok("setVolume" in iframe, "iframe.setVolume exists");
-
-      ok("allowedAudioChannels" in iframe, "allowedAudioChannels exist");
-      var channels = iframe.allowedAudioChannels;
-      is(channels.length, 9, "9 audio channel by default");
-
-      var ac = channels[0];
-
-      ok(ac instanceof BrowserElementAudioChannel, "Correct class");
-      ok("getVolume" in ac, "ac.getVolume exists");
-      ok("setVolume" in ac, "ac.setVolume exists");
-      ok("getMuted" in ac, "ac.getMuted exists");
-      ok("setMuted" in ac, "ac.setMuted exists");
-      ok("isActive" in ac, "ac.isActive exists");
-
-      ac.onactivestatechanged = function() {
-        ok(true, "activestatechanged event received.");
-
-        ac.getVolume().onsuccess = function(e) {
-          ok(e.target.result, 1, "Default volume is 1");
-        };
-
-        finish();
-      }
-    });
-
-    document.body.appendChild(iframe);
-    iframe.src = 'chrome://mochitests/content/chrome/dom/browser-element/mochitest/file_audio.html';
-  });
-</script>
-</head>
-<body>
-</body>
-</html>
deleted file mode 100644
--- a/dom/browser-element/mochitest/file_browserElement_NoAudioTrack.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<body>
-<script type="application/javascript">
-var audio = new Audio();
-audio.src = "noaudio.webm";
-audio.preload = "none";
-audio.loop = true;
-
-function ok(aVal, aMsg) {
-  alert((!!aVal ? "OK" : "KO") + ", " + aMsg);
-}
-
-function runCommands()
-{
-  switch(location.hash) {
-    case '#play':
-      audio.play();
-      ok(true, "Start playing a video without audio track!");
-      break;
-    case '#idle':
-      ok(!audio.paused, "Video is still playing!");
-      break;
-    default :
-      ok(false, "Undefined command!");
-  }
-}
-
-window.addEventListener('hashchange', runCommands);
-</script>
-</body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/dom/browser-element/mochitest/iframe_file_audio.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<html>
-<body>
-<iframe src="file_audio.html"></iframe>
-</body>
-</html>
--- a/dom/browser-element/mochitest/mochitest-oop.ini
+++ b/dom/browser-element/mochitest/mochitest-oop.ini
@@ -5,29 +5,23 @@ skip-if = os == "android" || e10s
 support-files =
   browserElement_OpenMixedProcess.js
   file_browserElement_ExecuteScript.html
   file_browserElement_OpenMixedProcess.html
   browserElement_ExecuteScript.js
   browserElement_Find.js
   browserElement_OpenTab.js
 
-[test_browserElement_oop_AudioChannelSeeking.html]
-tags = audiochannel
-disabled = Disabling some OOP tests for WebIDL scope changes (bug 1310706 for re-enabling)
 [test_browserElement_oop_Viewmode.html]
 [test_browserElement_oop_ThemeColor.html]
 [test_browserElement_inproc_ErrorSecurity.html]
 [test_browserElement_inproc_OpenMixedProcess.html]
 disabled = disabled for bug 1266035 (bug 1310706 for re-enabling)
 [test_browserElement_oop_Alert.html]
 [test_browserElement_oop_AlertInFrame.html]
-[test_browserElement_oop_AudioChannelMutedByDefault.html]
-tags = audiochannel
-disabled = Disabling some OOP tests for WebIDL scope changes (bug 1310706 for re-enabling)
 [test_browserElement_oop_Auth.html]
 [test_browserElement_oop_BackForward.html]
 disabled = Disabling some OOP tests for WebIDL scope changes (bug 1310706 for re-enabling)
 [test_browserElement_oop_BadScreenshot.html]
 disabled = Disabling some OOP tests for WebIDL scope changes (bug 1310706 for re-enabling)
 [test_browserElement_oop_BrowserWindowResize.html]
 [test_browserElement_oop_Close.html]
 [test_browserElement_oop_CookiesNotThirdParty.html]
@@ -107,20 +101,11 @@ disabled = Disabling some OOP tests for 
 [test_browserElement_oop_XFrameOptionsDeny.html]
 disabled = Disabling some OOP tests for WebIDL scope changes (bug 1310706 for re-enabling)
 [test_browserElement_oop_XFrameOptionsSameOrigin.html]
 [test_browserElement_oop_ContextmenuEvents.html]
 [test_browserElement_oop_CloseFromOpener.html]
 [test_browserElement_oop_ExposableURI.html]
 [test_browserElement_oop_GetContentDimensions.html]
 disabled = Disabling some OOP tests for WebIDL scope changes (bug 1310706 for re-enabling)
-[test_browserElement_oop_AudioChannel.html]
-tags = audiochannel
-disabled = Disabling some OOP tests for WebIDL scope changes (bug 1310706 for re-enabling)
-[test_browserElement_oop_AudioChannel_nested.html]
-tags = audiochannel
-disabled = Disabling some OOP tests for WebIDL scope changes (bug 1310706 for re-enabling)
 [test_browserElement_oop_getWebManifest.html]
 disabled = Disabling some OOP tests for WebIDL scope changes (bug 1310706 for re-enabling)
 [test_browserElement_oop_OpenWindowEmpty.html]
-[test_browserElement_oop_ActiveStateChange.html]
-tags = audiochannel
-disabled = Disabling some OOP tests for WebIDL scope changes (bug 1310706 for re-enabling)
--- a/dom/browser-element/mochitest/mochitest.ini
+++ b/dom/browser-element/mochitest/mochitest.ini
@@ -85,17 +85,16 @@ support-files =
   file_download_bin.sjs
   file_empty.html
   file_empty_script.js
   file_focus.html
   file_http_401_response.sjs
   file_http_407_response.sjs
   file_wyciwyg.html
   file_audio.html
-  iframe_file_audio.html
   file_web_manifest.html
   file_web_manifest.json
   file_illegal_web_manifest.html
   noaudio.webm
 
 # Note: browserElementTestHelpers.js looks at the test's filename to determine
 # whether the test should be OOP.  "_oop_" signals OOP, "_inproc_" signals in
 # process.  Default is OOP.
deleted file mode 100644
--- a/dom/browser-element/mochitest/test_browserElement_inproc_ActiveStateChange.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <title>Test ActiveStateChangeOnChangingMutedOrVolume</title>
-  <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
-  <script type="application/javascript" src="browserElementTestHelpers.js"></script>
-  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
-</head>
-<body>
-<script type="application/javascript" src="browserElement_ActiveStateChange.js">
-</script>
-</body>
-</html>
deleted file mode 100644
--- a/dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <title>Test of browser element audioChannel.</title>
-  <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
-  <script type="application/javascript" src="browserElementTestHelpers.js"></script>
-  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
-</head>
-<body>
-<script type="application/javascript" src="browserElement_AudioChannel.js">
-</script>
-</body>
-</html>
deleted file mode 100644
--- a/dom/browser-element/mochitest/test_browserElement_inproc_AudioChannelMutedByDefault.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <title>Bug 1235535 - Audio Channel Muted-By-Default.</title>
-  <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
-  <script type="application/javascript" src="browserElementTestHelpers.js"></script>
-  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
-</head>
-<body>
-<script type="application/javascript" src="browserElement_AudioChannelMutedByDefault.js">
-</script>
-</body>
-</html>
deleted file mode 100644
--- a/dom/browser-element/mochitest/test_browserElement_inproc_AudioChannelSeeking.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <title>Bug 1225425 - Do not unregister the AudioChannelAgent during seeking</title>
-  <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
-  <script type="application/javascript" src="browserElementTestHelpers.js"></script>
-  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
-</head>
-<body>
-<script type="application/javascript" src="browserElement_AudioChannelSeeking.js">
-</script>
-</body>
-</html>
deleted file mode 100644
--- a/dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel_nested.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <title>Test of browser element audioChannel in nested mozbrowser iframes.</title>
-  <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
-  <script type="application/javascript" src="browserElementTestHelpers.js"></script>
-  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
-</head>
-<body>
-<script type="application/javascript" src="browserElement_AudioChannel_nested.js">
-</script>
-</body>
-</html>
deleted file mode 100644
--- a/dom/browser-element/mochitest/test_browserElement_inproc_NoAudioTrack.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <title>Bug 1227051 - No audio track video shouldn't register the AudioChannelAgent</title>
-  <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
-  <script type="application/javascript" src="browserElementTestHelpers.js"></script>
-  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
-</head>
-<body>
-<script type="application/javascript" src="browserElement_NoAudioTrack.js">
-</script>
-</body>
-</html>
deleted file mode 100644
--- a/dom/browser-element/mochitest/test_browserElement_oop_ActiveStateChange.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <title>Test ActiveStateChangeOnChangingMutedOrVolume</title>
-  <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
-  <script type="application/javascript" src="browserElementTestHelpers.js"></script>
-  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
-</head>
-<body>
-<script type="application/javascript" src="browserElement_ActiveStateChange.js">
-</script>
-</body>
-</html>
deleted file mode 100644
--- a/dom/browser-element/mochitest/test_browserElement_oop_AudioChannel.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <title>Test of browser element audioChannel.</title>
-  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
-  <script type="application/javascript" src="browserElementTestHelpers.js"></script>
-  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
-</head>
-<body>
-<script type="application/javascript" src="browserElement_AudioChannel.js">
-</script>
-</body>
-</html>
deleted file mode 100644
--- a/dom/browser-element/mochitest/test_browserElement_oop_AudioChannelMutedByDefault.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <title>Bug 1235535 - Audio Channel Muted-By-Default.</title>
-  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
-  <script type="application/javascript" src="browserElementTestHelpers.js"></script>
-  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
-</head>
-<body>
-<script type="application/javascript" src="browserElement_AudioChannelMutedByDefault.js">
-</script>
-</body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/dom/browser-element/mochitest/test_browserElement_oop_AudioChannelSeeking.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <title>Bug 1225425 - Do not unregister the AudioChannelAgent during seeking</title>
-  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
-  <script type="application/javascript" src="browserElementTestHelpers.js"></script>
-  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
-</head>
-<body>
-<script type="application/javascript" src="browserElement_AudioChannelSeeking.js">
-</script>
-</body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/dom/browser-element/mochitest/test_browserElement_oop_AudioChannel_nested.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <title>Test of browser element audioChannel.</title>
-  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
-  <script type="application/javascript" src="browserElementTestHelpers.js"></script>
-  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
-</head>
-<body>
-<script type="application/javascript" src="browserElement_AudioChannel_nested.js">
-</script>
-</body>
-</html>