add test for the Markdown fix in acc47fdfd19c53f8836e6ec5ade939c94c23013a

This commit is contained in:
Jeff Williams 2015-12-08 16:18:29 -08:00
parent 012369aca4
commit 759243af08
2 changed files with 14 additions and 0 deletions

View File

@ -23,3 +23,8 @@ function bar() {}
function MyClass(myParam) {
this.value = myParam;
}
/**
* "See" {@link chat."#channel"."say-\"hello\""}.
*/
function MyOtherClass() {}

View File

@ -31,6 +31,15 @@ describe('markdown plugin', function() {
});
});
it('should unescape " entities in inline tags, but not elsewhere', function() {
var myOtherClass = docSet.getByLongname('MyOtherClass')[0];
plugin.handlers.newDoclet({ doclet: myOtherClass });
expect(myOtherClass.description).toContain('chat."#channel"."say-\\"hello\\""');
expect(myOtherClass.description).toContain('"See"');
});
describe('@see tag support', function() {
var foo = docSet.getByLongname('foo')[0];
var bar = docSet.getByLongname('bar')[0];