bug 1257718 use is() for comparison with more info on failure than ok() r=padenot
authorKarl Tomlinson <karlt+@karlt.net>
Fri, 17 Jun 2016 14:28:39 +1200
changeset 327583 623150d380e0bd8b8a800ba0ed4995ffa8a576d7
parent 327582 185595dfe3d3189fb50511668419458d8b6f9866
child 327584 57029fe802101ed9b39aa7bc9f2b5c49ffe7477a
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot
bugs1257718
milestone50.0a1
bug 1257718 use is() for comparison with more info on failure than ok() r=padenot MozReview-Commit-ID: 3XgQCq4Gg0S
dom/media/webaudio/test/test_audioParamChaining.html
--- a/dom/media/webaudio/test/test_audioParamChaining.html
+++ b/dom/media/webaudio/test/test_audioParamChaining.html
@@ -57,21 +57,21 @@ var rv = gain.gain.setValueAtTime(0, fra
                   .setValueAtTime(0.5, frameToTime(22000, RATE))
                   .setValueAtTime(1, frameToTime(44000, RATE));
 
 ok(rv instanceof AudioParam, "setValueAtTime returns an AudioParam.");
 ok(rv == gain.gain, "setValueAtTime returns the right AudioParam.");
 
 oc.startRendering().then(function(rendered) {
     console.log(rendered.getChannelData(0));
-    ok(rendered.getChannelData(0)[0] == 0,
+    is(rendered.getChannelData(0)[0], 0,
       "The value of the first step is correct.");
-    ok(rendered.getChannelData(0)[22050] == 0.5,
+    is(rendered.getChannelData(0)[22050], 0.5,
       "The value of the second step is correct");
-    ok(rendered.getChannelData(0)[44099] == 1,
+    is(rendered.getChannelData(0)[44099], 1,
       "The value of the third step is correct.");
     SimpleTest.finish();
 });
 
 </script>
 </pre>
 </body>
 </html>