summaryrefslogtreecommitdiffstats
path: root/devtools/client/inspector/animation/test
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/inspector/animation/test')
-rw-r--r--devtools/client/inspector/animation/test/browser_animation_keyframes-progress-bar.js2
-rw-r--r--devtools/client/inspector/animation/test/summary-graph_delay-sign_head.js5
-rw-r--r--devtools/client/inspector/animation/test/summary-graph_end-delay-sign_head.js5
3 files changed, 7 insertions, 5 deletions
diff --git a/devtools/client/inspector/animation/test/browser_animation_keyframes-progress-bar.js b/devtools/client/inspector/animation/test/browser_animation_keyframes-progress-bar.js
index a7051d9a01..bb69249907 100644
--- a/devtools/client/inspector/animation/test/browser_animation_keyframes-progress-bar.js
+++ b/devtools/client/inspector/animation/test/browser_animation_keyframes-progress-bar.js
@@ -91,7 +91,7 @@ add_task(async function () {
}
});
-function assertPosition(barEl, areaEl, expectedRate, animationInspector) {
+function assertPosition(barEl, areaEl, expectedRate) {
const controllerBounds = areaEl.getBoundingClientRect();
const barBounds = barEl.getBoundingClientRect();
const barX = barBounds.x + barBounds.width / 2 - controllerBounds.x;
diff --git a/devtools/client/inspector/animation/test/summary-graph_delay-sign_head.js b/devtools/client/inspector/animation/test/summary-graph_delay-sign_head.js
index fd601821b6..fffd653b1d 100644
--- a/devtools/client/inspector/animation/test/summary-graph_delay-sign_head.js
+++ b/devtools/client/inspector/animation/test/summary-graph_delay-sign_head.js
@@ -75,8 +75,9 @@ async function testSummaryGraphDelaySign() {
function assertExpected(key) {
const actual = parseFloat(delaySignEl.style[key]);
const expected = parseFloat(expectedResult[key]);
- ok(
- Math.abs(actual - expected) < 0.01,
+ Assert.less(
+ Math.abs(actual - expected),
+ 0.01,
`${key} should be ${expected} (got ${actual})`
);
}
diff --git a/devtools/client/inspector/animation/test/summary-graph_end-delay-sign_head.js b/devtools/client/inspector/animation/test/summary-graph_end-delay-sign_head.js
index f87a554420..09838fcadf 100644
--- a/devtools/client/inspector/animation/test/summary-graph_end-delay-sign_head.js
+++ b/devtools/client/inspector/animation/test/summary-graph_end-delay-sign_head.js
@@ -69,8 +69,9 @@ async function testSummaryGraphEndDelaySign() {
function assertExpected(key) {
const actual = parseFloat(endDelaySignEl.style[key]);
const expected = parseFloat(expectedResult[key]);
- ok(
- Math.abs(actual - expected) < 0.01,
+ Assert.less(
+ Math.abs(actual - expected),
+ 0.01,
`${key} should be ${expected} (got ${actual})`
);
}