idlize
1import {strict as assert} from 'assert';
2
3import {toArray, toInt32} from "../unit_utils"
4import {RuntimeType, Tags} from "@arkoala/arkui/SerializerBase"
5import {Serializer} from "@arkoala/arkui/Serializer"
6
7
8it('Should write LabelStyle maxLines: 10', function () {
9let serializer = new Serializer()
10let labelStyle: LabelStyle = {maxLines: 10}
11serializer.writeLabelStyle(labelStyle)
12assert.deepEqual(toArray(serializer), [RuntimeType.NUMBER, Tags.INT32, ...toInt32(10)])
13});
14