jsdoc/test/fixtures/testPlugin1.js
Jannon a6f68d838c Plugin tests
Tests for the plugin framework as well as for the plugins shipping with JSDoc
2012-05-06 00:43:22 -07:00

23 lines
717 B
JavaScript

exports.handlers = {
fileBegin: jasmine.createSpy('fileBegin'),
beforeParse: jasmine.createSpy('beforeParse'),
jsdocCommentFound: jasmine.createSpy('jsdocCommentFound'),
symbolFound: jasmine.createSpy('symbolFound'),
newDoclet: jasmine.createSpy('newDoclet'),
fileComplete: jasmine.createSpy('fileComplete')
};
exports.defineTags = function(dictionary) {
dictionary.defineTag("foo", {
canHaveName: true,
onTagged: function(doclet, tag) {
doclet.foo = true;
}
});
};
exports.nodeVisitor = {
visitNode: jasmine.createSpy("plugin 1 visitNode").andCallFake(function(node, e, parser, currentSourceName) {
e.stopPropagation = true;
})
};