diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2022-11-02 00:20:27 -0700 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2023-02-19 21:25:18 -0800 |
commit | fb3cfa01d928d07f90d4360a78468a2a52b9d6bf (patch) | |
tree | 5c1935d7e7a37aac2fb3b0c6a15c47889eab5ea0 | |
parent | 0795a3d38c7f417c65f04a6cf336118d3cc71d62 (diff) | |
download | gjs-fb3cfa01d928d07f90d4360a78468a2a52b9d6bf.tar.gz |
test: Relax assertion in cr.textExtents() again
These are two more values that seem to depend on what fonts you have
installed.
See: #461
-rw-r--r-- | installed-tests/js/testCairo.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/installed-tests/js/testCairo.js b/installed-tests/js/testCairo.js index e9ede59f..786bf2a2 100644 --- a/installed-tests/js/testCairo.js +++ b/installed-tests/js/testCairo.js @@ -115,8 +115,8 @@ describe('Cairo', function () { yAdvance: 0, }); expect(cr.textExtents('trailing spaces ')).toEqual({ - xBearing: 0, - yBearing: -8, + xBearing: jasmine.any(Number), + yBearing: jasmine.any(Number), width: jasmine.any(Number), height: jasmine.any(Number), xAdvance: jasmine.any(Number), |