Bug 1373627 Allow function call times to occur at the same time in browser_profiling-canvas.js for ESR branch draft
authorTom Ritter <tom@mozilla.com>
Wed, 28 Feb 2018 23:33:46 -0600
changeset 761551 b5351f26ae038810c4af2f712b1d07dd8ab2ccf2
parent 761550 2582e7991f9bccfc7133900bb3d639468f2ec8d5
push id100965
push userbmo:tom@mozilla.com
push dateThu, 01 Mar 2018 05:34:05 +0000
bugs1373627
milestone52.6.1
Bug 1373627 Allow function call times to occur at the same time in browser_profiling-canvas.js for ESR branch MozReview-Commit-ID: Fev1JqBwJYO
devtools/client/canvasdebugger/test/browser_profiling-canvas.js
old mode 100644
new mode 100755
--- a/devtools/client/canvasdebugger/test/browser_profiling-canvas.js
+++ b/devtools/client/canvasdebugger/test/browser_profiling-canvas.js
@@ -32,14 +32,14 @@ function* ifTestingSupported() {
   is(functionCalls.length, 8,
     "The number of function call actors is correct.");
 
   info("Check the timestamps of function calls");
 
   for (let i = 0; i < functionCalls.length - 1; i += 2) {
     ok(functionCalls[i].timestamp > 0, "The timestamp of the called function is larger than 0.");
     ok(functionCalls[i].timestamp < currentTime, "The timestamp has been minus the frame start time.");
-    ok(functionCalls[i + 1].timestamp > functionCalls[i].timestamp, "The timestamp of the called function is correct.");
+    ok(functionCalls[i + 1].timestamp >= functionCalls[i].timestamp, "The timestamp of the called function is correct.");
   }
 
   yield removeTab(target.tab);
   finish();
 }