Bug 1177399 - Remove an unnecessary part of the AudioChannel test. r=ehsan
authorAndrea Marchesini <amarchesini@mozilla.com>
Fri, 17 Jul 2015 08:05:00 -0400
changeset 253503 b1b8616162b422db01563cea69a84b376e839d9f
parent 253502 0184189bf1c5cc86684da65bcbb301e73853162e
child 253504 ab61ece2428c8b258b3e8c6c7fc1829fafc3faee
push id29067
push userkwierso@gmail.com
push dateSat, 18 Jul 2015 00:57:04 +0000
treeherdermozilla-central@e2f2eb9ecca0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs1177399
milestone42.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 1177399 - Remove an unnecessary part of the AudioChannel test. r=ehsan CLOSED TREE
dom/html/test/file_mozaudiochannel.html
--- a/dom/html/test/file_mozaudiochannel.html
+++ b/dom/html/test/file_mozaudiochannel.html
@@ -1,15 +1,14 @@
 <!DOCTYPE HTML>
 <html>
 <body>
 <div id="content" style="display: none">
   <audio id="audio1" />
   <audio id="audio2" mozaudiochannel="foo" />
-  <audio id="audio3" mozaudiochannel="content" />
 </div>
 
 <script type="application/javascript">
 
 function is(a, b, msg) {
   parent.postMessage({ status: a === b, msg: msg }, '*');
 }
 
@@ -24,38 +23,24 @@ function finish() {
 function test_basic() {
   var audio1 = document.getElementById("audio1");
   ok(audio1, "Audio Element exists");
   is(audio1.mozAudioChannelType, "normal", "Default audio1 channel == 'normal'");
   try {
   audio1.mozAudioChannelType = "foo";
   } catch(e) {}
   is(audio1.mozAudioChannelType, "normal", "Default audio1 channel == 'normal'");
-  audio1.mozAudioChannelType = "alarm";
-  is(audio1.mozAudioChannelType, "alarm", "Default audio1 channel == 'alarm'");
 
   var audio2 = document.getElementById("audio2");
   ok(audio2, "Audio Element exists");
   is(audio2.mozAudioChannelType, "normal", "Default audio2 channel == 'normal'");
   try {
   audio2.mozAudioChannelType = "foo";
   } catch(e) {}
   is(audio2.mozAudioChannelType, "normal", "Default audio2 channel == 'normal'");
-  audio2.mozAudioChannelType = "alarm";
-  is(audio2.mozAudioChannelType, "alarm", "Default audio2 channel == 'alarm'");
-
-  var audio3 = document.getElementById("audio3");
-  ok(audio3, "Audio Element exists");
-  is(audio3.mozAudioChannelType, "content", "Default audio3 channel == 'content'");
-  try {
-  audio3.mozAudioChannelType = "foo";
-  } catch(e) {}
-  is(audio3.mozAudioChannelType, "content", "audio3 channel == 'content'");
-  audio3.mozAudioChannelType = "alarm";
-  is(audio3.mozAudioChannelType, "alarm", "audio3 channel == 'alarm'");
 
   runTest();
 }
 
 function test_preferences(aChannel) {
   SpecialPowers.pushPrefEnv({"set": [["media.defaultAudioChannel", aChannel ]]},
     function() {
       var audio = document.createElement('audio');