@@ -148,14 +148,14 @@ add_task(async function test() {
148148 let results = await ChromeUtils . requestPerformanceMetrics ( ) ;
149149 exploreResults ( results ) ;
150150
151- Assert . greater ( workerDuration , 0 , "Worker duration should be positive" ) ;
152- Assert . greater ( workerTotal , 0 , "Worker count should be positive" ) ;
153- Assert . greater ( duration , 0 , "Duration should be positive" ) ;
154- Assert . greater ( total , 0 , "Should get a positive count" ) ;
151+ Assert . ok ( workerDuration > 0 , "Worker duration should be positive" ) ;
152+ Assert . ok ( workerTotal > 0 , "Worker count should be positive" ) ;
153+ Assert . ok ( duration > 0 , "Duration should be positive" ) ;
154+ Assert . ok ( total > 0 , "Should get a positive count" ) ;
155155 Assert . ok ( parentProcessEvent , "parent process sent back some events" ) ;
156156 Assert . ok ( isTopLevel , "example.com as a top level window" ) ;
157157 Assert . ok ( aboutMemoryFound , "about:memory" ) ;
158- Assert . greater ( heapUsage , 0 , "got some memory value reported" ) ;
158+ Assert . ok ( heapUsage > 0 , "got some memory value reported" ) ;
159159 Assert . ok ( sharedWorker , "We got some info from a shared worker" ) ;
160160 let numCounters = counterIds . length ;
161161 Assert . ok (
@@ -185,8 +185,8 @@ add_task(async function test() {
185185 workerTotal > previousWorkerTotal ,
186186 "Worker count should be positive"
187187 ) ;
188- Assert . greater ( duration , previousDuration , "Duration should be positive" ) ;
189- Assert . greater ( total , previousTotal , "Should get a positive count" ) ;
188+ Assert . ok ( duration > previousDuration , "Duration should be positive" ) ;
189+ Assert . ok ( total > previousTotal , "Should get a positive count" ) ;
190190
191191 // load a tab with a setInterval, we should get counters on TaskCategory::Timer
192192 await BrowserTestUtils . withNewTab (
@@ -196,7 +196,7 @@ add_task(async function test() {
196196 let previousTimerCalls = timerCalls ;
197197 results = await ChromeUtils . requestPerformanceMetrics ( ) ;
198198 exploreResults ( results , tabId ) ;
199- Assert . greater ( timerCalls , previousTimerCalls , "Got timer calls" ) ;
199+ Assert . ok ( timerCalls > previousTimerCalls , "Got timer calls" ) ;
200200 }
201201 ) ;
202202
@@ -208,7 +208,7 @@ add_task(async function test() {
208208 let previousTimerCalls = timerCalls ;
209209 results = await ChromeUtils . requestPerformanceMetrics ( ) ;
210210 exploreResults ( results , tabId ) ;
211- Assert . greater ( timerCalls , previousTimerCalls , "Got timer calls" ) ;
211+ Assert . ok ( timerCalls > previousTimerCalls , "Got timer calls" ) ;
212212 }
213213 ) ;
214214
@@ -219,7 +219,7 @@ add_task(async function test() {
219219 let tabId = gBrowser . selectedBrowser . outerWindowID ;
220220 results = await ChromeUtils . requestPerformanceMetrics ( ) ;
221221 exploreResults ( results , tabId ) ;
222- Assert . greater ( mediaMemory , 0 , "Got some memory used for media" ) ;
222+ Assert . ok ( mediaMemory > 0 , "Got some memory used for media" ) ;
223223 }
224224 ) ;
225225 }
0 commit comments