本文整理汇总了TypeScript中vs/editor/test/common/model/editableTextModelTestUtils.testApplyEditsWithSyncedModels函数的典型用法代码示例。如果您正苦于以下问题:TypeScript testApplyEditsWithSyncedModels函数的具体用法?TypeScript testApplyEditsWithSyncedModels怎么用?TypeScript testApplyEditsWithSyncedModels使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了testApplyEditsWithSyncedModels函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: test
test('two unrelated edits', () => {
testApplyEditsWithSyncedModels(
[
'My First Line',
'\t\tMy Second Line',
' Third Line',
'',
'123'
],
[
editOp(2, 1, 2, 3, ['\t']),
editOp(3, 1, 3, 5, [''])
],
[
'My First Line',
'\tMy Second Line',
'Third Line',
'',
'123'
]
);
});
开发者ID:DonJayamanne,项目名称:vscode,代码行数:22,代码来源:editableTextModel.test.ts
示例2: test
test('two edits on one line', () => {
testApplyEditsWithSyncedModels(
[
'\t\tfirst\t ',
'\t\tsecond line',
'\tthird line',
'fourth line',
'\t\t<!@#fifth#@!>\t\t'
],
[
editOp(5, 3, 5, 7, ['']),
editOp(5, 12, 5, 16, [''])
],
[
'\t\tfirst\t ',
'\t\tsecond line',
'\tthird line',
'fourth line',
'\t\tfifth\t\t'
]
);
});
开发者ID:AlexxNica,项目名称:sqlopsstudio,代码行数:22,代码来源:editableTextModel.test.ts
示例3: test
test('auto1', () => {
testApplyEditsWithSyncedModels(
[
'ioe',
'',
'yjct',
'',
'',
],
[
editOp(1, 2, 1, 2, ['b', 'r', 'fq']),
editOp(1, 4, 2, 1, ['', '']),
],
[
'ib',
'r',
'fqoe',
'',
'yjct',
'',
'',
]
);
});
开发者ID:ErickWendel,项目名称:vscode,代码行数:24,代码来源:editableTextModelAuto.test.ts
示例4: test
test('auto1', () => {
testApplyEditsWithSyncedModels(
[
"ioe",
"",
"yjct",
"",
"",
],
[
editOp(1, 2, 1, 2, ["b", "r", "fq"]),
editOp(1, 4, 2, 1, ["", ""]),
],
[
"ib",
"r",
"fqoe",
"",
"yjct",
"",
"",
]
);
});
开发者ID:amamut,项目名称:vscode,代码行数:24,代码来源:editableTextModelAuto.test.ts
示例5: while
if (GENERATE_TESTS) {
let number = 1;
while(true) {
console.log('------BEGIN NEW TEST: ' + number);
let testModel = new TestModel();
console.log(testModel.print());
console.log('------END NEW TEST: ' + (number++));
try {
testApplyEditsWithSyncedModels(
testModel.initialContent.split('\n'),
testModel.edits,
testModel.resultingContent.split('\n')
);
// throw new Error('a');
} catch(err) {
console.log('bubu');
console.log(testModel.print());
break;
}
// break;
}
}
开发者ID:ErickWendel,项目名称:vscode,代码行数:29,代码来源:editableTextModelAuto.test.ts
注:本文中的vs/editor/test/common/model/editableTextModelTestUtils.testApplyEditsWithSyncedModels函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论