Skip to content
Merged
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
Add test for jsdoc in navigation bar
  • Loading branch information
Andy Hanson committed Jun 13, 2016
commit 89488f83171a0eb9118e825b86410cab88dca4c6
21 changes: 21 additions & 0 deletions tests/cases/fourslash/navigationBarJsDoc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/// <reference path="fourslash.ts"/>

// @Filename: foo.js
/////** @typedef {(number|string)} NumberLike */
/////** @typedef {(string|number)} */
////const x = 0;

verify.navigationBar([
{
"text": "NumberLike",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should not there be a <global> node?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current implementation is different for javascript, so that will be something fixed by #8958.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

"kind": "type"
},
{
"text": "x",
"kind": "type"
},
{
"text": "x",
"kind": "var"
}
]);