Skip to content

Commit

Permalink
Adjusted assertions for multiple browser engines.
Browse files Browse the repository at this point in the history
  • Loading branch information
bre1470 authored and TorsteinHonsi committed Apr 27, 2023
1 parent 5ed9a8b commit 85553ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions samples/unit-tests/3d/column-animation/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ QUnit.test('Point animation', function (assert) {
point.update(200);

realPos = getPhysicalHeight(point);
assert.strictEqual(
realPos + 1,
assert.close(
realPos,
initialPos,
1,
'Time 0 - point should not yet have started moving'
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -598,9 +598,10 @@ QUnit.test(
Math.round(x),
'x position'
);
assert.strictEqual(
Math.round(label.y + label.height - 1),
assert.close(
Math.round(label.y + label.height),
Math.round(y),
1,
'y position'
);
}
Expand Down

0 comments on commit 85553ad

Please sign in to comment.