This commit is contained in:
Pine Wu
2018-04-11 15:24:27 -07:00
parent 263ab1fb98
commit 57cba59b0a
3 changed files with 21 additions and 4 deletions

View File

@@ -150,4 +150,16 @@ suite('Completions', () => {
}, testUri, folders);
});
test('CSS Path Completion - Proper escaping', function () {
let testUri = Uri.file(path.resolve(__dirname, '../../test/pathCompletionFixtures/about/about.css')).toString();
let folders = [{ name: 'x', uri: Uri.file(path.resolve(__dirname, '../../test')).toString() }];
assertCompletions('html { background-image: url(./|)', {
items: [
{ label: `about\\ \\(\\,\\'\\".css`, resultText: `html { background-image: url(./about\\ \\(\\,\\'\\".css)` }
]
}, testUri, folders);
});
});