Bug 1448869 Turn off jitter for some other wbeaudio tests r?baku draft
authorTom Ritter <tom@mozilla.com>
Mon, 26 Mar 2018 14:17:13 -0500
changeset 772654 90fa4a2d6c85de8d773f231875c5419c52160153
parent 772653 38830e58629d9af06fededee8a71b6325d28db84
child 778003 6ee189357c03eb07614b16f5171385cc453b02e1
push id104013
push userbmo:tom@mozilla.com
push dateMon, 26 Mar 2018 19:17:41 +0000
reviewersbaku
bugs1448869
milestone61.0a1
Bug 1448869 Turn off jitter for some other wbeaudio tests r?baku MozReview-Commit-ID: GTrw5nJnuCw
dom/media/webaudio/test/test_audioParamExponentialRamp.html
dom/media/webaudio/test/test_bug1113634.html
--- a/dom/media/webaudio/test/test_audioParamExponentialRamp.html
+++ b/dom/media/webaudio/test/test_audioParamExponentialRamp.html
@@ -41,14 +41,18 @@ var gTest = {
     for (var i = 0; i < 2048; ++i) {
       var t = i / context.sampleRate;
       expectedBuffer.getChannelData(0)[i] = V0 * Math.pow(V1 / V0, (t - T0) / (T1 - T0));
     }
     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>
--- a/dom/media/webaudio/test/test_bug1113634.html
+++ b/dom/media/webaudio/test/test_bug1113634.html
@@ -41,14 +41,18 @@ var gTest = {
     for (var i = 0; i < 2048; ++i) {
       var t = i / context.sampleRate;
       expectedBuffer.getChannelData(0)[i] = V1 + (V0 - V1) * Math.exp(-(t - T0) / TimeConstant);
     }
     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>