mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 11:10:48 +00:00
Add test for empty path
This commit is contained in:
parent
a5cc44ef57
commit
09818cd87a
1 changed files with 11 additions and 12 deletions
|
@ -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);
|
||||
*/
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue