%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
// META: title=Encoding API: Encoding labels // META: script=resources/encodings.js // META: timeout=long var whitespace = [' ', '\t', '\n', '\f', '\r']; encodings_table.forEach(function(section) { section.encodings.filter(function(encoding) { return encoding.name !== 'replacement'; }).forEach(function(encoding) { encoding.labels.forEach(function(label) { const textDecoderName = encoding.name.toLowerCase(); // ASCII names only, so safe test(function(t) { assert_equals( new TextDecoder(label).encoding, textDecoderName, 'label for encoding should match'); assert_equals( new TextDecoder(label.toUpperCase()).encoding, textDecoderName, 'label matching should be case-insensitive'); whitespace.forEach(function(ws) { assert_equals( new TextDecoder(ws + label).encoding, textDecoderName, 'label for encoding with leading whitespace should match'); assert_equals( new TextDecoder(label + ws).encoding, textDecoderName, 'label for encoding with trailing whitespace should match'); assert_equals( new TextDecoder(ws + label + ws).encoding, textDecoderName, 'label for encoding with surrounding whitespace should match'); }); }, label + ' => ' + encoding.name); }); }); });