From 01f0fc13fdf4393335575800af9e264de770f9c5 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 11 Jun 2012 23:48:24 +0200 Subject: [PATCH] Ox.DocPage: change name of tests section to Tests; minor cleanup --- source/Ox.UI/js/Code/DocPage.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/Ox.UI/js/Code/DocPage.js b/source/Ox.UI/js/Code/DocPage.js index 2b5aab93..597fcd00 100644 --- a/source/Ox.UI/js/Code/DocPage.js +++ b/source/Ox.UI/js/Code/DocPage.js @@ -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 ) ) + '') ); @@ -189,7 +187,7 @@ Ox.DocPage = function(options, self) { '> ' + Ox.encodeHTMLEntities(test.statement) .replace(/ /g, ' ') - .replace(/\n/g, '
\n  ') + .replace(/\n/g, '
\n  ') + '
' ) );