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

Add UrlCodeHints for poster-attribute #11885

Merged
merged 1 commit into from
Nov 2, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/extensions/default/UrlCodeHints/data.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"htmlAttrs": {
"href": { "attribOption": [] },
"poster": { "attribOption": [] },
"src": { "attribOption": [] }
}
}
1 change: 1 addition & 0 deletions src/extensions/default/UrlCodeHints/testfiles/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
<a href='../'>Page relative: up 1 folder</a>
<a href='/'>Site-root relative: root folder</a>
<a href='test2.html'>Results</a>
<video poster=''>Results</video>
</body>
</html>
12 changes: 12 additions & 0 deletions src/extensions/default/UrlCodeHints/unittests.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,18 @@ define(function (require, exports, module) {
verifyUrlHints(hintsObj.hints, testfilesDirHints);
});
});

it("should hint for poster attribute", function () {
runs(function () {
testEditor.setCursorPos({ line: 24, ch: 17 });
hintsObj = null;
expectAsyncHints(UrlCodeHints.hintProvider);
});

runs(function () {
verifyUrlHints(hintsObj.hints, testfilesDirHints);
});
});

it("should not hint for type attribute", function () {
runs(function () {
Expand Down