提交 07f2a8d9 编写于 作者: J Johannes Rieken

deco - fix test failure

上级 a0c26c8a
......@@ -111,7 +111,7 @@ suite('DecorationsService', function () {
onDidChange: Event.None,
provideDecorations(uri: URI) {
return uri.path.match(/\.txt/)
? { title: '.txt' }
? { title: '.txt', weight: 17 }
: undefined;
}
});
......@@ -120,6 +120,7 @@ suite('DecorationsService', function () {
let deco = service.getDecoration(childUri, false);
assert.equal(deco.title, '.txt');
assert.equal(deco.weight, 17);
deco = service.getDecoration(childUri.with({ path: 'some/path/' }), true);
assert.equal(deco, undefined);
......@@ -131,15 +132,17 @@ suite('DecorationsService', function () {
onDidChange: Event.None,
provideDecorations(uri: URI) {
return uri.path.match(/\.txt/)
? { title: '.txt.bubble', bubble: true }
? { title: '.txt.bubble', weight: 71, bubble: true }
: undefined;
}
});
deco = service.getDecoration(childUri, false);
assert.equal(deco.title, '.txt.bubble');
assert.equal(deco.weight, 71);
deco = service.getDecoration(childUri.with({ path: 'some/path/' }), true);
assert.equal(deco.title, '.txt.bubble');
assert.equal(deco.title, '');
assert.equal(deco.weight, 71);
});
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册