Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit ffcd068

Browse files
committed
Merge pull request #11885 from petetnt/petetnt/poster-url-hints
Add UrlCodeHints for poster-attribute
2 parents bf22bf5 + a011930 commit ffcd068

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"htmlAttrs": {
33
"href": { "attribOption": [] },
4+
"poster": { "attribOption": [] },
45
"src": { "attribOption": [] }
56
}
67
}

src/extensions/default/UrlCodeHints/testfiles/test.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@
2222
<a href='../'>Page relative: up 1 folder</a>
2323
<a href='/'>Site-root relative: root folder</a>
2424
<a href='test2.html'>Results</a>
25+
<video poster=''>Results</video>
2526
</body>
2627
</html>

src/extensions/default/UrlCodeHints/unittests.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,18 @@ define(function (require, exports, module) {
166166
verifyUrlHints(hintsObj.hints, testfilesDirHints);
167167
});
168168
});
169+
170+
it("should hint for poster attribute", function () {
171+
runs(function () {
172+
testEditor.setCursorPos({ line: 24, ch: 17 });
173+
hintsObj = null;
174+
expectAsyncHints(UrlCodeHints.hintProvider);
175+
});
176+
177+
runs(function () {
178+
verifyUrlHints(hintsObj.hints, testfilesDirHints);
179+
});
180+
});
169181

170182
it("should not hint for type attribute", function () {
171183
runs(function () {

0 commit comments

Comments
 (0)