Test for not completing remote paths

This commit is contained in:
Pine Wu 2018-03-21 15:07:35 -07:00
parent 84e791ea5b
commit a5f49f58bb

View file

@ -132,6 +132,16 @@ suite('HTML Path Completion', () => {
}, indexHtmlUri);
});
test('No completion for remote paths', () => {
testCompletionFor('<script src="http:">', { items: [] });
testCompletionFor('<script src="http:/|">', { items: [] });
testCompletionFor('<script src="http://|">', { items: [] });
testCompletionFor('<script src="https:|">', { items: [] });
testCompletionFor('<script src="https:/|">', { items: [] });
testCompletionFor('<script src="https://|">', { items: [] });
testCompletionFor('<script src="//|">', { items: [] });
});
test('Relative Path', () => {
testCompletionFor('<script src="../|">', {
items: [