提交 09818cd8 编写于 作者: P Pine Wu

Add test for empty path

上级 a5cc44ef
......@@ -176,6 +176,16 @@ suite('HTML Path Completion', () => {
}, aboutHtmlUri, [fixtureWorkspace]);
});
test('Empty Path Value', () => {
testCompletionFor('<script src="|">', {
items: [
{ label: 'about/', resultText: '<script src="about/">' },
{ label: 'index.html', resultText: '<script src="index.html">' },
{ label: 'src/', resultText: '<script src="src/">' },
]
}, indexHtmlUri);
});
test('Incomplete Path', () => {
testCompletionFor('<script src="/src/f|">', {
items: [
......@@ -252,7 +262,7 @@ suite('HTML Path Completion', () => {
});
test('Unquoted Path', () => {
/* Unquoted value
/* Unquoted value is not supported in html language service yet
testCompletionFor(`<div><a href=about/|>`, {
items: [
{ label: 'about.html', resultText: `<div><a href=about/about.html>` }
......@@ -260,15 +270,4 @@ suite('HTML Path Completion', () => {
}, testUri);
*/
});
test('Empty Path Value', () => {
/*
testCompletionFor('<div><a href="|">', {
items: [
{ label: 'index.html', resultText: '<div><a href="index.html">' },
{ label: 'about', resultText: '<div><a href="about/">' }
]
}, testUri);
*/
});
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册