Bug 1162385 - Intermittent fix: be less strict about profiler buffer status in recording model test. r=me
authorJordan Santell <jsantell@mozilla.com>
Fri, 19 Jun 2015 14:37:07 -0700
changeset 249936 9dd5230cd23b234b958dee5aba110f9e5abb22ba
parent 249792 c319f262ce3ea3db52aad981abb9f33e36857c3d
child 249937 ab4470b614ef576cad8a1bb398154a5d36730fbd
push id61393
push usercbook@mozilla.com
push dateMon, 22 Jun 2015 12:44:45 +0000
treeherdermozilla-inbound@4b47c3f074a3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1162385
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1162385 - Intermittent fix: be less strict about profiler buffer status in recording model test. r=me
browser/devtools/performance/test/browser_perf-recording-model-02.js
--- a/browser/devtools/performance/test/browser_perf-recording-model-02.js
+++ b/browser/devtools/performance/test/browser_perf-recording-model-02.js
@@ -8,19 +8,19 @@
 let BUFFER_SIZE = 20000;
 
 function* spawnTest() {
   let { target, front } = yield initBackend(SIMPLE_URL, { TEST_MOCK_PROFILER_CHECK_TIMER: 10 });
   let config = { bufferSize: BUFFER_SIZE };
 
   let model = yield front.startRecording(config);
   let [_, stats] = yield onceSpread(front, "profiler-status");
-  is(stats.totalSize, BUFFER_SIZE, `profiler-status event has correct totalSize: ${stats.totalSize}`);
-  ok(stats.position < BUFFER_SIZE, `profiler-status event has correct position: ${stats.position}`);
-  is(stats.generation, 0, `profiler-status event has correct generation: ${stats.generation}`);
+  is(stats.totalSize, BUFFER_SIZE, `profiler-status event has totalSize: ${stats.totalSize}`);
+  ok(stats.position < BUFFER_SIZE, `profiler-status event has position: ${stats.position}`);
+  ok(stats.generation >= 0, `profiler-status event has generation: ${stats.generation}`);
   ok(stats.isActive, `profiler-status event is isActive`);
   is(typeof stats.currentTime, "number", `profiler-status event has currentTime`);
 
   // Halt once more for a buffer status to ensure we're beyond 0
   yield once(front, "profiler-status");
 
   let lastBufferStatus = 0;
   let checkCount = 0;