Skip to content

Commit

Permalink
Test for not completing remote paths
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Mar 21, 2018
1 parent 84e791e commit a5f49f5
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit a5f49f5

Please sign in to comment.