Add 3.8 changelog and fix RTA octave selection
This commit is contained in:
@@ -44,4 +44,19 @@ assert.equal(extension.bpo, '1_12');
|
||||
assert.equal(extension.freqRange, 'lf');
|
||||
assert.equal(extension.order, 8);
|
||||
|
||||
const configSource = fs.readFileSync(new URL('../www/core/config.js', import.meta.url), 'utf8');
|
||||
const selectionSource = configSource.match(/function applyRtaBpoSelection[\s\S]*?\n\}/)?.[0];
|
||||
assert.ok(selectionSource, 'RTA BPO selection policy must remain testable');
|
||||
const selectionContext = vm.createContext({
|
||||
String,
|
||||
CONFIG: { RTA_BPO_MODE: '1_3', RTA_BAR_LAYOUT: 'rtw' },
|
||||
});
|
||||
vm.runInContext(selectionSource, selectionContext);
|
||||
assert.equal(selectionContext.applyRtaBpoSelection('1_6'), '1_6');
|
||||
assert.equal(selectionContext.CONFIG.RTA_BPO_MODE, '1_6');
|
||||
assert.equal(selectionContext.CONFIG.RTA_BAR_LAYOUT, 'iec');
|
||||
selectionContext.CONFIG.RTA_BAR_LAYOUT = 'rtw';
|
||||
assert.equal(selectionContext.applyRtaBpoSelection('1_3'), '1_3');
|
||||
assert.equal(selectionContext.CONFIG.RTA_BAR_LAYOUT, 'rtw');
|
||||
|
||||
console.log('RTA profile regression tests passed');
|
||||
|
||||
Reference in New Issue
Block a user