Bug 454683 - Media element setVolume should fail on invalid values; "bustage fix" fix :->
authorSerge Gautherie <sgautherie.bz@free.fr>
Mon, 29 Sep 2008 04:21:19 +0200
changeset 19864 2a022ad8a3a07dfeb85f609f023b46674f855d52
parent 19863 e55a141d8dd8e3272cb0c844eb6e11862c0c9be1
child 19865 dccf2cdea8eeb42ec34b345a99126091e7a06f5a
push id2502
push usersgautherie.bz@free.fr
push dateMon, 29 Sep 2008 02:21:54 +0000
treeherdermozilla-central@2a022ad8a3a0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs454683
milestone1.9.1b1pre
Bug 454683 - Media element setVolume should fail on invalid values; "bustage fix" fix :->
content/media/video/test/test_volume.html
--- a/content/media/video/test/test_volume.html
+++ b/content/media/video/test/test_volume.html
@@ -13,17 +13,17 @@
 <pre id="test">
 <script class="testbody" type="text/javascript">
 
 function test(element, value, shouldThrow) {
   var threw = false;
   try {
     element.volume = value;
   } catch (err if (err instanceof Components.interfaces.nsIException &&
-                   err.result == Components.results.NS_ERROR_DOM_INDEX_SIZE_ERR) {
+                   err.result == Components.results.NS_ERROR_DOM_INDEX_SIZE_ERR)) {
     threw = true;
   }
   is(shouldThrow, threw, "Case: " +element.id+ " setVolume=" + value);
 }
 
 
 var ids = new Array(document.getElementById('v1'), document.getElementById('a1'));