Bug 1446394 Turn off Time Jitter for test_audioParamSetTargetAtTimeZeroTimeConstant.html r?baku draft
authorTom Ritter <tom@mozilla.com>
Fri, 16 Mar 2018 15:10:25 -0500
changeset 768773 5b8d5a3dbfd6a11c5659bddcf8937c87500b4de4
parent 768772 a5fa6bbec17661cfd4a9ce2942163f0b70c71660
push id102976
push userbmo:tom@mozilla.com
push dateFri, 16 Mar 2018 20:10:39 +0000
reviewersbaku
bugs1446394
milestone61.0a1
Bug 1446394 Turn off Time Jitter for test_audioParamSetTargetAtTimeZeroTimeConstant.html r?baku Disable time jittering when comparing different AudioContexts because they might look different. MozReview-Commit-ID: A3neLqokQ5c
dom/media/webaudio/test/test_audioParamSetTargetAtTimeZeroTimeConstant.html
--- a/dom/media/webaudio/test/test_audioParamSetTargetAtTimeZeroTimeConstant.html
+++ b/dom/media/webaudio/test/test_audioParamSetTargetAtTimeZeroTimeConstant.html
@@ -42,14 +42,17 @@ var gTest = {
     for (var i = 0; i < 2048; ++i) {
       var t = i / context.sampleRate;
       expectedBuffer.getChannelData(0)[i] = V1;
     }
     return expectedBuffer;
   },
 };
 
-runTest();
+SimpleTest.waitForExplicitFinish();
+// Comparing different AudioContexts may result in different timing reated information being reported
+// when we jitter time, as they are on different Relative Timelines.
+SpecialPowers.pushPrefEnv({"set": [["privacy.resistFingerprinting.reduceTimerPrecision.jitter", false]]}, runTest);
 
 </script>
 </pre>
 </body>
 </html>