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

Commit

Permalink
Merge pull request #11885 from petetnt/petetnt/poster-url-hints
Browse files Browse the repository at this point in the history
Add UrlCodeHints for poster-attribute
  • Loading branch information
abose committed Nov 2, 2015
2 parents bf22bf5 + a011930 commit ffcd068
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
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

0 comments on commit ffcd068

Please sign in to comment.