Bug 1442127 - Allow function call times to occur at the same time in browser_profiling-canvas.js for ESR branch. r=baku, a=test-only draft
authorTom Ritter <tom@mozilla.com>
Wed, 28 Feb 2018 23:33:46 -0600
changeset 776204 f931f85b09dad21f9502cf261fab84bc36607554
parent 776203 16b8073d5c30200c28a55ee2a46e2bebaee2bfc3
child 776205 da5792b70f306fc570dd144d31fd9ba11dfdffd7
push id104831
push userbmo:jgilbert@mozilla.com
push dateMon, 02 Apr 2018 19:53:20 +0000
reviewersbaku, test-only
bugs1442127
milestone52.7.0
Bug 1442127 - Allow function call times to occur at the same time in browser_profiling-canvas.js for ESR branch. r=baku, a=test-only 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();
 }