summaryrefslogtreecommitdiffstats
path: root/remote/cdp/test/browser/page/browser_getLayoutMetrics.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /remote/cdp/test/browser/page/browser_getLayoutMetrics.js
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-upstream/125.0.1.tar.xz
firefox-upstream/125.0.1.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'remote/cdp/test/browser/page/browser_getLayoutMetrics.js')
-rw-r--r--remote/cdp/test/browser/page/browser_getLayoutMetrics.js30
1 files changed, 18 insertions, 12 deletions
diff --git a/remote/cdp/test/browser/page/browser_getLayoutMetrics.js b/remote/cdp/test/browser/page/browser_getLayoutMetrics.js
index db8b3e8f3c..ad17e97aec 100644
--- a/remote/cdp/test/browser/page/browser_getLayoutMetrics.js
+++ b/remote/cdp/test/browser/page/browser_getLayoutMetrics.js
@@ -21,12 +21,14 @@ add_task(async function documentSmallerThanViewport({ client }) {
layoutViewport.pageY,
"Y position of content is equal to layout viewport"
);
- ok(
- contentSize.width <= layoutViewport.clientWidth,
+ Assert.lessOrEqual(
+ contentSize.width,
+ layoutViewport.clientWidth,
"Width of content is smaller than the layout viewport"
);
- ok(
- contentSize.height <= layoutViewport.clientHeight,
+ Assert.lessOrEqual(
+ contentSize.height,
+ layoutViewport.clientHeight,
"Height of content is smaller than the layout viewport"
);
});
@@ -49,12 +51,14 @@ add_task(async function documentLargerThanViewport({ client }) {
layoutViewport.pageY,
"Y position of content is equal to layout viewport"
);
- ok(
- contentSize.width > layoutViewport.clientWidth,
+ Assert.greater(
+ contentSize.width,
+ layoutViewport.clientWidth,
"Width of content is larger than the layout viewport"
);
- ok(
- contentSize.height > layoutViewport.clientHeight,
+ Assert.greater(
+ contentSize.height,
+ layoutViewport.clientHeight,
"Height of content is larger than the layout viewport"
);
});
@@ -81,12 +85,14 @@ add_task(async function documentLargerThanViewportScrolledXY({ client }) {
contentSize.y + 100,
"Y position of content is equal to layout viewport"
);
- ok(
- contentSize.width > layoutViewport.clientWidth,
+ Assert.greater(
+ contentSize.width,
+ layoutViewport.clientWidth,
"Width of content is larger than the layout viewport"
);
- ok(
- contentSize.height > layoutViewport.clientHeight,
+ Assert.greater(
+ contentSize.height,
+ layoutViewport.clientHeight,
"Height of content is larger than the layout viewport"
);
});