Merge pull request #13823 from ahocevar/reduce-canvas-footprint
Reduce canvas memory footprint for better iOS stability
@@ -1,13 +1,7 @@
|
||||
import expect from '../expect.js';
|
||||
import {cssOpacity, getFontParameters} from '../../../src/ol/css.js';
|
||||
import {getFontParameters} from '../../../src/ol/css.js';
|
||||
|
||||
describe('ol.css', function () {
|
||||
describe('cssOpacity()', function () {
|
||||
it('converts number to string, 1 to ""', function () {
|
||||
expect(cssOpacity(0.5)).to.eql('0.5');
|
||||
expect(cssOpacity(1)).to.eql('');
|
||||
});
|
||||
});
|
||||
describe('getFontParameters()', function () {
|
||||
const cases = [
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 109 KiB |