<commit_before>import {CheckBox, Color, CheckBoxSelectEvent, PropertyChangedEvent, CheckBoxProperties} from 'tabris';

let widget: CheckBox = new CheckBox();

// Properties
let checked: boolean;
let text: string;
let textColor: Color;
let tintColor: Color;
let checkedTintColor: Color;

checked = widget.checked;
text = widget.text;
textColor = widget.textColor;
tintColor = widget.tintColor;
checkedTintColor = widget.checkedTintColor;

widget.checked = checked;
widget.text = text;
widget.textColor = textColor;
widget.tintColor = tintColor;
widget.checkedTintColor = checkedTintColor;

let properties: CheckBoxProperties = {checked, text, textColor, tintColor, checkedTintColor};
widget = new CheckBox(properties);
widget.set(properties);

// Events
let target: CheckBox = widget;
let timeStamp: number = 0;
let type: string = 'foo';
let value: boolean = true;

let checkedChangedEvent: PropertyChangedEvent<CheckBox, boolean> = {target, timeStamp, type, value};
let checkBoxSelectEvent: CheckBoxSelectEvent = {target, timeStamp, type, checked};

widget.on({
  checkedChanged: (event: PropertyChangedEvent<CheckBox, boolean>) => {},
  select: (event: CheckBoxSelectEvent) => {}
});
<commit_msg>Add missing test for CheckBox font property TypeScript declaration<commit_after>import {CheckBox, Color, CheckBoxSelectEvent, PropertyChangedEvent, CheckBoxProperties, Font} from 'tabris';

let widget: CheckBox = new CheckBox();

// Properties
let checked: boolean;
let text: string;
let textColor: Color;
let tintColor: Color;
let checkedTintColor: Color;
let font: Font | null;

checked = widget.checked;
text = widget.text;
textColor = widget.textColor;
tintColor = widget.tintColor;
checkedTintColor = widget.checkedTintColor;
font = widget.font;

widget.checked = checked;
widget.text = text;
widget.textColor = textColor;
widget.tintColor = tintColor;
widget.checkedTintColor = checkedTintColor;
widget.font = font;

let properties: CheckBoxProperties = {checked, text, textColor, tintColor, checkedTintColor, font};
widget = new CheckBox(properties);
widget.set(properties);

// Events
let target: CheckBox = widget;
let timeStamp: number = 0;
let type: string = 'foo';
let value: boolean = true;

let checkedChangedEvent: PropertyChangedEvent<CheckBox, boolean> = {target, timeStamp, type, value};
let checkBoxSelectEvent: CheckBoxSelectEvent = {target, timeStamp, type, checked};

widget.on({
  checkedChanged: (event: PropertyChangedEvent<CheckBox, boolean>) => {},
  select: (event: CheckBoxSelectEvent) => {}
});

{'fraction_non_alphanumeric': 0.11300555114988105, 'fraction_numerical': 0.0007930214115781126, 'mean_word_length': 6.553892215568863, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1201513', 'n_tokens_mistral': 751, 'n_tokens_neox': 748, 'n_words': 220}