bug 1257718 use is() for comparison with more info on failure than ok() r?padenot
MozReview-Commit-ID: 3XgQCq4Gg0S
--- 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>