Ox.DocPage: change name of tests section to Tests; minor cleanup

This commit is contained in:
rolux 2012-06-11 23:48:24 +02:00
parent dfe2f77615
commit 01f0fc13fd

View file

@ -174,9 +174,7 @@ Ox.DocPage = function(options, self) {
Ox.contains(section, 'inherited') Ox.contains(section, 'inherited')
? section[0].toUpperCase() + section.slice(1) ? section[0].toUpperCase() + section.slice(1)
: Ox.toTitleCase( : Ox.toTitleCase(
section == 'returns' ? 'usage' section == 'returns' ? 'usage' : section
: section == 'tests' ? 'examples'
: section
) )
) + '</span>') ) + '</span>')
); );
@ -189,7 +187,7 @@ Ox.DocPage = function(options, self) {
'<code><b>&gt;&nbsp;' '<code><b>&gt;&nbsp;'
+ Ox.encodeHTMLEntities(test.statement) + Ox.encodeHTMLEntities(test.statement)
.replace(/ /g, '&nbsp;') .replace(/ /g, '&nbsp;')
.replace(/\n/g, '<br/>\n&nbsp;&nbsp;') .replace(/\n/g, '<br>\n&nbsp;&nbsp;')
+ '</b></code>' + '</b></code>'
) )
); );