Skip to content

Commit

Permalink
Added test to confirm tags are case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed May 10, 2012
1 parent 5f71ae8 commit cb4f622
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/input/test/test.js
Expand Up @@ -137,3 +137,10 @@ Default options to use for all transactions.
for detecting CSS load completion in browsers that don't support the `load` for detecting CSS load completion in browsers that don't support the `load`
event on `<link>` nodes. event on `<link>` nodes.
**/ **/


/**
This is a test of CASE TaGs
@MeThod testMethod
@ParaM {String} foo Foo description
*/
7 changes: 7 additions & 0 deletions tests/parser.js
Expand Up @@ -312,6 +312,13 @@ suite.add(new YUITest.TestCase({
'test: inherited methods': function() { 'test: inherited methods': function() {
var item = this.findByName('myMethod', 'mywidget.SubWidget'); var item = this.findByName('myMethod', 'mywidget.SubWidget');
Assert.isObject(item, 'Failed to parse second method'); Assert.isObject(item, 'Failed to parse second method');
},
'test: case tags': function() {
var item = this.findByName('testMethod', 'OtherClass2');
Assert.isObject(item, 'Failed to parse second method');
Assert.areSame('method', item.itemtype, 'Failed to parse Cased Method tag');
Assert.isArray(item.params, 'Failed to parse Cased Params');
Assert.areSame(1, item.params.length, 'Failed to parse number of cased params');
} }
})); }));


Expand Down

0 comments on commit cb4f622

Please sign in to comment.