i18n: rename 'FCP parameters' -> 'FCI parameters' in the check report (RU: 'Параметры FCI')
SW cache v78 -> v79.
This commit is contained in:
+2
-2
@@ -7991,7 +7991,7 @@ function fcpDiffHtml(expectedHex, actualHex) {
|
|||||||
for (const it of a.items) if (!eMap[it.key]) keys.push(it.key);
|
for (const it of a.items) if (!eMap[it.key]) keys.push(it.key);
|
||||||
let html = '';
|
let html = '';
|
||||||
if (keys.length) {
|
if (keys.length) {
|
||||||
html += '<div class="mt-1 text-xs text-gray-500 dark:text-slate-400">' + esc(t('FCP parameters')) + '</div>';
|
html += '<div class="mt-1 text-xs text-gray-500 dark:text-slate-400">' + esc(t('FCI parameters')) + '</div>';
|
||||||
html += '<table class="w-full text-xs border-collapse">';
|
html += '<table class="w-full text-xs border-collapse">';
|
||||||
html += '<thead><tr class="border-b border-gray-200 dark:border-slate-700">' +
|
html += '<thead><tr class="border-b border-gray-200 dark:border-slate-700">' +
|
||||||
'<th class="text-left py-0.5 px-1 font-medium text-gray-500 dark:text-slate-400">' + esc(t('Parameter')) + '</th>' +
|
'<th class="text-left py-0.5 px-1 font-medium text-gray-500 dark:text-slate-400">' + esc(t('Parameter')) + '</th>' +
|
||||||
@@ -8296,7 +8296,7 @@ const LANG_RU = {
|
|||||||
'Filetype + size (FCP)': 'Тип файла + размер (FCP)',
|
'Filetype + size (FCP)': 'Тип файла + размер (FCP)',
|
||||||
'Exact FCI': 'Полный FCI',
|
'Exact FCI': 'Полный FCI',
|
||||||
'FCI hex (raw SELECT response)': 'FCI hex (сырой ответ SELECT)',
|
'FCI hex (raw SELECT response)': 'FCI hex (сырой ответ SELECT)',
|
||||||
'FCP parameters': 'Параметры FCP',
|
'FCI parameters': 'Параметры FCI',
|
||||||
'Parameter': 'Параметр',
|
'Parameter': 'Параметр',
|
||||||
'Decoded FCI': 'Декодированный FCI',
|
'Decoded FCI': 'Декодированный FCI',
|
||||||
'Decode failed': 'Ошибка декодирования',
|
'Decode failed': 'Ошибка декодирования',
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
const CACHE = 'otaman-v78';
|
const CACHE = 'otaman-v79';
|
||||||
const URLS = [
|
const URLS = [
|
||||||
'index.html',
|
'index.html',
|
||||||
'help.html',
|
'help.html',
|
||||||
|
|||||||
@@ -682,7 +682,7 @@ test('fcpDecode accepts long-form BER lengths (81/82) — editor preview regress
|
|||||||
delete global.t;
|
delete global.t;
|
||||||
});
|
});
|
||||||
|
|
||||||
test('fcpDiffHtml highlights differing FCP parameters', () => {
|
test('fcpDiffHtml highlights differing FCI parameters', () => {
|
||||||
global.t = s => s;
|
global.t = s => s;
|
||||||
const same = fcpDiffHtml(FCP_TRANSPARENT, FCP_TRANSPARENT);
|
const same = fcpDiffHtml(FCP_TRANSPARENT, FCP_TRANSPARENT);
|
||||||
assert.ok(same.includes('File size'));
|
assert.ok(same.includes('File size'));
|
||||||
@@ -727,7 +727,7 @@ test('profilerRenderReport shows the decoded FCI diff for a raw fci mismatch', (
|
|||||||
{ label: 'fci', ok: false, expected: FCP_TRANSPARENT, actual: '62128002000A8202412183026F078A0105880110' },
|
{ label: 'fci', ok: false, expected: FCP_TRANSPARENT, actual: '62128002000A8202412183026F078A0105880110' },
|
||||||
] },
|
] },
|
||||||
]);
|
]);
|
||||||
assert.ok(html.includes('FCP parameters'));
|
assert.ok(html.includes('FCI parameters'));
|
||||||
assert.ok(html.includes('9 bytes'));
|
assert.ok(html.includes('9 bytes'));
|
||||||
assert.ok(html.includes('10 bytes'));
|
assert.ok(html.includes('10 bytes'));
|
||||||
assert.ok(html.includes('text-red-600'));
|
assert.ok(html.includes('text-red-600'));
|
||||||
@@ -780,7 +780,7 @@ test('fcpDiffHtml appends decode-failure notes for corrupt sides', () => {
|
|||||||
global.t = s => s;
|
global.t = s => s;
|
||||||
const trunc = '6216' + FCP_TRANSPARENT.slice(4);
|
const trunc = '6216' + FCP_TRANSPARENT.slice(4);
|
||||||
const html = fcpDiffHtml(trunc, FCP_TRANSPARENT);
|
const html = fcpDiffHtml(trunc, FCP_TRANSPARENT);
|
||||||
assert.ok(html.includes('FCP parameters'), html);
|
assert.ok(html.includes('FCI parameters'), html);
|
||||||
assert.ok(html.includes('9 bytes'));
|
assert.ok(html.includes('9 bytes'));
|
||||||
assert.ok(html.includes('expected: ') && html.includes('TLV 62 declares 22 bytes'));
|
assert.ok(html.includes('expected: ') && html.includes('TLV 62 declares 22 bytes'));
|
||||||
// both sides empty -> nothing rendered
|
// both sides empty -> nothing rendered
|
||||||
|
|||||||
Reference in New Issue
Block a user