summaryrefslogtreecommitdiffstats
path: root/gfx/tests/browser/browser_native_font_cache_macos.js
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/tests/browser/browser_native_font_cache_macos.js')
-rw-r--r--gfx/tests/browser/browser_native_font_cache_macos.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/gfx/tests/browser/browser_native_font_cache_macos.js b/gfx/tests/browser/browser_native_font_cache_macos.js
index 919a5c7a72..e71ccbf5a6 100644
--- a/gfx/tests/browser/browser_native_font_cache_macos.js
+++ b/gfx/tests/browser/browser_native_font_cache_macos.js
@@ -87,8 +87,9 @@ add_task(async () => {
const nfrm_match = nfrm_line.exec(copiedText);
if (nfrm_match) {
const nfrm_mb = nfrm_match[1];
- ok(
- nfrm_mb < MB_EXCLUSIVE_MAX,
+ Assert.less(
+ nfrm_mb,
+ MB_EXCLUSIVE_MAX,
`native-font-resource-mac ${nfrm_mb} MB should be less than ${MB_EXCLUSIVE_MAX} MB.`
);
} else {
@@ -102,8 +103,9 @@ add_task(async () => {
const gfx_match = gfx_line.exec(copiedText);
if (gfx_match && gfx_match.index < om_match.index) {
const gfx_mb = gfx_match[1];
- ok(
- gfx_mb < MB_EXCLUSIVE_MAX,
+ Assert.less(
+ gfx_mb,
+ MB_EXCLUSIVE_MAX,
`Explicit Allocations gfx ${gfx_mb} MB should be less than ${MB_EXCLUSIVE_MAX} MB.`
);
} else {