Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added test to confirm tags are case insensitive

  • Loading branch information...
commit cb4f622d19758d648717eb9aa05899741cf08784 1 parent 5f71ae8
@davglass authored
Showing with 14 additions and 0 deletions.
  1. +7 −0 tests/input/test/test.js
  2. +7 −0 tests/parser.js
View
7 tests/input/test/test.js
@@ -137,3 +137,10 @@ Default options to use for all transactions.
for detecting CSS load completion in browsers that don't support the `load`
event on `<link>` nodes.
**/
+
+
+/**
+This is a test of CASE TaGs
+@MeThod testMethod
+@ParaM {String} foo Foo description
+*/
View
7 tests/parser.js
@@ -312,6 +312,13 @@ suite.add(new YUITest.TestCase({
'test: inherited methods': function() {
var item = this.findByName('myMethod', 'mywidget.SubWidget');
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');
}
}));
Please sign in to comment.
Something went wrong with that request. Please try again.