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