rdkcentral / mock-firebolt

An advanced, controllable mock Firebolt OS implementation, which can also act as a reverse proxy to a real Firebolt OS running on a real device
Apache License 2.0
4 stars 21 forks source link

Scratch support plus bug fixes #26

Closed michaelcfine closed 2 years ago

michaelcfine commented 2 years ago

To test,

The app code I used to test looks like:

let value, onOff;

console.log('--------------------------closed1');

value = false;
onOff = ( value ? 'on' : 'off' );

console.log(`Calling Manage SDK's ClosedCaptions.enabled(${value}) to turn ${onOff} closed captions...`);
data = await ClosedCaptions.enabled(value);
console.log(`Used Manage SDK's ClosedCaptions.enabled(${value}) to turn ${onOff} closed captions`);

console.log(`Calling SDK's ClosedCaptions.enabled()...`);
data = await ClosedCaptions.enabled();
console.log(`Manage SDK's ClosedCaptions.enabled() returned: ${data}`);

console.log(`Calling Core SDK's Accessibility.closedCaptionsSettings()...`);
data = await Accessibility.closedCaptionsSettings();
console.log(`Core SDK's Accessibility.closedCaptionsSettings() returned: ${JSON.stringify(data)}`);

console.log('--------------------------closed2');

value = true;
onOff = ( value ? 'on' : 'off' );

console.log(`Calling Manage SDK's ClosedCaptions.enabled(${value}) to turn ${onOff} closed captions`);
data = await ClosedCaptions.enabled(value);
console.log(`Used Manage SDK's ClosedCaptions.enabled(${value}) to turn ${onOff} closed captions`);

console.log(`Calling SDK's ClosedCaptions.enabled()...`);
data = await ClosedCaptions.enabled();
console.log(`Manage SDK's ClosedCaptions.enabled() returned: ${data}`);

console.log(`Calling Core SDK's Accessibility.closedCaptionsSettings()...`);
data = await Accessibility.closedCaptionsSettings();
console.log(`Core SDK's Accessibility.closedCaptionsSettings() returned: ${JSON.stringify(data)}`);

console.log('--------------------------closed3');