Skip to content

Commit

Permalink
test round issues
Browse files Browse the repository at this point in the history
  • Loading branch information
thednp committed Aug 11, 2024
1 parent 0573514 commit 978439a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cypress/e2e/dommatrix.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,14 @@ describe('DOMMatrix Class Test', () => {

expect(m2.isIdentity).to.equal(d2.isIdentity);
expect(m2.is2D).to.equal(d2.is2D);
expect(m2.toFloat32Array()).to.deep.equal(d2.toFloat32Array());
expect(m2.toFloat64Array()).to.deep.equal(d2.toFloat64Array());

// same here
// expect(m2.toFloat32Array()).to.deep.equal(d2.toFloat32Array());
// expect(m2.toFloat64Array()).to.deep.equal(d2.toFloat64Array());
expect(Array.from(m2.toFloat32Array()).map(x => x.toFixed(5)))
.to.deep.equal(Array.from(d2.toFloat32Array()).map(x => x.toFixed(5)));
expect(Array.from(m2.toFloat64Array()).map(x => x.toFixed(5)))
.to.deep.equal(Array.from(d2.toFloat64Array()).map(x => x.toFixed(5)));
});

cy.log('CSSMatrix.translate(x:150)').then(() => {
Expand Down

0 comments on commit 978439a

Please sign in to comment.