mirror of
https://github.com/pierre42100/comunic
synced 2024-11-17 02:51:13 +00:00
58 lines
74 KiB
JavaScript
58 lines
74 KiB
JavaScript
|
'use strict';
|
||
|
|
||
|
describe('font_post', function() {
|
||
|
var font2109 = decodeFontData('AAEAAAAMAIAAAwBAT1MvMgVKk3wAAADMAAAATmN2dCBsduxjAAABGgAAADpmcGdtT8I0ggAAAVQAAAAUZ2x5ZgUI920AAAFoAAA6smhlYWS059ujAAA8GgAAADZoaGVhvAJFCwAAPFAAAAAkaG10eDPBQ7AAADx0AAADtGxvY2EJxgAAAABAKAAAA7htYXhwGgKqAAAAQ+AAAAAgbmFtZbeHm10AAEQAAAAE0nBvc3QDAAAAAABI0gAAACBwcmVwi09VxAAASPIAAACJAAAEsAGQAAUAAQV4BRQAAAEeBXgFFAAAA4oAZAIGAAAAAAAJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFsdHMAQPAg8RIGpAGQAAAGpAH0/of/8ANdBIQAUgGfAFIA2wBRAUoBiwJcAu8DUgF5AaUA3AOXAUoDzAHwAp0BcgN8ATFaYlpiAAIABEABACx2RSCwAyVFI2FoGCNoYEQtAAIAlgAABBoGQAADAAcAVkAgAQgIQAkCBwQEAQAGBQQDAgUEBwAHBgcBAgEDAAEBAEZ2LzcYAD88LzwQ/TwQ/TwBLzz9PC88/TwAMTABSWi5AAAACEloYbBAUlg4ETe5AAj/wDhZMxEhESUhESGWA4T9EgJY/agGQPnAlgUUAAAAAAAAAAAAAAABAAABlAPEAeYAAwA9QBEBBARABQADAgEAAwIBAAEBRnYvNxgALzwvPAEuLi4uADEwAUlouQABAARJaGGwQFJYOBE3uQAE/8A4WQEhNSEDxPw8A8QBlFIAAQDb/08DxQU5AA0ARUAUAQ4OQA8FDAUAAQgIBwcIAwoBDEZ2LzcYAC8vAYcuDsQO/A7EAS4uADEwAUlouQAMAA5JaGGwQFJYOBE3uQAO/8A4WRcBNjMyFxQHAQYjIic04QKTDxwlAQb9bQ8cJQFuBYYhKQ0N+n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AwUEBQIDBAAAeoeAAAAAAAAACAAAAABNb25vAEAAIP/8BYz+RgEzByEBu0AAAf///wAAAAAAAAABAAMAAQAAAAwABAHgAAAABAAEAAEAAPD///8AAPAg//8AAAABAAQAAAADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMFjgAABUwAHwVMABwDlAAbAAD/4QAA/+QAAP/o/kr//AVrACP+av/gAxMAAACtAAAArQAAAAAAJQCWAJ8AJADwATEAwgDAAEoApgBBAFAAlABHAM8ArwAOAHkBywAEACMARACoACUBHwACAEYAFwEFAJkA2QBcAHIA5QDgACgASwDeARIAJABFAHAAFgA5/+kAFgBLAIj/uQDZAAoAQwCuALoBbAFTAC8AQwBIAiwBKwAlAI//wAAXACj/zf/YACUAnQDlAST/sQBIAJ0A5gARACcAfwCRABIAagDK//wAAAAkAGIApwF8AekAIQBgAIsENASK/2sAOwC1ANUBS/9rAE0AeQXYCbUAbACRAKMBFwHA/9//5wC+BAEAZQB/AIIAiACZALIAwAIuA0MFoAAgACYAPQBOAGEAZQB7AN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gDwAAz/k4Csf9GA3AAeQXfAFH/p/8fAQoAaP9sAE8AvAClBwUAqwCAAB4FpQAlAABAQlVUQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhQTEhEQDw4NDAsKCQgHBgUEAwIBACxFI0ZgILAmYLAEJiNISC0sRSNGI2EgsCZhsAQmI0hILSxFI0ZgsCBhILBGYLAEJiNISC0sRSNGI2GwIGAgsCZhsCBhsAQmI0hILSxFI0ZgsEBhILBmYLAEJiNISC0sRSNGI2GwQGAgsCZhsEBhsAQmI0hILSwBECA8ADwtLCBFIyCwzUQjILgBWlFYIyCwjUQjWSCw7VFYIyCwTUQjWSCwkFFYIyCwDUQjWSEhLSwgIEUYaEQgsAFgIE
|
||
|
describe('post table removal on bad post table values', function() {
|
||
|
it('has invalid version number', function() {
|
||
|
var output;
|
||
|
waitsFor(function() { return output; }, 10000);
|
||
|
var font = new Font("font", new Stream(font2109), {
|
||
|
loadedName: 'font',
|
||
|
type: 'CIDFontType2',
|
||
|
differences: [],
|
||
|
defaultEncoding: [],
|
||
|
cMap: CMapFactory.create(new Name('Identity-H'))
|
||
|
});
|
||
|
ttx(font.data, function(result) { output = result; });
|
||
|
runs(function() {
|
||
|
verifyTtxOutput(output);
|
||
|
expect(/<post>\s*<formatType value="3\.0"\/>/.test(output)).toEqual(true);
|
||
|
});
|
||
|
});
|
||
|
|
||
|
it('has invalid glyph name indexes', function() {
|
||
|
var output;
|
||
|
waitsFor(function() { return output; }, 10000);
|
||
|
var font = new Font("font", new Stream(font2189), {
|
||
|
loadedName: 'font',
|
||
|
type: 'TrueType',
|
||
|
differences: [],
|
||
|
defaultEncoding: []
|
||
|
});
|
||
|
ttx(font.data, function(result) { output = result; });
|
||
|
runs(function() {
|
||
|
verifyTtxOutput(output);
|
||
|
expect(/<post>\s*<formatType value="3\.0"\/>/.test(output)).toEqual(true);
|
||
|
});
|
||
|
});
|
||
|
|
||
|
it('has right amount of glyphs specified', function() {
|
||
|
var output;
|
||
|
waitsFor(function() { return output; }, 10000);
|
||
|
var font = new Font("font", new Stream(font2374), {
|
||
|
loadedName: 'font',
|
||
|
type: 'TrueType',
|
||
|
differences: [],
|
||
|
defaultEncoding: []
|
||
|
});
|
||
|
ttx(font.data, function(result) { output = result; });
|
||
|
runs(function() {
|
||
|
verifyTtxOutput(output);
|
||
|
expect(/<post>\s*<formatType value="3\.0"\/>/.test(output)).toEqual(true);
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
});
|